HuggingFaceTB/SmolLM2-135M-Instructq_proj, k_proj, v_proj, o_proj| Metric | EN + ES |
|---|---|
| Accuracy | 0.951 |
| F1 | 0.948 |
| Languages | English (en), Spanish (es) |
| Labels | 0 = NO_EOU, 1 = EOU |
| Precision | fp16 (LoRA weights ≈ 5 MB) |
| License | Apache 2.0 |
| Author | @marc-es |
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2from peft import PeftModel
3
4base = AutoModelForSequenceClassification.from_pretrained(
5 "HuggingFaceTB/SmolLM2-135M-Instruct", num_labels=2)
6model = PeftModel.from_pretrained(base, "marc-es/orga-dynamic-1")
7tok = AutoTokenizer.from_pretrained("marc-es/orga-dynamic-1")
8
9def is_end(text):
10 out = model(**tok(text, return_tensors="pt"))[0]
11 return out.argmax(-1).item() == 1 # True = EOU