timpal0l commited on
Commit
87f98f5
·
verified ·
1 Parent(s): 7cb041b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -2
README.md CHANGED
@@ -13,9 +13,13 @@ tags:
13
  - translation
14
  ---
15
  # Model Card for gpt-sw3-6.7b-v2-translator
16
-
17
  The `gpt-sw3-6.7b-v2-translator` is a finetuned version of `gpt-sw3-6.7b-v2-instruct` on a carefully selected translation pair dataset that was gathered by AI Sweden.
18
 
 
 
 
 
 
19
  ## How to use:
20
  ```python
21
  import torch
@@ -41,7 +45,9 @@ pipe = pipeline(
41
  "AI-Sweden-Models/gpt-sw3-6.7b-v2-translator",
42
  device=device
43
  )
44
-
 
 
45
  text = "I like to eat ice cream in the summer."
46
  prompt = f"<|endoftext|><s>User: Översätt till Svenska från Engelska\n{text}<s>Bot:"
47
 
 
13
  - translation
14
  ---
15
  # Model Card for gpt-sw3-6.7b-v2-translator
 
16
  The `gpt-sw3-6.7b-v2-translator` is a finetuned version of `gpt-sw3-6.7b-v2-instruct` on a carefully selected translation pair dataset that was gathered by AI Sweden.
17
 
18
+
19
+ ## Intended usage:
20
+ Translate text data from English to Swedish, or Swedish to English.
21
+
22
+
23
  ## How to use:
24
  ```python
25
  import torch
 
45
  "AI-Sweden-Models/gpt-sw3-6.7b-v2-translator",
46
  device=device
47
  )
48
+ # This will translate English to Swedish
49
+ # To translate from Swedish to English the prompt would be:
50
+ # prompt = f"<|endoftext|><s>User: Översätt till Engelska från Svenska\n{text}<s>Bot:"
51
  text = "I like to eat ice cream in the summer."
52
  prompt = f"<|endoftext|><s>User: Översätt till Svenska från Engelska\n{text}<s>Bot:"
53