mlabonne commited on
Commit
3204d98
·
verified ·
1 Parent(s): 45206dc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +48 -5
README.md CHANGED
@@ -10,14 +10,57 @@ tags:
10
  - llama
11
  - trl
12
  - sft
 
 
13
  ---
14
 
15
- # Uploaded model
16
 
17
- - **Developed by:** mlabonne
18
- - **License:** apache-2.0
19
- - **Finetuned from model :** unsloth/Meta-Llama-3.1-8B-bnb-4bit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
22
 
23
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
10
  - llama
11
  - trl
12
  - sft
13
+ datasets:
14
+ - mlabonne/FineTome-100k
15
  ---
16
 
17
+ # 🍷 FineLlama-3.1-8B
18
 
19
+ ![](https://i.imgur.com/jUDo6ID.jpeg)
20
+
21
+ This is a finetune of [meta-llama/Meta-Llama-3.1-8B](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B) made for my article ["Fine-tune Llama 3.1 Ultra-Efficiently with Unsloth"](https://huggingface.co/blog/mlabonne/sft-llama3).
22
+
23
+ It was trained on 100k super high-quality samples from the [mlabonne/FineTome-100k](https://huggingface.co/datasets/mlabonne/FineTome-100k) dataset.
24
+
25
+ ## 🔎 Applications
26
+
27
+ This model was made for educational purposes. I recommend using Meta's instruct model for real applications.
28
+
29
+ ## ⚡ Quantization
30
+
31
+ * **GGUF**: https://huggingface.co/mlabonne/FineLlama-3.1-8B-GGUF
32
+
33
+ ## 🏆 Evaluation
34
+
35
+ TBD.
36
+
37
+ ## 💻 Usage
38
+
39
+ ```python
40
+ !pip install -qU transformers accelerate
41
+
42
+ from transformers import AutoTokenizer
43
+ import transformers
44
+ import torch
45
+
46
+ model = "mlabonne/FineLlama-3.1-8B"
47
+ messages = [{"role": "user", "content": "What is a large language model?"}]
48
+
49
+ tokenizer = AutoTokenizer.from_pretrained(model)
50
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
51
+ pipeline = transformers.pipeline(
52
+ "text-generation",
53
+ model=model,
54
+ torch_dtype=torch.float16,
55
+ device_map="auto",
56
+ )
57
+
58
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
59
+ print(outputs[0]["generated_text"])
60
+ ```
61
+
62
+ ---
63
 
64
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
65
 
66
+ [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)