Instructions to use bunnycore/SuperMiniCPM5-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use bunnycore/SuperMiniCPM5-2B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("openbmb/MiniCPM5-2B") model = PeftModel.from_pretrained(base_model, "bunnycore/SuperMiniCPM5-2B") - Transformers
How to use bunnycore/SuperMiniCPM5-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bunnycore/SuperMiniCPM5-2B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bunnycore/SuperMiniCPM5-2B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bunnycore/SuperMiniCPM5-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bunnycore/SuperMiniCPM5-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bunnycore/SuperMiniCPM5-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bunnycore/SuperMiniCPM5-2B
- SGLang
How to use bunnycore/SuperMiniCPM5-2B 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 "bunnycore/SuperMiniCPM5-2B" \ --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": "bunnycore/SuperMiniCPM5-2B", "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 "bunnycore/SuperMiniCPM5-2B" \ --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": "bunnycore/SuperMiniCPM5-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use bunnycore/SuperMiniCPM5-2B with Docker Model Runner:
docker model run hf.co/bunnycore/SuperMiniCPM5-2B
Model Card for Model ID
Model Details
The adapter was trained on distilled traces sourced from larger frontier models:
- Multi-turn reasoning chains covering formal logic, mathematics, and algorithmic problem-solving.
- Code instruction datasets featuring explanations, bug fixes, and unit test generation across common programming languages (Python, JavaScript, C++, Rust).
How to Use
- PEFT 0.18.1
- Downloads last month
- 16
Hardware compatibility
Log In to add your hardware
16-bit
Model tree for bunnycore/SuperMiniCPM5-2B
Base model
openbmb/MiniCPM5-2B