Token Classification
Transformers
ONNX
Safetensors
Transformers.js
English
modernbert
prompt-compression
context-compression
llmlingua
rag
agent-observability
tamarillo
Eval Results (legacy)
Instructions to use Tamarillo/prompt-compressor-tiny-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/prompt-compressor-tiny-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Tamarillo/prompt-compressor-tiny-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Tamarillo/prompt-compressor-tiny-en") model = AutoModelForTokenClassification.from_pretrained("Tamarillo/prompt-compressor-tiny-en", device_map="auto") - Transformers.js
How to use Tamarillo/prompt-compressor-tiny-en with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'Tamarillo/prompt-compressor-tiny-en'); - Notebooks
- Google Colab
- Kaggle
Release Tamarillo/prompt-compressor-tiny-en (Apache-2.0, ModernBERT extractive prompt compressor, parity-verified ONNX)
bad1d0a verified Download training_summary.json from Tamarillo/prompt-compressor-tiny-en: direct link, hf CLI and curl.
- Browser
- Download file 1.86 kB
-
https://huggingface.co/Tamarillo/prompt-compressor-tiny-en/resolve/main/training_summary.json
- Command line
-
hf download hf://Tamarillo/prompt-compressor-tiny-en/training_summary.json
-
curl -L -o training_summary.json https://huggingface.co/Tamarillo/prompt-compressor-tiny-en/resolve/main/training_summary.json
1.86 kB
| { | |
| "base_model": "jhu-clsp/ettin-encoder-32m", | |
| "distilled_from": "Tamarillo/prompt-compressor-small", | |
| "train_docs_raw": 782, | |
| "train_docs_stitched": 1051, | |
| "val_docs": 113, | |
| "train_runtime_sec": 139.4, | |
| "best_val_metrics": { | |
| "val_tok_auc": 0.88905, | |
| "val_tok_f1": 0.88221, | |
| "selection_score": 0.88632, | |
| "step": 100, | |
| "weights": "raw" | |
| }, | |
| "val_history": [ | |
| { | |
| "val_tok_auc": 0.87, | |
| "val_tok_f1": 0.86745, | |
| "selection_score": 0.86898, | |
| "step": 50, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_tok_auc": 0.68611, | |
| "val_tok_f1": 0.56701, | |
| "selection_score": 0.63847, | |
| "step": 50, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_tok_auc": 0.88905, | |
| "val_tok_f1": 0.88221, | |
| "selection_score": 0.88632, | |
| "step": 100, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_tok_auc": 0.80984, | |
| "val_tok_f1": 0.70328, | |
| "selection_score": 0.76722, | |
| "step": 100, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_tok_auc": 0.88944, | |
| "val_tok_f1": 0.87641, | |
| "selection_score": 0.88423, | |
| "step": 150, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_tok_auc": 0.85835, | |
| "val_tok_f1": 0.82199, | |
| "selection_score": 0.8438, | |
| "step": 150, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_tok_auc": 0.88976, | |
| "val_tok_f1": 0.86805, | |
| "selection_score": 0.88108, | |
| "step": 200, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_tok_auc": 0.87602, | |
| "val_tok_f1": 0.86479, | |
| "selection_score": 0.87153, | |
| "step": 200, | |
| "weights": "ema" | |
| }, | |
| { | |
| "val_tok_auc": 0.88953, | |
| "val_tok_f1": 0.86992, | |
| "selection_score": 0.88169, | |
| "step": 231, | |
| "weights": "raw" | |
| }, | |
| { | |
| "val_tok_auc": 0.88077, | |
| "val_tok_f1": 0.87276, | |
| "selection_score": 0.87757, | |
| "step": 231, | |
| "weights": "ema" | |
| } | |
| ] | |
| } |