Downloads · 30 days
86
0% of all-time downloads
HenryJJ/Instruct_Yi-6B_Dolly_CodeAlpaca
Instruct_Yi-6B_Dolly_CodeAlpaca is a text generation model from HenryJJ. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned from Yi-6B, used Dolly15k for the dataset. 90% for training, 10% validation. Trained for 2.0 epochs using Lora. Trained with 2048 context window. Compared with https://huggingface.co/HenryJJ/InstructYi-6BDo…
Downloads · 30 days
86
0% of all-time downloads
All-time downloads
39.4K
Public
Parameters
6.1B
12.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors12.1 GB · 100%
From the Hugging Face model README
Fine-tuned from Yi-6B, used Dolly15k for the dataset. 90% for training, 10% validation. Trained for 2.0 epochs using Lora. Trained with 2048 context window. Compared with https://huggingface.co/HenryJJ/Instruct_Yi-6B_Dolly15K, I add additional CodeAlpaca_20K dataset that good at coding.
<|startoftext|>[INST]{instruction} {context}[/INST]{response}<|endoftext|>
<|startoftext|>[INST]
Write a 10-line poem about a given topic
The topic is about racecars
[/INST]
<|startoftext|>[INST]
Who was the was the second president of the United States?
[/INST]
Fully opensourced at: https://github.com/hengjiUSTC/learn-llm/blob/main/trl_finetune.py. Run on aws g4dn.12xlarge instance for 10 hours.
python3 trl_finetune.py --config configs/yi_6b-large.yml