aboutaleb commited on
Commit
293d6e5
·
verified ·
1 Parent(s): 6a5d8a0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -18
README.md CHANGED
@@ -1,22 +1,18 @@
1
- ---
2
- base_model: unsloth/meta-llama-3.1-8b-bnb-4bit
3
- tags:
4
- - text-generation-inference
5
- - transformers
6
- - unsloth
7
- - llama
8
- - trl
9
- license: apache-2.0
10
- language:
11
- - en
12
- ---
13
 
14
- # Uploaded model
15
 
16
- - **Developed by:** aboutaleb
17
- - **License:** apache-2.0
18
- - **Finetuned from model :** unsloth/meta-llama-3.1-8b-bnb-4bit
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)
 
1
+ # Fine-Tuned Darija Summarization Model
 
 
 
 
 
 
 
 
 
 
 
2
 
3
+ This is a fine-tuned version of `Llama-3.1` for text summarization in Darija (Moroccan Arabic). The model was trained on a dataset consisting of news articles and corresponding headlines.
4
 
5
+ ## Usage
 
 
6
 
7
+ ```python
8
+ from transformers import AutoModelForCausalLM, AutoTokenizer
9
+
10
+ model = AutoModelForCausalLM.from_pretrained("your_username/my-finetuned-darija-model")
11
+ tokenizer = AutoTokenizer.from_pretrained("your_username/my-finetuned-darija-model")
12
+
13
+ input_text = "Your Darija input text here..."
14
+ inputs = tokenizer(input_text, return_tensors="pt")
15
+ outputs = model.generate(**inputs)
16
+
17
+ print(tokenizer.decode(outputs[0]))
18