Views
No views yet
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.1356 | 0.04 | 10 | 1.4071 |
| 0.8079 | 0.08 | 20 | 0.2825 |
| 0.1592 | 0.12 | 30 | 0.1427 |
| 0.1202 | 0.16 | 40 | 0.1121 |
| 0.1095 | 0.2 | 50 | 0.1071 |
| 0.1024 | 0.24 | 60 | 0.1036 |
| 0.0993 | 0.28 | 70 | 0.1002 |
| 0.091 | 0.32 | 80 | 0.0992 |
| 0.1096 | 0.36 | 90 | 0.0965 |
| 0.0943 | 0.4 | 100 | 0.0916 |
| 0.0882 | 0.44 | 110 | 0.0896 |
| 0.0853 | 0.48 | 120 | 0.0848 |
| 0.0767 | 0.52 | 130 | 0.0808 |
| 0.0778 | 0.56 | 140 | 0.0765 |
| 0.0698 | 0.6 | 150 | 0.0734 |
| 0.0784 | 0.64 | 160 | 0.0694 |
| 0.0648 | 0.68 | 170 | 0.0658 |
| 0.0797 | 0.72 | 180 | 0.0630 |
| 0.0591 | 0.76 | 190 | 0.0604 |
| 0.0557 | 0.8 | 200 | 0.0582 |
| 0.0567 | 0.84 | 210 | 0.0561 |
| 0.057 | 0.88 | 220 | 0.0534 |
| 0.0505 | 0.92 | 230 | 0.0515 |
| 0.0483 | 0.96 | 240 | 0.0482 |
| 0.0463 | 1.0 | 250 | 0.0463 |
1from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
2import torch
3
4model_name = "MohammedNasser/silma_9b_instruct_ft"
5user_question = "إذا كان لديك ثلاث سيارات، وبعت واحدة منها، كم سيارة ستبقى لديك؟"
6
7# Load model and tokenizer
8import torch
9from transformers import pipeline
10
11# Create pipeline
12pipe = pipeline(
13 "text-generation",
14 model=model_name,
15 torch_dtype= torch.bfloat16,
16 device="cuda",
17 return_full_text=False,
18)
19
20messages = [
21 {"role": "user", "content": user_question },
22]
23
24# Example usage
25response = pipe(messages, max_new_tokens=128)
26assistant_response = outputs[0]["generated_text"]
27
28print(f"Question: {user_question}")
29print(f"Answer: {assistant_response}")1@misc {gaber_2024,
2 author = { {Gaber} },
3 title = { silma_9b_instruct_ft (Revision e54c562) },
4 year = 2024,
5 url = { https://huggingface.co/MohammedNasser/silma_9b_instruct_ft },
6 doi = { 10.57967/hf/3032 },
7 publisher = { Hugging Face }
8}