Wajdi Ghezaiel commited on
Commit
390f7d7
·
verified ·
1 Parent(s): b0ecf80

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -4
README.md CHANGED
@@ -9,14 +9,45 @@ tags:
9
  - unsloth
10
  - llama
11
  - trl
 
 
 
12
  ---
 
13
 
 
14
  # Uploaded model
15
 
16
- - **Developed by:** Wajdi1976
17
  - **License:** apache-2.0
18
- - **Finetuned from model :** inceptionai/jais-adapted-7b-chat
 
 
19
 
20
- This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
 
 
 
 
 
 
21
 
22
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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)