A Chrome extension and finetuning script to run a local LLM latex completion.
-
Clone the Repository
git clone https://github.com/adityamakkar000/OverleafCoPilot.git
-
Setup Env
Setup the python environment using
pip install -r req.txt
-
Finetune
Place your latex
.txtinai/dataset/and create a .yaml file inai/configs/following the structure inai/configs/main.yamlRunpython3 finetune.py --config-name $config-name arg1=$arg1 arg2=$arg2 ...
-
Use
Run a local server using
python3 main.py path=$(path to finetuned model) tokens=$tokens
Add the ip-address in
extension/sentence.jsand load the extension folder inchrome://extensions/Add ip-address atchrome://flags/to allow for mixed-content on http and https Reload chrome and pressaltto run inference
