Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -49,11 +49,13 @@ This is a small multilingual language model based on a Transformer architecture
|
|
49 |
|
50 |
## How to Use
|
51 |
|
|
|
|
|
52 |
```python
|
53 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
54 |
|
55 |
-
tokenizer = AutoTokenizer.from_pretrained("Duino/Darija-GPT")
|
56 |
-
model = AutoModelForCausalLM.from_pretrained("Duino/Darija-GPT")
|
57 |
|
58 |
prompt_text = "هذا نموذج لغوي صغير" # Example prompt in Arabic/Darija
|
59 |
input_ids = tokenizer.encode(prompt_text, return_tensors="pt").to(model.device)
|
|
|
49 |
|
50 |
## How to Use
|
51 |
|
52 |
+
You can use this model with the `transformers` library from Hugging Face. Make sure you have `transformers` installed (`pip install transformers`).
|
53 |
+
|
54 |
```python
|
55 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
56 |
|
57 |
+
tokenizer = AutoTokenizer.from_pretrained("Duino/Darija-GPT")
|
58 |
+
model = AutoModelForCausalLM.from_pretrained("Duino/Darija-GPT")
|
59 |
|
60 |
prompt_text = "هذا نموذج لغوي صغير" # Example prompt in Arabic/Darija
|
61 |
input_ids = tokenizer.encode(prompt_text, return_tensors="pt").to(model.device)
|