aidal commited on
Commit
6e8f421
1 Parent(s): abb875f

Create README.md

Browse files

**How to use:**
```python
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("aidal/Persian_Mistral_7B")
model = AutoModelForCausalLM.from_pretrained("aidal/Persian_Mistral_7B")

input_text = "Write me a poem about Machine Learning."
input_ids = tokenizer(input_text, return_tensors="pt")

outputs = model.generate(**input_ids)
print(tokenizer.decode(outputs[0]))
```

Files changed (1) hide show
  1. README.md +5 -0
README.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - fa
5
+ ---