Text Generation
Transformers
Safetensors
PyTorch
English
Chinese
llama
minicpm
minicpm5
quantization
rotsvd
externd
ternary-quantization
hadamard-transform
low-rank-svd
edge-ai
mobile-inference
on-device-ai
int4
int8
causal-lm
conversational
text-generation-inference
4-bit precision
Eval Results (legacy)
rot_svd_mix_v2
Instructions to use ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized") model = AutoModelForCausalLM.from_pretrained("ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized
- SGLang
How to use ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized with Docker Model Runner:
docker model run hf.co/ewin-reg/MiniCPM5-2B-RotSVDMix-Quantized
Commit History
-
Update README.md
Verified signatureb962434 -
Update README.md
Verified signatured638c22
-
docs: sync README_v14 with intra-runtime benchmark scorecard
Verified signature6905f23 -
data: update benchmark scorecard with intra-runtime and cross-runtime diagnostics
Verified signatureede032c -
docs: update empirical benchmark with strict intra-runtime baseline isolation
Verified signature88cf2e0 -
docs: sync README_v14 with full GGUF benchmark metrics
Verified signaturea151327 -
data: upload verified Colab GPU benchmark results
Verified signature7694285 -
docs: update empirical GGUF concordance metrics and plain English unslop explanation
Verified signature284c073 -
Overhaul README: Unslop, plain English explanation, copy-paste quickstart, and clear empirical benchmarks
Verified signature2f3a34b -
Publish empirical Colab Tesla T4 GGUF benchmark scorecard
Verified signaturee7cc2eb -
Update comparative benchmark table with empirical Colab Tesla T4 GGUF measurements
Verified signature2e79e44 -
Upload MiniCPM5_2B_GGUF_Colab_Benchmark.ipynb with huggingface_hub
Verified signaturef95d875 -
Refine GGUF comparison table: replace extrapolated PPL with verified repository metrics
Verified signatured854401 -
Add comparative analysis table and takeaways against GGUF Q4_K_M and Q6_K
Verified signature577594f -
Overhaul README with real scraped analytics, official badges, and scraper configs
Verified signature9926f0a -
Overhaul README with real analytics, hosting app scraper configs (vLLM/TGI/Ollama), and zero assumptions
Verified signature0202ebc -
Overhaul README for SEO, GEO, and AEO with structured FAQ and clear benchmarks
Verified signaturea2f4510 -
Clean README: remove all broken inline dollar signs for clean markdown rendering
Verified signature3a04127 -
Rewrite README.md with clean, simple LaTeX formulations
Verified signaturef79a7a8 -
Overhaul README.md for v14 ExTernD low-rank ternary release
Verified signature4e31044 -
Update real_benchmark_results.json for v14 ExTernD release
Verified signature07cf6e0 -
Update scorecard.json for v14 ExTernD release
Verified signaturea967b33 -
Release v14: ExTernD Low-Rank Ternary Stacking (PPL 20.92, 1.985 GB, 98.7% Cosine)
Verified signature0c85ff1 -
Sync real_benchmark_results.json with v13 metrics
Verified signatureb2ab41f -
Update README.md for Rot-SVD-Mix v13 Tapered Hierarchy release
Verified signature64a36ec -
Publish v13 scorecard
Verified signatured46eb11 -
Publish Rot-SVD-Mix v13 Tapered Hierarchy (PPL 20.96, +2.42%, Cos 98.64%, Top1 96.0%)
Verified signaturead29add -
Publish v16 scorecard
Verified signature8e7e277 -
Publish Rot-SVD-Mix v16 Champion (PPL 20.88, +2.02%, Cos 98.57%, Top1 92.0%)
Verified signature4aef437 -
Publish v11 scorecard
Verified signaturec40796b -
Publish Rot-SVD-Mix v11 G16-Hybrid (PPL 21.08, +3.04%)
Verified signaturea21ca76 -
Publish v8 scorecard
Verified signature0d31aed -
Publish Rot-SVD-Mix v8 (PPL 21.31, +4.15%)
Verified signature4008121
-
Publish v6 scorecard
Verified signature2883a7d -
Publish Rot-SVD-Mix v6 with LDLQ sequential compensation
Verified signature9e3bfcc -
Update README.md with verified v5 empirical benchmarks (< 2.00 GB decimal)
Verified signature849d534 -
Publish Stacked Quant v5 scorecard
Verified signaturef83d4e5 -
Publish Stacked Quant v5 empirical benchmarks
Verified signaturee85c76c -
Publish Stacked Quant v5 SafeTensors weights (< 2.00 GB Decimal)
Verified signature9c3abfc -
Update model card with simple clean LaTeX formatting
Verified signature4197f01 -
Update model card with simple clean LaTeX formatting
Verified signature7f91ca1 -
Update model card with Stacked Quantization v4 precision empirical benchmarks
Verified signature040caba -
Publish Stacked Quant v4.3 scorecard
Verified signatureb57db86 -
Publish Stacked Quant v4.3 empirical benchmarks
Verified signature722a323 -
Publish Stacked Quant v4.3 SafeTensors weights
Verified signature4251c0a -
Publish Stacked Quant v4.2 scorecard
Verified signature76f21e4 -
Publish Stacked Quant v4.2 empirical benchmarks
Verified signature5ada25b -
Publish Stacked Quant v4.2 SafeTensors weights
Verified signature1113ead -
Publish Stacked Quant v4 scorecard
Verified signaturecf0a0e4 -
Publish Stacked Quant v4 empirical benchmarks
Verified signaturee388d43