Zero-Shot Classification
PEFT
Safetensors
English
lev
system-one
decision-model
calibrated-decisions
classification
routing
moderation
lora
Instructions to use interfaze-ai/lev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use interfaze-ai/lev with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-4B") model = PeftModel.from_pretrained(base_model, "interfaze-ai/lev") - Notebooks
- Google Colab
- Kaggle
docs: add a hosted classification section linking Interfaze
Browse files
README.md
CHANGED
|
@@ -202,7 +202,7 @@ The 69 ms is engine compute for a short request (a three-sentence state), measur
|
|
| 202 |
|
| 203 |
- **Data:** 200,000 examples from 29 sources built on 26 public Hugging Face datasets. The tasks cover topic, sentiment, and emotion classification; intent detection (banking77, clinc_oos, snips); NLI (SNLI, ANLI, FEVER); paraphrase (MRPC, QQP, PARADE, plus word-swapped hard negatives); multiple-choice QA (RACE, ARC, SciQ, OpenBookQA, CommonsenseQA, StrategyQA); toxicity and safety (ToxiGen, ToxicChat, BeaverTails); and helpfulness (UltraFeedback). Questions are paraphrased, negated, and recast between types, and option sets are shuffled and resized, so the model learns the question format and not one wording.
|
| 204 |
- **Contamination guard:** the data build refuses any source that resolves to one of the 13 S1Bench subsets.
|
| 205 |
-
- **Recipe:** LoRA r=32, α=64 on the q/k/v/o attention and MLP projections; 3 epochs, 18,750 steps, batch size 32, learning rate 5e-5, in the base model's chat format, on one H100.
|
| 206 |
|
| 207 |
## Boundaries worth understanding
|
| 208 |
|
|
@@ -212,6 +212,21 @@ The 69 ms is engine compute for a short request (a three-sentence state), measur
|
|
| 212 |
- **English only.**
|
| 213 |
- **Needs a GPU for real-time use.** It runs on CPU, but a 4B backbone there takes seconds per call, not milliseconds.
|
| 214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
## Files
|
| 216 |
|
| 217 |
| file | role |
|
|
|
|
| 202 |
|
| 203 |
- **Data:** 200,000 examples from 29 sources built on 26 public Hugging Face datasets. The tasks cover topic, sentiment, and emotion classification; intent detection (banking77, clinc_oos, snips); NLI (SNLI, ANLI, FEVER); paraphrase (MRPC, QQP, PARADE, plus word-swapped hard negatives); multiple-choice QA (RACE, ARC, SciQ, OpenBookQA, CommonsenseQA, StrategyQA); toxicity and safety (ToxiGen, ToxicChat, BeaverTails); and helpfulness (UltraFeedback). Questions are paraphrased, negated, and recast between types, and option sets are shuffled and resized, so the model learns the question format and not one wording.
|
| 204 |
- **Contamination guard:** the data build refuses any source that resolves to one of the 13 S1Bench subsets.
|
| 205 |
+
- **Recipe:** LoRA r=32, α=64 on the q/k/v/o attention and MLP projections; 3 epochs, 18,750 steps, batch size 32, learning rate 5e-5, in the base model's chat format, on one H100 in 7.8 hours.
|
| 206 |
|
| 207 |
## Boundaries worth understanding
|
| 208 |
|
|
|
|
| 212 |
- **English only.**
|
| 213 |
- **Needs a GPU for real-time use.** It runs on CPU, but a 4B backbone there takes seconds per call, not milliseconds.
|
| 214 |
|
| 215 |
+
## Hosted classification
|
| 216 |
+
|
| 217 |
+
Text classification in Interfaze runs on a similar system to lev: the model reads the answer from the set of labels you define. The difference is that Interfaze is still token based, so it's a hybrid.
|
| 218 |
+
|
| 219 |
+
| Item | lev | Interfaze |
|
| 220 |
+
| :-- | :-- | :-- |
|
| 221 |
+
| Output | Probabilities, zero output tokens | Tokens, returned as structured output |
|
| 222 |
+
| Questions | Typed only: yes/no, choice, score | Any JSON schema, labels included |
|
| 223 |
+
| In the same request | Classification only | OCR, web search, transcription, extraction, and more |
|
| 224 |
+
| Where it runs | Your GPU | Interfaze API |
|
| 225 |
+
|
| 226 |
+
Tokens cost a little speed, but they let one request classify a document while also reading, searching, and extracting from it. Define your labels as an enum in the schema, and the label comes back as a typed field.
|
| 227 |
+
|
| 228 |
+
**Interfaze docs → [interfaze.ai/docs](https://interfaze.ai/docs)**
|
| 229 |
+
|
| 230 |
## Files
|
| 231 |
|
| 232 |
| file | role |
|