CoolFace
Modelpublic

thewulf7/dharma-core-qwen2.5-7b-4bit

sourceHugging Faceapache-2.0updated 19d agoView on Hugging Face
0likes
Model Card

drift-mcp-core — Qwen2.5-7B-Instruct-4bit

Schema-free tool calling via LoRA. This adapter enables a Qwen2.5-7B-Instruct-4bit base model to call tools correctly without needing tool schemas in the prompt at inference time.

Part of the drift-engine project.

Eval Results (tools-v3)

ConditionTool SelectionF1No-Call Accuracy
Base model + schemas (baseline)99%90.9%100%
Adapter, no schemas100%91.7%100%
Base model, no schemas~11%~20%—

The adapter matches or exceeds the baseline with zero schema tokens at inference.

Tools Covered

web_search, read_file, write_file, list_directory, terminal, fetch

Framework

This adapter is in MLX format (native Apple Silicon). It is NOT compatible with HuggingFace PEFT/transformers directly — use it with mlx-lm or drift serve.

bash
# Install drift
pip install drift-engine

# Serve
drift catalog pull drift-mcp-core --model qwen2.5-7b-4bit
drift serve adapters/drift-mcp-core-qwen2.5-7b-4bit --base-model qwen2.5-7b-4bit

Training Details

  • —Base model: mlx-community/Qwen2.5-7B-Instruct-4bit
  • —Framework: mlx-lm LoRA
  • —Dataset: 2,315 examples (2,083 train / 232 val)
  • —1,855 tool-call positives + 460 clean negatives (19.8%)
  • —LoRA rank: 8, alpha: 16, dropout: 0.05
  • —Epochs: 3 (6,249 iters), batch size: 1, grad accum: 4
  • —Learning rate: 1e-4
  • —Val loss: 0.316

Key Finding

Negative example quality matters more than quantity. 33% ambiguous negatives → 0% no-call accuracy. 19.8% clean (unambiguous factual) negatives → 100% no-call accuracy.

Version

drift-mcp-core@1.0.0+qwen2.5-7b-instruct-4bit