modal-labs / llm-finetuning

Guide for fine-tuning Llama/Mistral/CodeLlama models and more
MIT License
538 stars 84 forks source link

Updates for Llama 3.1 compatibility, import error workarounds & more #75

Open AgenP opened 3 months ago

AgenP commented 3 months ago

Train.py

Inference.py

Common.py

Have been unable to get past a ModuleNotFoundError importing common.py

So I commented out the import and directly pasted the relevant code into both train.py & inference.py

Apologies if I’ve missed something obvious for the import as this doesn’t seem like the most elegant fix

But submitting it, cause as recently been said, fear is the mind-killer

(On a real note, more than happy to iterate if I’ve missed something here)

Requirements.txt (local usage)

Llama 3.1 yaml file added

CI files