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
File size: 1,861 Bytes
bad1d0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | {
"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"
}
]
} |