PEFT
Safetensors
Hausa
Yoruba
Swahili
gpt_oss
sentiment-analysis
african-languages
lora
autoscientist-challenge
Instructions to use gospelgit/African-Languages-Sentiment-Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use gospelgit/African-Languages-Sentiment-Classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("togethercomputer/gpt-oss-20b-bf16") model = PeftModel.from_pretrained(base_model, "gospelgit/African-Languages-Sentiment-Classifier") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -17,8 +17,7 @@ tags:
|
|
| 17 |
# African Languages Sentiment Classifier (Hausa, Yorùbá, Swahili)
|
| 18 |
|
| 19 |
A LoRA-adapted sentiment classifier for Hausa, Yorùbá, and Swahili, fine-tuned
|
| 20 |
-
on
|
| 21 |
-
— a combined dataset of **46,725 rows** stitched from three independent
|
| 22 |
sources across three different domains, built to reduce the single-domain
|
| 23 |
(Twitter-only) bias common in existing African-language sentiment resources.
|
| 24 |
|
|
@@ -34,9 +33,7 @@ sources across three different domains, built to reduce the single-domain
|
|
| 34 |
|
| 35 |
## Training Data
|
| 36 |
|
| 37 |
-
|
| 38 |
-
[`gospelgit/African-Languages_Sentiments`](https://huggingface.co/datasets/gospelgit/African-Languages_Sentiments).
|
| 39 |
-
Summary:
|
| 40 |
|
| 41 |
| Source | Domain | Languages | Rows |
|
| 42 |
|---|---|---|---|
|
|
@@ -47,16 +44,14 @@ Summary:
|
|
| 47 |
3-class labels (`positive` / `negative` / `neutral`), 70/15/15 train/dev/test
|
| 48 |
split per language, stratified by label.
|
| 49 |
|
| 50 |
-
> **Note on training data adaptation**: this
|
| 51 |
-
>
|
| 52 |
-
>
|
| 53 |
-
>
|
| 54 |
-
>
|
| 55 |
-
>
|
| 56 |
-
>
|
| 57 |
-
>
|
| 58 |
-
> want the raw, unmodified rows for your own training pipeline, use the
|
| 59 |
-
> original files rather than the adapted ones.
|
| 60 |
|
| 61 |
## Training Procedure
|
| 62 |
|
|
|
|
| 17 |
# African Languages Sentiment Classifier (Hausa, Yorùbá, Swahili)
|
| 18 |
|
| 19 |
A LoRA-adapted sentiment classifier for Hausa, Yorùbá, and Swahili, fine-tuned
|
| 20 |
+
on a combined dataset of **46,725 rows** stitched from three independent
|
|
|
|
| 21 |
sources across three different domains, built to reduce the single-domain
|
| 22 |
(Twitter-only) bias common in existing African-language sentiment resources.
|
| 23 |
|
|
|
|
| 33 |
|
| 34 |
## Training Data
|
| 35 |
|
| 36 |
+
This model was trained on a combined dataset built from three sources:
|
|
|
|
|
|
|
| 37 |
|
| 38 |
| Source | Domain | Languages | Rows |
|
| 39 |
|---|---|---|---|
|
|
|
|
| 44 |
3-class labels (`positive` / `negative` / `neutral`), 70/15/15 train/dev/test
|
| 45 |
split per language, stratified by label.
|
| 46 |
|
| 47 |
+
> **Note on training data adaptation**: this adapter was trained on a
|
| 48 |
+
> version of this data that was adapted once via [Adaption Labs'
|
| 49 |
+
> AutoScientist](https://adaptionlabs.ai/blog/autoscientist-challenge) —
|
| 50 |
+
> its "Adaptive Data" step rewrote the original rows into
|
| 51 |
+
> `enhanced_prompt`/`enhanced_completion` pairs (15,280 rows after this
|
| 52 |
+
> process) as part of its data-and-recipe co-optimization loop. **The
|
| 53 |
+
> dataset used to produce this result is included in this repo, alongside
|
| 54 |
+
> the model weights** (see Files and versions).
|
|
|
|
|
|
|
| 55 |
|
| 56 |
## Training Procedure
|
| 57 |
|