Guanaco: A Multilingual Instruction-Following Language Model Based on LLaMA 7B
This model is trained with modified
alpaca-lora
with lora + embed_tokens + lm_head be trained.
The dataset is from alpaca-lora (the cleaned version of alpaca) 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:
If you want to use the lora model from leh-weight/ , remember to turn off the load_in_8bit, or manually merge it into 7B model!
Some Example
Instruction:
Write a diary. It should be very long
Response:
Today was an amazing day! I woke up feeling so refreshed and ready to take on the world. I had a delicious breakfast and went for a morning walk around my neighborhood. I felt so connected to nature and it was so peaceful. After that, I went to the park and enjoyed some time with my friends. We went for a picnic and talked about our hopes and dreams for the future. We also shared stories from our past and laughed until we couldn't breathe. After that, I went home and took a long shower to relax. I then went to the gym and did some cardio and strength training. I felt so strong and powerful after that. I went home and cooked a delicious dinner for my family. We all ate together and talked about our days. It was such a great day and I can't wait to do it again soon.
(if you want to get "accurate answer", I will recommend to use some other tool and hook it to the "system")
```
History:
User: Hello
Assistant: Hello! How can I help you?
User: Can you explain how Gradient Descent work?
Assistant: Sure, Gradient Descent is a type of optimization algorithm used to find the global minimum of a function. It works by taking small steps in the direction of steepest descent and adjusting the parameters accordingly until the desired result is achieved.
Message:
User: How about Nesterov Accelerated Gradient? Can you campare them?
Response:
Sure, Nesterov Accelerated Gradient is an improved version of Gradient Descent. It uses a combination of linear search and gradient descent algorithms to achieve faster and more accurate results. The main difference between the two algorithms is that Nesterov Accelerated Gradient uses a linear search approach to quickly find the global minimum, while Gradient Descent uses a iterative approach.
## Some more information
### Why use lora+embed+head
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.
And here is the loss graph of this 2epoch model:

Runs of KBlueLeaf guanaco-7B-leh on huggingface.co
32
Total runs
0
24-hour runs
6
3-day runs
5
7-day runs
12
30-day runs
More Information About guanaco-7B-leh huggingface.co Model
guanaco-7B-leh huggingface.co is an AI model on huggingface.co that provides guanaco-7B-leh's model effect (), which can be used instantly with this KBlueLeaf guanaco-7B-leh model. huggingface.co supports a free trial of the guanaco-7B-leh model, and also provides paid use of the guanaco-7B-leh. Support call guanaco-7B-leh model through api, including Node.js, Python, http.
guanaco-7B-leh huggingface.co is an online trial and call api platform, which integrates guanaco-7B-leh's modeling effects, including api services, and provides a free online trial of guanaco-7B-leh, you can try guanaco-7B-leh online for free by clicking the link below.
KBlueLeaf guanaco-7B-leh online free url in huggingface.co:
guanaco-7B-leh is an open source model from GitHub that offers a free installation service, and any user can find guanaco-7B-leh on GitHub to install. At the same time, huggingface.co provides the effect of guanaco-7B-leh install, users can directly use guanaco-7B-leh installed effect in huggingface.co for debugging and trial. It also supports api for free installation.