Team-ACE/ToolACE
Viewer • Updated • 11.3k • 20.8k • 212
How to use davidoneil/agent-sft-minicpm5-2b-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, "davidoneil/agent-sft-minicpm5-2b-lora")PEFT adapter for agentic tool-use / function-calling specialization.
openbmb/MiniCPM5-2B0.21.2.dev0 (pinned commit in training repo)r=16, alpha=32, dropout=0.05, seed 42agent_sft_v1)
Unified mix of 61183 deduplicated examples (seed 42):
| Source | Examples | License |
|---|---|---|
| UltraData-SFT-Agent-2609 Tool-Use | 25000 | Apache-2.0 |
| APIGen-MT-5k | 5000 | CC-BY-NC-4.0 |
| ToolACE | 11297 | Apache-2.0 |
| xlam-function-calling-60k (capped) | 19886 | CC-BY-4.0 |
Multi-turn dialogues: 29343. Examples with tool signal: 50720.
License note: This adapter is released under CC-BY-NC-4.0 because the mix includes Salesforce CC-BY-NC data.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = "openbmb/MiniCPM5-2B"
adapter = "<this-repo>" # or local path
tok = AutoTokenizer.from_pretrained(adapter, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(base, trust_remote_code=True)
model = PeftModel.from_pretrained(model, adapter)
Research / non-commercial experiments on SLM agent specialization (tool calling, multi-turn trajectories). Evaluation is out of scope for this release; no benchmark scores are claimed here.
0.21.2.dev05.22.00.21.22.13.0+cu130Please cite the base model and the datasets listed above if you use this adapter.
Base model
openbmb/MiniCPM5-2B