Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

A simple example illustrating how to fine-tune Mistal7b via (q)LoRA

License

Notifications You must be signed in to change notification settings

will-thompson-k/mistral_7b_lora_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mistral_7b_lora_example

A straightforward example illustrating how to fine-tune Mistral-7B with QLoRA.

Inspired by this blogpost, which borrowed from this QLoRA notebook.

Work In Progress.

Uses huggingface, trl, peft, bitsandbytes and pytorch (obviously).

Install environment using poetry then run poetry run python train.py to SFT.

Note: Requires (Nvidia) GPUs to run.

About

A simple example illustrating how to fine-tune Mistal7b via (q)LoRA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages