Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • 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

ewin-reg
/
MiniCPM5-2B-RotSVDMix-Quantized

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
Model card Files Files and versions
xet
Community

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)
    # 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=40)
    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
MiniCPM5-2B-RotSVDMix-Quantized
2 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 77 commits
ewin-reg's picture
ewin-reg
docs: sync README_v14 with intra-runtime benchmark scorecard
6905f23 verified 1 day ago
  • .gitattributes
    1.52 kB
    initial commit 2 days ago
  • MiniCPM5_2B_GGUF_Colab_Benchmark.ipynb
    14.2 kB
    Upload MiniCPM5_2B_GGUF_Colab_Benchmark.ipynb with huggingface_hub 1 day ago
  • README.md
    14.5 kB
    docs: update empirical benchmark with strict intra-runtime baseline isolation 1 day ago
  • README_v14.md
    14.5 kB
    docs: sync README_v14 with intra-runtime benchmark scorecard 1 day ago
  • chat_template.jinja
    9.06 kB
    Upload chat_template.jinja 2 days ago
  • colab_benchmark_results.json
    3.47 kB
    data: update benchmark scorecard with intra-runtime and cross-runtime diagnostics 1 day ago
  • config.json
    2.25 kB
    Update config.json with comprehensive Rot-SVD-Mix v2 quantization metadata 2 days ago
  • model.safetensors
    1.99 GB
    xet
    Release v14: ExTernD Low-Rank Ternary Stacking (PPL 20.92, 1.985 GB, 98.7% Cosine) 1 day ago
  • real_benchmark_results.json
    228 Bytes
    Update real_benchmark_results.json for v14 ExTernD release 1 day ago
  • scorecard.json
    1.79 kB
    Update scorecard.json for v14 ExTernD release 1 day ago
  • tokenizer.json
    9.89 MB
    Upload tokenizer.json 2 days ago
  • tokenizer_config.json
    436 Bytes
    Upload tokenizer_config.json 2 days ago