Translation
MLX
llama
batmac commited on
Commit
0d2cec9
·
verified ·
1 Parent(s): 25295a7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -31,5 +31,6 @@ pip install mlx-lm
31
  from mlx_lm import load, generate
32
 
33
  model, tokenizer = load("mlx-community/TowerInstruct-v0.1-bfloat16-mlx")
34
- response = generate(model, tokenizer, prompt="hello", verbose=True)
 
35
  ```
 
31
  from mlx_lm import load, generate
32
 
33
  model, tokenizer = load("mlx-community/TowerInstruct-v0.1-bfloat16-mlx")
34
+ prompt="Translate the following text from Portuguese into French.\nPortuguese: Um grupo de investigadores lançou um novo modelo para tarefas relacionadas com tradução.\nFrench:"
35
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
36
  ```