Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# EuroLLM-Classifier-QLoRA
|
| 3 |
+
|
| 4 |
+
This repository contains a German binary sentence classifier fine-tuned on top of **EuroLLM** using **QLoRA**.
|
| 5 |
+
|
| 6 |
+
## Task
|
| 7 |
+
|
| 8 |
+
The model classifies utterances into two categories:
|
| 9 |
+
|
| 10 |
+
- `ADVANCE`: Contributions that move the conversation forward (e.g., confirmations, suggestions, answers).
|
| 11 |
+
- `NON_ADVANCE`: Utterances that do not advance the dialogue (e.g., misunderstandings, clarifications, hesitation).
|
| 12 |
+
|
| 13 |
+
## Base Model
|
| 14 |
+
|
| 15 |
+
The base model used is: `utter-project/EuroLLM-9B-Instruct`
|
| 16 |
+
|
| 17 |
+
## How to Use
|
| 18 |
+
|
| 19 |
+
```python
|
| 20 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 21 |
+
from peft import PeftModel, PeftConfig
|
| 22 |
+
|
| 23 |
+
peft_config = PeftConfig.from_pretrained("MB55/EuroLLM-Classifier-QLoRA")
|
| 24 |
+
base_model = AutoModelForSequenceClassification.from_pretrained(peft_config.base_model_name_or_path)
|
| 25 |
+
model = PeftModel.from_pretrained(base_model, "MB55/EuroLLM-Classifier-QLoRA")
|
| 26 |
+
tokenizer = AutoTokenizer.from_pretrained("MB55/EuroLLM-Classifier-QLoRA")
|