Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Tamarillo
/
prompt-compressor-small

Token Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
prompt-compression
context-compression
llmlingua
rag
agent-observability
tamarillo
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use Tamarillo/prompt-compressor-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Tamarillo/prompt-compressor-small with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("token-classification", model="Tamarillo/prompt-compressor-small")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForTokenClassification
    
    tokenizer = AutoTokenizer.from_pretrained("Tamarillo/prompt-compressor-small")
    model = AutoModelForTokenClassification.from_pretrained("Tamarillo/prompt-compressor-small", device_map="auto")
  • Transformers.js

    How to use Tamarillo/prompt-compressor-small with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('token-classification', 'Tamarillo/prompt-compressor-small');
  • Notebooks
  • Google Colab
  • Kaggle
prompt-compressor-small / scripts
123 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
greendesk1631's picture
greendesk1631
Release Tamarillo/prompt-compressor-small (Apache-2.0, ModernBERT extractive prompt compressor, parity-verified ONNX)
4875150 verified about 7 hours ago
  • eval_pc_5suite.py
    17.1 kB
    Release Tamarillo/prompt-compressor-small (Apache-2.0, ModernBERT extractive prompt compressor, parity-verified ONNX) about 7 hours ago
  • synth_corpus_2026.py
    29.8 kB
    Release Tamarillo/prompt-compressor-small (Apache-2.0, ModernBERT extractive prompt compressor, parity-verified ONNX) about 7 hours ago
  • synth_corpus_v2.py
    17.6 kB
    Release Tamarillo/prompt-compressor-small (Apache-2.0, ModernBERT extractive prompt compressor, parity-verified ONNX) about 7 hours ago
  • synth_corpus_v3_clean.py
    16.6 kB
    Release Tamarillo/prompt-compressor-small (Apache-2.0, ModernBERT extractive prompt compressor, parity-verified ONNX) about 7 hours ago
  • synth_v3_selfgated.py
    16.5 kB
    Release Tamarillo/prompt-compressor-small (Apache-2.0, ModernBERT extractive prompt compressor, parity-verified ONNX) about 7 hours ago
  • train_and_eval_pc.py
    25.6 kB
    Release Tamarillo/prompt-compressor-small (Apache-2.0, ModernBERT extractive prompt compressor, parity-verified ONNX) about 7 hours ago