taidopurason commited on
Commit
3595147
1 Parent(s): 34356d6

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +45 -0
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - et
4
+ - en
5
+ pipeline_tag: conversational
6
+ ---
7
+
8
+ # LLammas 🐑
9
+
10
+ Llama-2-7B finetuned in three stages:
11
+ 1. 5B tokens of CulturaX (75% Estonain, 25% English)
12
+ 2. 1M English->Estonian sentence-pairs from CCMatrix (500000), WikiMatrix (400000), Europarl (50000), and OpenSubtitles (50000) as Alpaca-style translation instructions, 25% of the examples are given in opposite direction (Estonian->Englih)
13
+ 3. Alpaca-cleaned, Alpaca-est, OASST1 top-1 English conversations, CoT and FLAN-V2 following open-instruct (both 10,000), WMT18 English-Estonian translation development data (as documents), general MTee validation English-Estonian held-out data
14
+
15
+ Alpaca-est is an instruction dataset generated for Estonian with *gpt-3.5-turbo-0613*, following Alpaca.
16
+
17
+
18
+ Using the model in a conversational pipeline:
19
+ ```
20
+ from transformers import pipeline, Conversation
21
+ import torch
22
+
23
+ pipe = pipeline("conversational", model="tartuNLP/Llammas", torch_dtype=torch.bfloat16, device_map="auto")
24
+
25
+ messages = [
26
+ {"role": "user", "content": "Tere!"},
27
+ {"role": "assistant", "content": "Tere! Kas saaksin teid kuidagi aidata?"},
28
+ {"role": "user", "content": "Kuidas alustada kirja kirjutamist?"}
29
+ ]
30
+
31
+ conversation = Conversation(messages)
32
+ conversation = pipe(conversation)
33
+ ```
34
+
35
+ Conversational format:
36
+ ```
37
+ <|user|>
38
+ Tere!
39
+ <|assistant|>
40
+ Tere! Kas saaksin teid kuidagi aidata?</s>
41
+ <|user|>
42
+ Kuidas alustada kirja kirjutamist?
43
+ <|assistant|>
44
+ Kirja kirjutamiseks alustage tervitusega, näiteks "Tere!" või "Tere hommikust!". Seejärel tutvustage ennast ja mainige, kellega kirjutate. Kirjeldage oma mõtteid või küsimusi, mida soovite arutada. Lõpetage kiri viisakalt, näiteks "Tänan teid tähelepanu eest!" või "Parimate soovidega!"</s>
45
+