Code used to fine-tune this model: abacaj/mistral-7b-sft. Add your data in the data folder as train.jsonl and validation.jsonl.
Note this repo is intended for full fine-tuning of mistral not qlora or other methods.
Install dependencies:
python -m venv env \
&& source env/bin/activate \
&& pip install -r requirements.txt
Get a Hugging Face token and set the variable:
export HF_TOKEN="[insert token here]"
Run training code:
torchrun --nnodes=1 --nproc-per-node=<REPLACE_WITH_NUMBER_OF_GPUS> train.py
backward_prefetch=BackwardPrefetch.BACKWARD_PRE if you have the GPU memory, or backward_prefetch=BackwardPrefetch.BACKWARD_POST. This can cause OOM so it was set to None226,921 followers · starred Dec 2023
10,752 followers · starred Oct 2023
3,935 followers · starred Oct 2023
150 followers · starred Oct 2023
Code used to fine-tune this model: abacaj/mistral-7b-sft. Add your data in the data folder as train.jsonl and validation.jsonl.
Note this repo is intended for full fine-tuning of mistral not qlora or other methods.
Install dependencies:
python -m venv env \
&& source env/bin/activate \
&& pip install -r requirements.txt
Get a Hugging Face token and set the variable:
export HF_TOKEN="[insert token here]"
Run training code:
torchrun --nnodes=1 --nproc-per-node=<REPLACE_WITH_NUMBER_OF_GPUS> train.py
backward_prefetch=BackwardPrefetch.BACKWARD_PRE if you have the GPU memory, or backward_prefetch=BackwardPrefetch.BACKWARD_POST. This can cause OOM so it was set to None226,921 followers · starred Dec 2023
10,752 followers · starred Oct 2023
3,935 followers · starred Oct 2023
150 followers · starred Oct 2023