Text Generation
PEFT
Safetensors
Transformers
English
tool-use
function-calling
lora
minicpm
bfcl
python
sft
trl
unsloth
conversational
Instructions to use pmrccs/minicpm5-2b-python-tool-calling-v3-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use pmrccs/minicpm5-2b-python-tool-calling-v3-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("openbmb/MiniCPM5-2B") model = PeftModel.from_pretrained(base_model, "pmrccs/minicpm5-2b-python-tool-calling-v3-lora") - Transformers
How to use pmrccs/minicpm5-2b-python-tool-calling-v3-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pmrccs/minicpm5-2b-python-tool-calling-v3-lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("pmrccs/minicpm5-2b-python-tool-calling-v3-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pmrccs/minicpm5-2b-python-tool-calling-v3-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pmrccs/minicpm5-2b-python-tool-calling-v3-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pmrccs/minicpm5-2b-python-tool-calling-v3-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/pmrccs/minicpm5-2b-python-tool-calling-v3-lora
- SGLang
How to use pmrccs/minicpm5-2b-python-tool-calling-v3-lora 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 "pmrccs/minicpm5-2b-python-tool-calling-v3-lora" \ --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": "pmrccs/minicpm5-2b-python-tool-calling-v3-lora", "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 "pmrccs/minicpm5-2b-python-tool-calling-v3-lora" \ --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": "pmrccs/minicpm5-2b-python-tool-calling-v3-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use pmrccs/minicpm5-2b-python-tool-calling-v3-lora with Docker Model Runner:
docker model run hf.co/pmrccs/minicpm5-2b-python-tool-calling-v3-lora
Commit History
16 days ago
-
Update README.md
Verified signature52d53a9 -
Upload training_metrics_summary.png
Verified signatureadf5388 -
Update README.md
Verified signature04b8466 -
Update README.md
Verified signature9dc88f9
-
Upload logs/shard_proof.json with huggingface_hub
Verified signature79459c7 -
Upload logs/status.json with huggingface_hub
Verified signature1a1af83 -
Upload logs/step_log_20261004-010450.jsonl with huggingface_hub
Verified signature87d074d -
Upload logs/step_log_full.jsonl with huggingface_hub
Verified signaturea39cbd9 -
Upload logs/trainer_state.json with huggingface_hub
Verified signaturec5d3f3d -
README.md (complete)
Verified signature889c80a -
chat_template.jinja (complete)
Verified signaturef7a8677 -
tokenizer.json (complete)
Verified signatureb18b455 -
tokenizer_config.json (complete)
Verified signaturea89d6ee -
adapter_config.json (complete)
Verified signature236352b -
adapter_model.safetensors (complete)
Verified signature01ae3aa -
checkpoint step 3652
Verified signature6bafeea -
checkpoint step 3600
Verified signature0311e4b -
checkpoint step 3400
Verified signature74b2d12 -
checkpoint step 3200
Verified signatureff57784
-
checkpoint step 3000
Verified signature31f3259 -
checkpoint step 2800
Verified signature45a26b2 -
checkpoint step 2600
Verified signature0184327 -
checkpoint step 2400
Verified signaturecbf66f1 -
checkpoint step 2200
Verified signaturee7b1b55 -
checkpoint step 2000
Verified signaturea0eed4a -
checkpoint step 1800
Verified signature14ad12d -
checkpoint step 1600
Verified signature1b79398 -
checkpoint step 1400
Verified signatureda5febb -
checkpoint step 1200
Verified signaturec54d353 -
checkpoint step 1000
Verified signature2cd3d6f -
checkpoint step 800
Verified signature6d2a0b2 -
checkpoint step 600
Verified signaturee33d134 -
checkpoint step 400
Verified signature5a0d833 -
checkpoint step 200
Verified signaturec89ad35 -
Delete .write_probe with huggingface_hub
Verified signature5718e48 -
Upload .write_probe with huggingface_hub
Verified signaturef5252a7 -
initial commit
Verified signatureb5a0338