kinetical commited on
Commit
f99044a
1 Parent(s): a7f2f6a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -3
README.md CHANGED
@@ -1,3 +1,38 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+
5
+ # Simultaneous Machine Translation between English and Estonian using Llama-3.2
6
+
7
+ ## Introduction
8
+
9
+ This is a llama-3.2 3B instruct model finetuned on TED20 subset of `et-ee` language pair. This subset contains 23k pair of sentences, half of which are trained as Estonian to English direction, while the other half are trained as English to Estonian direcion. This model is very good at translating in simultaneous manner, i.e. it can handle incomplete and streaming inputs.
10
+
11
+ ## How to run it
12
+
13
+ First, install `llama.cpp`, follow https://github.com/ggerganov/llama.cpp?tab=readme-ov-file
14
+
15
+ Then, pull the quantized gguf file, and run the following command:
16
+
17
+ #### Estonian to English direction
18
+
19
+ ```bash
20
+ llama-cli -m Llama-3.2-3B-Instruct-Q4_K_M.gguf -p "You are a professional Estonian-to-English simultaneous interpreter. Translate the following conversations into English." -cnv --chat-template llama3 -c 4096
21
+ ```
22
+
23
+ #### English to Estonian direction
24
+
25
+ change the system above to "You are a professional English-to-Estonian simultaneous interpreter. Translate the following conversations into Estonian.", i.e.
26
+
27
+ ```bash
28
+ llama-cli -m Llama-3.2-3B-Instruct-Q4_K_M.gguf -p "You are a professional English-to-Estonian simultaneous interpreter. Translate the following conversations into Estonian." -cnv --chat-template llama3 -c 4096
29
+ ```
30
+
31
+
32
+
33
+ Now you can try to type in sentences that you want to translate.
34
+
35
+ - You may try to type in a few words, hit enter, and repeat. The model should be able to translate as you go.
36
+ - You can also try to input a full sentence.
37
+ - It's not great for a paragraph (yet).
38
+