Downloads · 30 days
122
2% of all-time downloads
liufanfanlff/C3-Context-Cascade-Compression
C3-Context-Cascade-Compression is a text generation model from liufanfanlff. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
122
2% of all-time downloads
All-time downloads
6.4K
Public
Parameters
3.1B
9.3 GB on disk
Likes
7
Public
Click a slice to open those files.
.safetensors9.3 GB · 100%
From the Hugging Face model README

from transformers import AutoModel, AutoTokenizer
model_name = 'liufanfanlff/C3-Context-Cascade-Compression'
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModel.from_pretrained(model_name , trust_remote_code=True, low_cpu_mem_usage=True, device_map='cuda', use_safetensors=True, pad_token_id=tokenizer.eos_token_id)
model = model.eval().cuda()
prompt = 'Repeat the text: '
context = "帝高阳之苗裔兮,朕皇考曰伯庸。摄提贞于孟陬兮,"
#context = "lfflfflfflfflfflfflfflfflff"
outputs = model.chat(tokenizer, context, prompt)
print ("Repeat the text: ",outputs)
viz

Don't hesitate to contact me by email, [email protected], if you have any questions.
@article{liu2025context,
title={Context Cascade Compression: Exploring the Upper Limits of Text Compression},
author={Liu, Fanfan and Qiu, Haibo},
journal={arXiv preprint arXiv:2511.15244},
year={2025}
}