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

pmrccs
/
minicpm5-2b-python-tool-calling-v3-lora

Text Generation
PEFT
Safetensors
Transformers
English
tool-use
function-calling
lora
minicpm
bfcl
python
sft
trl
unsloth
conversational
Model card Files Files and versions
xet
Community

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
minicpm5-2b-python-tool-calling-v3-lora
Ctrl+K
Ctrl+K
  • 1 contributor
History: 37 commits
pmrccs's picture
pmrccs
Update README.md
52d53a9 verified 16 days ago
  • last-checkpoint
    checkpoint step 3652 about 1 month ago
  • logs
    Upload logs/shard_proof.json with huggingface_hub about 1 month ago
  • .gitattributes
    1.58 kB
    Upload training_metrics_summary.png 16 days ago
  • README.md
    13.5 kB
    Update README.md 16 days ago
  • adapter_config.json
    1.31 kB
    adapter_config.json (complete) about 1 month ago
  • adapter_model.safetensors
    101 MB
    xet
    adapter_model.safetensors (complete) about 1 month ago
  • chat_template.jinja
    5.44 kB
    chat_template.jinja (complete) about 1 month ago
  • tokenizer.json
    9.89 MB
    tokenizer.json (complete) about 1 month ago
  • tokenizer_config.json
    94.4 kB
    tokenizer_config.json (complete) about 1 month ago
  • training_metrics_summary.png
    374 kB
    xet
    Upload training_metrics_summary.png 16 days ago