Text Generation
Safetensors
Chinese
English
minicpm3
conversational
custom_code
4-bit precision
gptq
Instructions to use openbmb/MiniCPM3-4B-GPTQ-Int4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- vLLM
How to use openbmb/MiniCPM3-4B-GPTQ-Int4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "openbmb/MiniCPM3-4B-GPTQ-Int4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openbmb/MiniCPM3-4B-GPTQ-Int4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/openbmb/MiniCPM3-4B-GPTQ-Int4
- SGLang
How to use openbmb/MiniCPM3-4B-GPTQ-Int4 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 "openbmb/MiniCPM3-4B-GPTQ-Int4" \ --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": "openbmb/MiniCPM3-4B-GPTQ-Int4", "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 "openbmb/MiniCPM3-4B-GPTQ-Int4" \ --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": "openbmb/MiniCPM3-4B-GPTQ-Int4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use openbmb/MiniCPM3-4B-GPTQ-Int4 with Docker Model Runner:
docker model run hf.co/openbmb/MiniCPM3-4B-GPTQ-Int4
Commit History
-
Upload model.safetensors
Verified signature4fc73a8 -
Delete model.safetensors
Verified signature1c2d44c -
Update config.json
Verified signatured381b88 -
Upload model.safetensors
Verified signatureed1f731 -
Delete model.safetensors
Verified signature1c9a370
-
Update README.md
Verified signature97a66a6 -
Update README.md
Verified signature1ff012c -
Rename gptq_model-4bit-128g.safetensors to model.safetensors
Verified signatureda59a15
-
Update tokenization_minicpm.py
Verified signature24e2cd4 -
Update README.md
Verified signature3e0236d -
Update modeling_minicpm.py
Verified signaturef429ca6 -
Update README.md
Verified signature6d442c6 -
Update README.md
Verified signature3c4a745 -
Update README.md
Verified signature1b61607 -
Upload tokenization_minicpm.py
Verified signature6db86f7 -
Update tokenizer_config.json
Verified signature5ec6583 -
Update modeling_minicpm.py
Verified signatureb4c018c -
Update configuration_minicpm.py
Verified signaturefd8ff8f -
change name to minicpm3
Verified signatured6ca5a3 -
change name to minicpm3
Verified signature0f2929a -
change name to minicpm3
Verified signature8613342 -
Upload gptq_model-4bit-128g.safetensors
Verified signaturef4db7f0 -
Delete gptq_model-4bit-128g.safetensors
Verified signature094d1d6 -
Update README.md
Verified signaturee5048ea -
Update config.json
Verified signaturea646dd8 -
Upload gptq_model-4bit-128g.safetensors
Verified signature3f8f092 -
Upload 10 files
Verified signaturef6af4a8 -
initial commit
Verified signatured4caee6