Update README.md
Browse files
README.md
CHANGED
|
@@ -9,198 +9,104 @@ tags:
|
|
| 9 |
|
| 10 |
# Model Card for Model ID
|
| 11 |
|
| 12 |
-
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
### Model Description
|
| 19 |
-
|
| 20 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
- **Developed by:** [More Information Needed]
|
| 25 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 26 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 27 |
-
- **Model type:** [More Information Needed]
|
| 28 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 29 |
-
- **License:** [More Information Needed]
|
| 30 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 31 |
-
|
| 32 |
-
### Model Sources [optional]
|
| 33 |
-
|
| 34 |
-
<!-- Provide the basic links for the model. -->
|
| 35 |
-
|
| 36 |
-
- **Repository:** [More Information Needed]
|
| 37 |
-
- **Paper [optional]:** [More Information Needed]
|
| 38 |
-
- **Demo [optional]:** [More Information Needed]
|
| 39 |
-
|
| 40 |
-
## Uses
|
| 41 |
-
|
| 42 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 43 |
-
|
| 44 |
-
### Direct Use
|
| 45 |
-
|
| 46 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 47 |
-
|
| 48 |
-
[More Information Needed]
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 53 |
-
|
| 54 |
-
[More Information Needed]
|
| 55 |
-
|
| 56 |
-
### Out-of-Scope Use
|
| 57 |
-
|
| 58 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
## Bias, Risks, and Limitations
|
| 63 |
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
[More Information Needed]
|
| 67 |
-
|
| 68 |
-
### Recommendations
|
| 69 |
-
|
| 70 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 71 |
-
|
| 72 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 73 |
-
|
| 74 |
-
## How to Get Started with the Model
|
| 75 |
|
| 76 |
-
|
|
|
|
| 77 |
|
| 78 |
-
|
| 79 |
|
| 80 |
-
|
| 81 |
|
| 82 |
-
|
| 83 |
|
| 84 |
-
|
| 85 |
|
| 86 |
-
|
| 87 |
|
| 88 |
-
|
| 89 |
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
#### Preprocessing [optional]
|
| 93 |
-
|
| 94 |
-
[More Information Needed]
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
#### Training Hyperparameters
|
| 98 |
-
|
| 99 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 100 |
-
|
| 101 |
-
#### Speeds, Sizes, Times [optional]
|
| 102 |
-
|
| 103 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 104 |
-
|
| 105 |
-
[More Information Needed]
|
| 106 |
-
|
| 107 |
-
## Evaluation
|
| 108 |
-
|
| 109 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 110 |
-
|
| 111 |
-
### Testing Data, Factors & Metrics
|
| 112 |
-
|
| 113 |
-
#### Testing Data
|
| 114 |
-
|
| 115 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 116 |
-
|
| 117 |
-
[More Information Needed]
|
| 118 |
-
|
| 119 |
-
#### Factors
|
| 120 |
-
|
| 121 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 122 |
-
|
| 123 |
-
[More Information Needed]
|
| 124 |
-
|
| 125 |
-
#### Metrics
|
| 126 |
-
|
| 127 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 128 |
-
|
| 129 |
-
[More Information Needed]
|
| 130 |
-
|
| 131 |
-
### Results
|
| 132 |
-
|
| 133 |
-
[More Information Needed]
|
| 134 |
|
| 135 |
-
|
| 136 |
|
|
|
|
| 137 |
|
|
|
|
| 138 |
|
| 139 |
-
|
| 140 |
|
| 141 |
-
|
| 142 |
|
| 143 |
-
|
| 144 |
|
| 145 |
-
|
| 146 |
|
| 147 |
-
|
| 148 |
|
| 149 |
-
|
| 150 |
|
| 151 |
-
|
| 152 |
-
- **Hours used:** [More Information Needed]
|
| 153 |
-
- **Cloud Provider:** [More Information Needed]
|
| 154 |
-
- **Compute Region:** [More Information Needed]
|
| 155 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 156 |
|
| 157 |
-
|
| 158 |
|
| 159 |
-
### Model Architecture and Objective
|
| 160 |
|
| 161 |
-
[More Information Needed]
|
| 162 |
|
| 163 |
-
###
|
| 164 |
|
| 165 |
-
|
| 166 |
|
| 167 |
-
|
| 168 |
|
| 169 |
-
|
| 170 |
|
| 171 |
-
|
| 172 |
|
| 173 |
-
|
| 174 |
|
| 175 |
-
##
|
| 176 |
|
| 177 |
-
|
| 178 |
|
| 179 |
-
|
| 180 |
|
| 181 |
-
|
| 182 |
|
| 183 |
-
|
| 184 |
|
| 185 |
-
|
| 186 |
|
| 187 |
-
|
| 188 |
|
| 189 |
-
|
| 190 |
|
| 191 |
-
|
| 192 |
|
| 193 |
-
|
| 194 |
|
| 195 |
-
|
| 196 |
|
| 197 |
-
|
| 198 |
|
| 199 |
-
|
| 200 |
|
| 201 |
-
|
|
|
|
| 202 |
|
| 203 |
-
[More Information Needed]
|
| 204 |
-
### Framework versions
|
| 205 |
|
| 206 |
-
- PEFT 0.17.1
|
|
|
|
| 9 |
|
| 10 |
# Model Card for Model ID
|
| 11 |
|
| 12 |
+
KMMA – LoRA adapters for GaMS-9B-Instruct (Slovene multi-task news classification)
|
| 13 |
|
| 14 |
+
Model type: PEFT/LoRA adapters (not a full model)
|
| 15 |
+
Base model: cjvt/GaMS-9B-Instruct (Gemma-2 family)
|
| 16 |
+
Language: Slovene (sl), works reasonably on hr/bs/sr/croatian/serbian text too
|
| 17 |
+
Tasks: multi-label/ multi-head classification over news articles
|
| 18 |
+
Library: 🤗 Transformers, PEFT, bitsandbytes, PyTorch
|
| 19 |
|
| 20 |
+
TL;DR
|
| 21 |
|
| 22 |
+
This repo contains LoRA adapters + a small classification head that turn cjvt/GaMS-9B-Instruct into a 4-task classifier for Slovene news:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
CATEGORY: POLITIKA, DRUŽBA, GOSPODARSTVO, SVET, ŠPORT, KULTURA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
SENTIMENT: NEGATIVEN, NEVTRALEN, POZITIVEN
|
|
|
|
|
|
|
| 27 |
|
| 28 |
+
BIAS: LEVO, NEVTRALEN, DESNO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
+
CREDIBILITY (binary): VERODOSTOJNO, NEVERODOSTOJNO
|
| 31 |
+
(derived from a numeric credibility score with a threshold, see below)
|
| 32 |
|
| 33 |
+
The repo ships:
|
| 34 |
|
| 35 |
+
adapter_config.json + LoRA weights (PEFT)
|
| 36 |
|
| 37 |
+
multitask_head.pt (four linear layers for the heads)
|
| 38 |
|
| 39 |
+
label_maps.json (label order + max_length)
|
| 40 |
|
| 41 |
+
tokenizer files
|
| 42 |
|
| 43 |
+
⚠️ You must load the base model and then attach these adapters + head.
|
| 44 |
|
| 45 |
+
## Model Details
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
+
This repository contains LoRA adapters + a small classification head for the cjvt/GaMS-9B-Instruct model (Gemma-2 family), finetuned for multi-task classification of Slovene news.
|
| 48 |
|
| 49 |
+
The model predicts four attributes for a given article:
|
| 50 |
|
| 51 |
+
CATEGORY: POLITIKA, DRUŽBA, GOSPODARSTVO, SVET, ŠPORT, KULTURA
|
| 52 |
|
| 53 |
+
SENTIMENT: NEGATIVEN, NEVTRALEN, POZITIVEN
|
| 54 |
|
| 55 |
+
BIAS: LEVO, NEVTRALEN, DESNO
|
| 56 |
|
| 57 |
+
CREDIBILITY: VERODOSTOJNO, NEVERODOSTOJNO
|
| 58 |
|
| 59 |
+
Developed by: Jon Petek
|
| 60 |
|
| 61 |
+
Model type: PEFT/LoRA adapters + multitask head
|
| 62 |
|
| 63 |
+
Language(s) (NLP): Slovene (sl), works partially on hr/bs/sr
|
| 64 |
|
| 65 |
+
License: Apache 2.0 (adapters & code), base model subject to original GaMS/Gemma license
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
+
Finetuned from model: cjvt/GaMS-9B-Instruct
|
| 68 |
|
|
|
|
| 69 |
|
|
|
|
| 70 |
|
| 71 |
+
### Direct Use
|
| 72 |
|
| 73 |
+
Automated classification of Slovene news and opinion pieces into categories, sentiment, political bias, and credibility proxy.
|
| 74 |
|
| 75 |
+
For research, media monitoring, dashboards, or exploratory analysis.
|
| 76 |
|
| 77 |
+
### Downstream Use [optional]
|
| 78 |
|
| 79 |
+
As a feature extractor for analytics (e.g., news dashboards, monitoring tools).
|
| 80 |
|
| 81 |
+
Can be fine-tuned further on domain-specific labeled data.
|
| 82 |
|
| 83 |
+
### Out-of-Scope Use
|
| 84 |
|
| 85 |
+
High-stakes decision making (e.g., moderation, censorship, or factual verification).
|
| 86 |
|
| 87 |
+
Fine-grained stance detection or fact-checking (credibility labels are coarse and proxy-based).
|
| 88 |
|
| 89 |
+
## Bias, Risks, and Limitations
|
| 90 |
|
| 91 |
+
BIAS labels are coarse (left/neutral/right). Mixed stance or quoted text may confuse the model.
|
| 92 |
|
| 93 |
+
CREDIBILITY is not fact-checking — it mirrors dataset heuristics.
|
| 94 |
|
| 95 |
+
Errors may occur on very short, satirical, or code-switched texts.
|
| 96 |
|
| 97 |
+
Trained only on Slovene; cross-lingual performance is untested.
|
| 98 |
|
| 99 |
+
### Recommendations
|
| 100 |
|
| 101 |
+
Treat predictions as signals, not ground truth.
|
| 102 |
|
| 103 |
+
Review critical outputs manually.
|
| 104 |
|
| 105 |
+
Use balanced accuracy and macro-F1 for fairer evaluation of minority classes.
|
| 106 |
|
| 107 |
+
## How to Get Started with the Model
|
| 108 |
|
| 109 |
+
Use the code from this GitHub repository to get started with the model:
|
| 110 |
+
https://github.com/Truevoluhar/KMMA_finetuning_inference
|
| 111 |
|
|
|
|
|
|
|
| 112 |
|
|
|