Text Classification
Transformers
Safetensors
English
modernbert
agent-safety
tool-calling
guardrails
long-context
Eval Results (legacy)
text-embeddings-inference
Instructions to use ProCreations/auto-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ProCreations/auto-1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ProCreations/auto-1b")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ProCreations/auto-1b") model = AutoModelForSequenceClassification.from_pretrained("ProCreations/auto-1b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -205,6 +205,28 @@ every call while false-approve applies to a rare few. At 3.19%, roughly 1 action
|
|
| 205 |
interrupted at the default threshold — down from 1 in 9 for auto-0.4b, which is what makes this
|
| 206 |
model practical to run standalone.
|
| 207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
## How it was built
|
| 209 |
|
| 210 |
**Context extension (8k → 64k).** ModernBERT-style architectures alternate local sliding-window
|
|
|
|
| 205 |
interrupted at the default threshold — down from 1 in 9 for auto-0.4b, which is what makes this
|
| 206 |
model practical to run standalone.
|
| 207 |
|
| 208 |
+
### Precision — use fp16
|
| 209 |
+
|
| 210 |
+
Measured on 400 benchmark rows against fp32, scoring **decision agreement** at threshold 0.5
|
| 211 |
+
(the only metric that matters for a gate — a build can look fine on mean error and still flip
|
| 212 |
+
calls near the boundary):
|
| 213 |
+
|
| 214 |
+
| precision | decision agreement | max ΔP(deny) | memory |
|
| 215 |
+
|---|---|---|---|
|
| 216 |
+
| fp32 | reference | — | ~3.9 GB |
|
| 217 |
+
| **fp16** | **100.00%** | 3.2e-03 | **~2 GB** |
|
| 218 |
+
| bf16 | 99.75% | 2.7e-02 | ~2 GB |
|
| 219 |
+
| int8 (ONNX dynamic) | 95.00% | 9.4e-01 | ~1 GB |
|
| 220 |
+
|
| 221 |
+
**fp16 halves memory at zero measured cost** — pass `dtype=torch.float16` as shown above.
|
| 222 |
+
|
| 223 |
+
Two results worth knowing. **fp16 beats bf16**: bf16 spends bits on exponent range an encoder
|
| 224 |
+
forward pass does not need, trading away mantissa precision to get it — the opposite of the
|
| 225 |
+
tradeoff you want at inference, even though bf16 is correct for training. And **int8 is not
|
| 226 |
+
salvageable** — per-channel quantization, the standard fix, scored *worse* (94.25%). The failure
|
| 227 |
+
is activation outliers in the GeGLU layers, which dynamic quantization cannot handle. See the
|
| 228 |
+
[ONNX repo](https://huggingface.co/ProCreations/auto-1b-ONNX) for the full breakdown.
|
| 229 |
+
|
| 230 |
## How it was built
|
| 231 |
|
| 232 |
**Context extension (8k → 64k).** ModernBERT-style architectures alternate local sliding-window
|