teilomillet commited on
Commit
7e8e86f
1 Parent(s): 505237c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -2
README.md CHANGED
@@ -4,14 +4,41 @@ language:
4
  - fr
5
  - en
6
  - zh
 
 
7
  ---
8
- Merging stuff to make a potato. Idk about it might delete later.
9
 
10
  Merge of MiniMerlin via Task arithmetic using mergekit.
11
  There was no goal except merging. Interest in the outcome tho. I might need to fine-tune it more.
12
 
13
  FT on more french data (Merlin).
14
 
15
- Actually I think it's the best french model of that size. Just try it out. It's definetely not perfect but it do the job for a 3B model.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  #merge
 
4
  - fr
5
  - en
6
  - zh
7
+ widget:
8
+ - text: "<s> [|User|] Comment faire un bon plat ? </s>[|Assistant|]"
9
  ---
10
+ Merging stuff to make a potato. Idk about it, might delete later.
11
 
12
  Merge of MiniMerlin via Task arithmetic using mergekit.
13
  There was no goal except merging. Interest in the outcome tho. I might need to fine-tune it more.
14
 
15
  FT on more french data (Merlin).
16
 
17
+ Je pense qu'il s'agit du meilleur model français en 3B. Essayez le.
18
+
19
+ ```python
20
+ from transformers import AutoModelForCausalLM, AutoTokenizer
21
+ from peft import PeftModel
22
+ import torch
23
+
24
+ model = AutoModelForCausalLM.from_pretrained(
25
+ "teilomillet/Potato-3B",
26
+ revision="0.1",
27
+ return_dict=True,
28
+ torch_dtype=torch.bfloat16,
29
+ device_map='auto'
30
+ )
31
+
32
+ tokenizer = AutoTokenizer.from_pretrained("teilomillet/Potato-3B")
33
+ tokenizer.pad_token = tokenizer.eos_token
34
+
35
+ text = "[|User|] Comment faire un bon plat ? </s>[|Assistant|]"
36
+ inputs = tokenizer(text, return_tensors="pt").to(0)
37
+
38
+ outputs = model.generate(**inputs, max_new_tokens=800)
39
+ print(tokenizer.decode(outputs[0], skip_special_tokens=False))
40
+ ```
41
+
42
+
43
 
44
  #merge