Skip to main content
AI & Technical Systems·Structured tool calls on Apple Silicon

WeightForge 4B

I adapted Qwen3.5-4B to make structured tool calls more reliably, then tested whether the improvement carried over to stateful workflows. The published checkpoint gained 94 correct calls on the static benchmark and lost one completed workflow on a separate holdout.

My role

Model adaptation, evaluation and release

Status

Public experimental checkpoint · MLX INT4

Capabilities

Tool calling · Model adaptation · Paired evaluation

The problem

A local model can select the right tool and still pass arguments the application cannot parse. Incorrect call sequencing can also break a workflow even when every individual call is well formed.

What I worked on

I trained a supervised rank-8 LoRA on existing Qwen3.5-4B weights, merged the selected step-12 adapter into the BF16 parent, and exported the merged checkpoint to group-64 affine INT4 for MLX. I compared it with a same-source INT4 parent using the same native tool parser and decoding settings.

Evaluation results

BFCL V4 static Python tool calls

Both INT4 checkpoints used greedy decoding, the same Qwen native parser and the pinned upstream BFCL Python AST checker. The checker graded tool names and arguments without executing the calls.

Matched parent → WeightForge
699 → 793 of 1,000
101 gains and seven losses on the same cases.
Simple Python
343 → 362 of 400
Multiple Python
185 → 187 of 200
Parallel Python
84 → 124 of 200
Parallel Multiple Python
87 → 120 of 200

These four categories cover static Python calls. Full BFCL coverage and multistep recovery are outside this measurement.

Static BFCL Python accuracy rises from 69.9% with the matched parent to 79.3% with WeightForge. A separate panel shows HumanEval+ code scores.
The BFCL panel shows the paired static tool-call result. The HumanEval+ panel reports a separate code benchmark. Zayyan Latif · CC BY 4.0

Held-out workflows and a separate retail simulation

An independent 16-workflow test graded completed stateful tasks. In a separate fictional retail pilot, a dispatcher blocked the candidate's attempt to write a shipping-address change before consent.

Held-out completions · parent → WeightForge
15 → 14 of 16
The new failure emitted multiple calls in a round that required exactly one.

The checkpoint missed its independent workflow improvement gate. The blocked write illustrates the dispatcher control in simulation.

Decisions and tradeoffs

Compare against the same source and precision

Keeping the INT4 format and tool parser fixed isolates the observed effect of the adaptation within this comparison.

Leave execution with the application

The dispatcher validates arguments, sequencing and permissions before executing a proposed call.

Current status

The published weights are an experimental, text-only research checkpoint for local inference. The evidence covers static calls and the reported simulations.