Downloads · 30 days
0
Igriscodes/qwen3-1.7b-tool
qwen3-1.7b-tool is a text generation model from Igriscodes. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mpl-2.0.
This model is a fine-tuned version of Qwen/Qwen3-1.7B, optimized for complex functional calling and multi-step tool use via the Model Context Protocol (MCP).
Downloads · 30 days
0
Access
Public
Updated May 19, 2026
Parameters
1.7B
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Qwen/Qwen3-1.7B, optimized for complex functional calling and multi-step tool use via the Model Context Protocol (MCP).
The model was aligned using Proximal Policy Optimization (PPO) in a closed-loop agentic environment. It leverages execution-based feedback from an MCP server to drastically reduce tool hallucinations, adhere to strict JSON formatting, and self-correct based on execution error states.
Qwen/Qwen3-1.7Btrl & peft (LoRA)The model was trained as the Policy (Actor) within a custom gymnasium environment (MCPGymEnv). The environment tracks an execution loop between the model's textual outputs and a backend mock MCP server.
The PPO agent was optimized against a dense, feedback-driven execution reward model:
| Trigger Status | Reward | Evaluation Logic |
|---|---|---|
| Success | +10.0 | Tool executed cleanly; returned data matches the expected task state. |
| Tool Execution | 0.0 | Tool ran successfully, but the overarching objective is incomplete. |
| Tool Error | -0.5 | Target tool was hit, but threw a runtime exception (e.g., bad arguments). |
| Invalid JSON | -0.8 | Failed to output a syntactically valid JSON tool-call schema. |
| Structural Fail | -1.0 | Severe divergence from agentic system instructions or tool hallucination. |
bitsandbytes (for base model loading).q_proj, v_proj, k_proj, o_proj, etc.).We express our gratitude to the following organizations, communities, and tools that made this project possible:
Mozilla Public License Version 2.0 - Feel free to use and modify