ipswy commited on
Commit
7a451e2
·
verified ·
1 Parent(s): 06f3fdd

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +59 -37
README.md CHANGED
@@ -1,37 +1,59 @@
1
- ---
2
- license: apache-2.0
3
- language:
4
- - en
5
- - sw
6
- tags:
7
- - finance
8
- - kenya
9
- - africa
10
- - qwen2
11
- - lora
12
- - senti-ai
13
- pipeline_tag: text-generation
14
- library_name: transformers
15
- base_model: Qwen/Qwen2.5-1.5B-Instruct
16
- ---
17
-
18
- # Senti-Shujaa V4
19
-
20
- **Senti-Shujaa** is a finance-specialized language model fine-tuned for Kenya and East Africa.
21
-
22
- ## Model Details
23
- - **Base Model**: Qwen2.5-1.5B-Instruct
24
- - **Fine-tuning**: LoRA (rank=16, alpha=128) with DPO
25
- - **Training**: Unsloth + 4-bit QLoRA on finance-specific data
26
- - **Languages**: English, Swahili, Sheng
27
-
28
- ## Capabilities
29
- - PAYE/Tax calculations routing
30
- - Budget planning and coaching
31
- - Credit scoring and risk assessment
32
- - SACCO portfolio analysis
33
- - Compliance and regulatory guidance (KRA, SASRA)
34
- - Swahili and Sheng financial literacy
35
-
36
- ## Usage
37
- This model is served via the HuggingFace Serverless Inference API as the Brain of Senti AI.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-1.5B-Instruct
3
+ library_name: transformers
4
+ tags:
5
+ - finance
6
+ - kenya
7
+ - africa
8
+ - text-generation-inference
9
+ pipeline_tag: text-generation
10
+ ---
11
+
12
+ # Model Card for senti_shujaa_v4
13
+
14
+ This model is a fine-tuned version of [unsloth/Qwen2.5-1.5B-Instruct-bnb-4bit](https://huggingface.co/unsloth/Qwen2.5-1.5B-Instruct-bnb-4bit).
15
+ It has been trained using [TRL](https://github.com/huggingface/trl).
16
+
17
+ ## Quick start
18
+
19
+ ```python
20
+ from transformers import pipeline
21
+
22
+ 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?"
23
+ generator = pipeline("text-generation", model="None", device="cuda")
24
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
+ print(output["generated_text"])
26
+ ```
27
+
28
+ ## Training procedure
29
+
30
+
31
+
32
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - PEFT 0.18.1
38
+ - TRL: 0.24.0
39
+ - Transformers: 5.5.0
40
+ - Pytorch: 2.10.0+cu128
41
+ - Datasets: 4.3.0
42
+ - Tokenizers: 0.22.2
43
+
44
+ ## Citations
45
+
46
+
47
+
48
+ Cite TRL as:
49
+
50
+ ```bibtex
51
+ @misc{vonwerra2022trl,
52
+ title = {{TRL: Transformer Reinforcement Learning}},
53
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
54
+ year = 2020,
55
+ journal = {GitHub repository},
56
+ publisher = {GitHub},
57
+ howpublished = {\url{https://github.com/huggingface/trl}}
58
+ }
59
+ ```