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

darioooooo0o
/
ctxprune-small

Token Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
prompt-compression
context-compression
llmlingua
agents
tool-use
mmbert
claude-code
Model card Files Files and versions
xet
Community
2

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

  • Libraries
  • Transformers

    How to use darioooooo0o/ctxprune-small with Transformers:

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

    How to use darioooooo0o/ctxprune-small with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('token-classification', 'darioooooo0o/ctxprune-small');
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Try this model from the 0.5.0 CLI (real run)

#2 opened 7 days ago by
darioooooo0o

ctxprune 0.4: query-aware pruning, drop-in llmlingua compat, held-out LongBench gate

#1 opened 9 days ago by
darioooooo0o
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs