Downloads · 30 days
150
17% of all-time downloads
RicardoLee/Llama2-base-7B-Chinese-50W-LoRA
Llama2-base-7B-Chinese-50W-LoRA is a text generation model from RicardoLee. Use it when you need the model to write or continue text. It is set up for transformers.
在完成了Llama2-chat 7B Chinese 和 Llama2-chat 13B Chinese 的训练后,我非常好奇能否直接基于Llama2-base 系列直接进行SFT训练。这也是本模型仓库的初衷。
Downloads · 30 days
150
17% of all-time downloads
All-time downloads
882
Public
Repo size
28.7 GB
Likes
10
Public
Click a slice to open those files.
.bin14.9 GB · 100%
From the Hugging Face model README
在完成了Llama2-chat 7B Chinese 和 Llama2-chat 13B Chinese 的训练后,我非常好奇能否直接基于Llama2-base 系列直接进行SFT训练。这也是本模型仓库的初衷。
终于,在RicardoLee/Llama2-base-7B-Chinese-50W-pre_release,RicardoLee/Llama2-base-7B-Chinese-50W-Full2LoRA 之后,我成功探索出了能稳定训练LoRA的参数,并最终完成了50W 数据的LoRA 训练。
训练数据使用BELLE项目中采样的50万SFT数据进行SFT训练。
After finishing the training of Llama2-chat 7B Chinese and Llama2-chat 13B Chinese, I am deeply intrigued by the possibility of conducting SFT (Style-Fine-Tuning) training directly based on the Llama2-base series. This is the fundamental purpose of this model repository.
Finally, after RicardoLee/Llama2-base-7B-Chinese-50W-pre_release,RicardoLee/Llama2-base-7B-Chinese-50W-Full2LoRA, I did find the right hyperparams to do the LoRA training stabelly based on Llama2-base 7B model. For more details please refer to the Train Detail section.
The training data is sampled from BELLE project, which consists of 500,000 SFT samples.
一些训练上的细节:
Some details in training:
该模型依然采用stanford alpaca 模版。因此在测试时且别忘记添加开场白。开场白如下:
"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n\n${Your Content}\n\n### Response:\n\n"
对于带上文的对话,开场白如下:
"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n\nHuman:${Previous Human Content}\nAssistant:${Previous Assistance Content}\nHuman:${Your Question}\n\n### Response:\n\n"
This model still using the Stanford Alpaca template. Therefore, don't forget to add prologue template. The prologue template is:
"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n\n${Your Content}\n\n### Response:\n\n"
For dialogue with context, the prelogue template is:
"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n\nHuman:${Previous Human Content}\nAssistant:${Previous Machine Content}\nHuman:${Your Question}\n\n### Response:\n\n"
本仓库的模型依照 Apache-2.0 协议开源,模型的权重的使用则需要遵循LLama2MODEL LICENCE。
This repository's models are open-sourced under the Apache-2.0 license, and their weight usage must adhere to LLama2 MODEL LICENCE license.
将会在近期逐步放出
I will release the following models: