Instructions to use muradil211/ToolWeave_stage1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use muradil211/ToolWeave_stage1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="muradil211/ToolWeave_stage1")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("muradil211/ToolWeave_stage1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use muradil211/ToolWeave_stage1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "muradil211/ToolWeave_stage1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "muradil211/ToolWeave_stage1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/muradil211/ToolWeave_stage1
- SGLang
How to use muradil211/ToolWeave_stage1 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 "muradil211/ToolWeave_stage1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "muradil211/ToolWeave_stage1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "muradil211/ToolWeave_stage1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "muradil211/ToolWeave_stage1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use muradil211/ToolWeave_stage1 with Docker Model Runner:
docker model run hf.co/muradil211/ToolWeave_stage1
ToolWeave · Stage 1
🛠️ Tool-Use Cold Start
Stable formatting and executable interaction for multi-turn tool-calling agents.
🧱 Curriculum role: establish reliable tool-call formatting and environment interaction before progress-reward learning.
🧭 At a glance
| Field | Details |
|---|---|
| 🧠 Base family | Qwen3-4B-Instruct |
| 🪜 Curriculum stage | Stage 1 — Tool-Use Cold Start |
| 📍 Checkpoint | Selected Stage 1 update 25 |
| 🎛️ Training signal | Format and executable tool-use feedback |
| ✅ Release status | Selected checkpoint; not the final ToolWeave model |
ToolWeave Stage 1 is trained to improve parser-compatible tool-call formatting, executable interaction, and stable multi-turn tool-use behavior in the BFCL environment.
📊 Evaluation (eval_400)
This is an internal ToolWeave validation on val_400_combined: 400 examples, with 100 examples each from Base, Long Context, Missing Function, and Missing Parameter. Validation used deterministic decoding (n=1, do_sample=false). The validation split is not included in this model repository, and these results are not official BFCL leaderboard results.
For Stage 1, score is the format-gate score reported by the project evaluation; progress is the mean interaction progress.
| Split | Samples | Score | Format reward | Tool-call reward | Tool-call rate | Progress |
|---|---|---|---|---|---|---|
| Overall | 400 | 1.7007 | 0.8354 | 0.8718 | 0.8875 | 0.3983 |
| Base | 100 | 1.7601 | 0.8633 | 0.9047 | 0.9200 | 0.4368 |
| Long Context | 100 | 1.7292 | 0.8511 | 0.8798 | 0.9000 | 0.4177 |
| Missing Function | 100 | 1.7584 | 0.8627 | 0.9057 | 0.9200 | 0.3889 |
| Missing Parameter | 100 | 1.5550 | 0.7646 | 0.7972 | 0.8100 | 0.3499 |
🚀 Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "muradil211/ToolWeave_stage1"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
Tool-use inference requires the model's function schemas and the Qwen3-compatible tool-call format.