Update README.md
Browse files
README.md
CHANGED
@@ -108,7 +108,7 @@ model_id = "BSC-LT/salamandraTA-7b-instruct"
|
|
108 |
|
109 |
source = 'Spanish'
|
110 |
target = 'Catalan'
|
111 |
-
sentence = "
|
112 |
|
113 |
text = f"Translate the following text from {source} into {target}.\n{source}: {sentence} \n{target}:"
|
114 |
|
@@ -143,7 +143,7 @@ outputs = model.generate(input_ids=inputs.to(model.device),
|
|
143 |
num_beams=5)
|
144 |
|
145 |
print(tokenizer.decode(outputs[0, input_length:], skip_special_tokens=True))
|
146 |
-
#
|
147 |
```
|
148 |
|
149 |
Using this template, each turn is preceded by a `<|im_start|>` delimiter and the role of the entity
|
|
|
108 |
|
109 |
source = 'Spanish'
|
110 |
target = 'Catalan'
|
111 |
+
sentence = "Ayer se fue, tom贸 sus cosas y se puso a navegar. Una camisa, un pantal贸n vaquero y una canci贸n, d贸nde ir谩, d贸nde ir谩. Se despidi贸, y decidi贸 batirse en duelo con el mar. Y recorrer el mundo en su velero. Y navegar, nai-na-na, navegar"
|
112 |
|
113 |
text = f"Translate the following text from {source} into {target}.\n{source}: {sentence} \n{target}:"
|
114 |
|
|
|
143 |
num_beams=5)
|
144 |
|
145 |
print(tokenizer.decode(outputs[0, input_length:], skip_special_tokens=True))
|
146 |
+
# Ahir se'n va anar, va recollir les seves coses i es va fer a la mar. Una camisa, uns texans i una can莽贸, on anir脿, on anir脿. Es va acomiadar i va decidir batre's en duel amb el mar. I fer la volta al m贸n en el seu veler. I navegar, nai-na-na, navegar
|
147 |
```
|
148 |
|
149 |
Using this template, each turn is preceded by a `<|im_start|>` delimiter and the role of the entity
|