Downloads · 30 days
60
0% of all-time downloads
KBlueLeaf/guanaco-7b-leh-v2
guanaco-7b-leh-v2 is a text generation model from KBlueLeaf. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gpl-3.0.
This model is trained with guanaco-lora with lora + embedtokens + lmhead be trained.
Downloads · 30 days
60
0% of all-time downloads
All-time downloads
38.6K
Public
Parameters
6.7B
27.5 GB on disk
Likes
38
Public
Click a slice to open those files.
.bin14 GB · 51%
How the weights are stored.
F166.7B · 100%
From the Hugging Face model README
This model is trained with guanaco-lora with lora + embed_tokens + lm_head be trained.
The dataset is from alpaca-cleaned and guanaco. With trained embed and head, the model perform better at Chinese and Japanese then original LLaMA, and with instruction based prompt. You can use this model more easily.
Since this model is trained by guanaco dataset, you can also use this as chatbot. just use this format:
### Instruction:
User: <Message history>
Assistant: <Message history>
### Input:
System: <System response for next message, optional>
User: <Next message>
### Response:
Tips: I just removed the first line of original prompt to reduce token comsumption, plz consider remove it when you want to use this model
The main differences are:
And since the train data has more chat-based data. This model is more fit in chatbot usage.
You can try this model with this colab. Or using generate.py in the guanaco-lora, all the examples are generated by guanaco-lora.
If you want to use the lora model from guanaco-7b-leh-v2-adapter/ , remember to turn off the load_in_8bit, or manually merge it into 7B model!
(As you can see, although guanaco can reply fluently, the content is quite confusing. So you may want to add some thing in the system part.)

I use guanaco with instruction to let it translate a chinese article to JP/DE/EN.
And use gpt-4 to scoring them and get this:

First, I think it is obvious that when a LLM isn't good at some language and you want to ft for it. You should train the embed and head part.<br> But the question is: "Why not just native finetune?"<br> If you have searched for some alpaca model or training thing, you may notice that lot of them has 1 problem: "memorize".<br> The loss will drop at the begin of every epoch, just like some kind of "overfit".<br> And in my opinion, this is because that the number of params of LLaMA is too large. So it just memorize all the training data.
But if I use lora for attention part(ignore MLP part), the param number is not large enough for "memorizing training data", so it is more unlikely to memorize all the things.