Geode · Qwen3.5-4B Agentic Coder for phones

A model pack for Geode, an Android app that runs language models entirely on the phone: no cloud, no account. qwen3.5-4b-agentic-coder-v4 is mahiatlinux's full fine-tune of Qwen3.5-4B (through unsloth/Qwen3.5-4B) for writing code and working as an agent with tool calls. It keeps the Qwen3.5 design Geode's other Qwen models have: the hybrid Gated DeltaNet + attention layers, the same vocabulary, the vision encoder (images understood) and the MTP layer for drafting the next token.

Packs

Folder Weights Size Quality (KL vs BF16 / top-1) For
Q4/ every matrix 4-bit (GPTQ, q4i: 16 levels with a zero and a signed 8-bit scale per 16 weights), lm_head 4-bit over the whole vocabulary, embedding 8-bit, MTP layer 4-bit, vision encoder 8-bit 3.5 GB (3.12 GB + 0.36 GB vision) 0.016 / 96.2% 64-bit phones with 6 GB of RAM or more

Quality per kind of held-out answer (KL divergence from the BF16 model / how often the top token is the same):

English Ukrainian German Polish Code Tool calls
0.015 / 96.2% 0.016 / 95.8% 0.014 / 97.1% 0.024 / 95.6% 0.011 / 97.0% 0.028 / 96.0%

Quantization: GPTQ layer by layer (each layer on what the quantized layers before it produce), calibrated on agent conversations with tool calls, the model's own reasoning and text in 30 languages. Quality is measured teacher-forced against the BF16 model on its own written answers (English, Ukrainian, German, Polish, code and tool calls, thinking on and off), only the tokens it wrote counted.

The pack needs Geode 0.10.13 or newer (its geode.v2.json says so: older versions do not list it).

Run modes

Geode runs this model like its other dense Qwen3.5 packs, in any of its run modes (Models → the model → How it runs):

Run mode Prompt Answer
NPU + GPU (the default) NPU GPU
NPU + CPU NPU processor
NPU NPU NPU
GPU GPU GPU
GPU + CPU GPU processor
CPU processor processor

The NPU is Qualcomm's Hexagon (Snapdragon 8 Gen 2 and newer), the GPU an Adreno 7xx or newer; a phone without them runs it on the processor. The MTP layer drafts the next tokens and every draft is checked: the same answer, sooner. Measured speeds: see geode.tifu.xyz/board.

The packs are Geode's own format (geode.v2.json describes the files). They are not GGUF and do not load in other runtimes.

Fewer refusals (optional add-on, off by default)

Q4/refusal/ holds a small optional add-on (121 KB, not part of the base download): refusal.gguf, one direction of 2,560 values for each of layers 13-23 (strength 1.5; llama.cpp control-vector format), and refusal.json, its settings and scores. With the model's Fewer refusals switch on (or "fewer_refusals": true in a request to Geode's local API), the engine removes that layer's direction from the residual stream after each of those layers (h -= s (h . v) v), and the model declines far fewer requests. It acts on the activations, so it needs no other weights. Off, nothing of it is loaded and the model runs exactly as without it.

Made from the fine-tune's BF16 weights (the refusal direction of 320 harmful vs 320 harmless prompts, picked with thinking on and off) and measured against the stock model: KL 0.027, the same top token 94.4% (teacher-forced on the model's own replies, thinking on and off), no measurable change in how soon it ends its thinking. Held-out harmful requests refused without it / with it: English 103/104 -> 2/104 (thinking off), 101/104 -> 5/104 (thinking on); Ukrainian 26/30 -> 1/30 and 28/30 -> 3/30; harmless requests 0/64 -> 1/64.

Removing refusals removes a safety behaviour of the model: you are responsible for what it writes with the switch on.

Use

  1. Install Geode (Google Play: geode.tifu.xyz).
  2. Models → pick Qwen3.5-4B Agentic Coder in Geode's catalog (or Download from Hugging Face → Maximilian228/Geode-Qwen3.5-4B-Agentic-Coder).

Requirements: Android 11+, a 64-bit ARM processor with the dot-product instructions (ARMv8.2), and free storage for the pack.

License and attribution

Apache-2.0, as the model it comes from (see LICENSE):

Changes made here: the BF16 weights quantized (every matrix 4-bit by GPTQ, the embedding and the vision encoder 8-bit, the MTP layer 4-bit by rounding) and laid out in Geode's file format; the tokenizer converted; a draft vocabulary (draft_vocab.bin, the one of Geode's other Qwen3.5 packs) for the MTP layer's drafts; the optional Fewer refusals vector computed from the fine-tune's weights; the weights were not trained further. The model ships its own chat template (unsloth's Qwen3.5 template with fixes for the developer role and tool calls); for the conversations Geode writes (a system message, user and assistant turns, tool calls and results, thinking switched on or off) it gives exactly the tokens of Qwen3.5's template, which Geode uses. Answers come from an AI model and can be wrong.

Downloads last month
62
GGUF
Model size
28.2k params
Architecture
controlvector
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Maximilian228/Geode-Qwen3.5-4B-Agentic-Coder

Finetuned
Qwen/Qwen3.5-4B
Quantized
(719)
this model