CompiwerAI commited on
Commit
b36ad1b
·
verified ·
1 Parent(s): d7a6d39

Add adapter file: README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -60
README.md CHANGED
@@ -1,80 +1,62 @@
1
  ---
2
- license: apache-2.0
 
 
3
  tags:
 
4
  - lora
5
- - qlora
6
- - adapter
7
- - qwen
8
- - coding
9
- - mathematics
10
- - reasoning
11
- - darija
12
- - arabic
13
- library_name: peft
14
  ---
15
 
16
- # Mtrini-27B-Tellus-Adapter
17
-
18
- This repository contains the **LoRA/QLoRA adapter** for Mtrini-27B-Tellus, developed by CompiwerAI.
19
-
20
- > **CompiwerAI — Building AI For Everyone.**
21
 
22
- ## Model Information
 
23
 
24
- - Base model: **Qwen3.8-27B**
25
- - Training method: **QLoRA**
26
- - Training quantization: **4-bit NF4**
27
- - Compute dtype: **BF16**
28
- - LoRA rank: **32**
29
- - LoRA alpha: **64**
30
- - LoRA dropout: **0.05**
31
- - Context length: **4096**
32
- - Training steps: **700**
33
- - Learning rate: **0.00015**
34
- - Effective batch size: **16**
35
 
36
- ## Training Mix
 
37
 
38
- - OpenCodeInstruct — 35%
39
- - Magicoder — 10%
40
- - OpenR1-Math — 25%
41
- - Moroccan Darija — 20%
42
- - Aya Arabic / Moroccan Arabic — 10%
43
 
44
- Total: **11,200 examples**
45
 
46
- ## Training Result
47
 
48
- - Final loss: **0.4302458722250802**
49
- - Runtime: approximately **3.15 hours**
50
- - Epoch: **1**
51
- - Hardware: **NVIDIA RTX PRO 6000 Blackwell Server Edition**
52
 
53
- ## Loading the Adapter
54
 
55
- ```python
56
- from transformers import AutoModelForCausalLM, AutoTokenizer
57
- from peft import PeftModel
58
 
59
- base_model = AutoModelForCausalLM.from_pretrained(
60
- "Qwen/Qwen3.8-27B",
61
- torch_dtype="auto",
62
- device_map="auto",
63
- )
64
 
65
- tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3.8-27B")
 
 
 
 
 
66
 
67
- model = PeftModel.from_pretrained(
68
- base_model,
69
- "CompiwerAI/Mtrini-27B-Tellus-Adapter",
70
- )
71
- ```
72
 
73
- Use the exact compatible base-model configuration associated with this release.
74
 
75
- ## Related Releases
76
 
77
- - Merged: `CompiwerAI/Mtrini-27B-Tellus-Merged`
78
- - F16 GGUF: `CompiwerAI/Mtrini-27B-Tellus-GGUF`
79
- - IQ2_XS: `CompiwerAI/Mtrini-27B-Tellus-IQ2_XS`
80
- - Imatrix: `CompiwerAI/Mtrini-27B-Tellus-IQ2_XS-Imatrix`
 
 
 
 
 
 
 
 
1
  ---
2
+ base_model: Qwen/Qwen3.8-27B
3
+ library_name: peft
4
+ model_name: mtrini-27b-tellus-adapter
5
  tags:
6
+ - base_model:adapter:Qwen/Qwen3.8-27B
7
  - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ licence: license
12
+ pipeline_tag: text-generation
 
 
 
 
13
  ---
14
 
15
+ # Model Card for mtrini-27b-tellus-adapter
 
 
 
 
16
 
17
+ This model is a fine-tuned version of [Qwen/Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B).
18
+ It has been trained using [TRL](https://github.com/huggingface/trl).
19
 
20
+ ## Quick start
 
 
 
 
 
 
 
 
 
 
21
 
22
+ ```python
23
+ from transformers import pipeline
24
 
25
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
26
+ generator = pipeline("text-generation", model="None", device_map="auto")
27
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
28
+ print(output["generated_text"])
29
+ ```
30
 
31
+ ## Training procedure
32
 
33
+
34
 
 
 
 
 
35
 
 
36
 
37
+ This model was trained with SFT.
 
 
38
 
39
+ ### Framework versions
 
 
 
 
40
 
41
+ - PEFT 0.21.0
42
+ - TRL: 1.14.0
43
+ - Transformers: 5.17.0
44
+ - Pytorch: 2.11.0
45
+ - Datasets: 5.0.1
46
+ - Tokenizers: 0.23.2
47
 
48
+ ## Citations
 
 
 
 
49
 
 
50
 
 
51
 
52
+ Cite TRL as:
53
+
54
+ ```bibtex
55
+ @software{vonwerra2020trl,
56
+ title = {{TRL: Transformers Reinforcement Learning}},
57
+ author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
58
+ license = {Apache-2.0},
59
+ url = {https://github.com/huggingface/trl},
60
+ year = {2020}
61
+ }
62
+ ```