Wajdi Ghezaiel
commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,14 +9,45 @@ tags:
|
|
| 9 |
- unsloth
|
| 10 |
- llama
|
| 11 |
- trl
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
|
|
|
| 13 |
|
|
|
|
| 14 |
# Uploaded model
|
| 15 |
|
| 16 |
-
- **Developed by:**
|
| 17 |
- **License:** apache-2.0
|
| 18 |
-
- **Finetuned from model :** inceptionai/jais-adapted-7b-chat
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
- unsloth
|
| 10 |
- llama
|
| 11 |
- trl
|
| 12 |
+
datasets:
|
| 13 |
+
- Wajdi1976/Tunisian_Derja_Dataset
|
| 14 |
+
library_name: transformers
|
| 15 |
---
|
| 16 |
+
## Model Overview
|
| 17 |
|
| 18 |
+
Labess is an open models instruction-tuned for Tunisian Derja, it's a continual pre-training version of jais-adapted-7b-chat with tunisian_Derja_Dataset
|
| 19 |
# Uploaded model
|
| 20 |
|
| 21 |
+
- **Developed by:** Linagora
|
| 22 |
- **License:** apache-2.0
|
| 23 |
+
- **Finetuned from model :** inceptionai/jais-adapted-7b-chat
|
| 24 |
+
## Usage
|
| 25 |
+
Below we share some code snippets on how to get quickly started with running the model. First, install the Transformers library with:
|
| 26 |
|
| 27 |
+
```sh
|
| 28 |
+
pip install transformers
|
| 29 |
+
```
|
| 30 |
+
# Usage
|
| 31 |
+
```python
|
| 32 |
+
import torch
|
| 33 |
+
from transformers import pipeline
|
| 34 |
|
| 35 |
+
pipe = pipeline(
|
| 36 |
+
"text-generation",
|
| 37 |
+
model="Wajdi1976/jais_arabic_tunisien_derija",
|
| 38 |
+
model_kwargs={"torch_dtype": torch.bfloat16},
|
| 39 |
+
device="cuda" # replace with "mps" to run on a Mac device
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
messages = [
|
| 43 |
+
{"role": "user", "content": 'وين تجي تونس؟'},
|
| 44 |
+
]
|
| 45 |
+
|
| 46 |
+
outputs = pipe(messages, max_new_tokens=64, temperature=0.0)
|
| 47 |
+
assistant_response = outputs[0]["generated_text"][-1]["content"].strip()
|
| 48 |
+
print(assistant_response)
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|