IVE-4B GGUF

GGUF conversion of Illuin Technology's IVE-4B, a decision model for document understanding. It takes text or JSON state and optional images, then returns calibrated probabilities over supplied options. The Qwen3.5 backbone has 32 layers. Its 8 full-attention layers see the entire question row, and its Gated DeltaNet layers retain causal recurrence.

Use the included decision runner with a backbone, the shared vision projector for image inputs, and the F32 decision readout. The runner processes the whole row in one batch and scores the last hidden state with the original 255-code readout and calibration temperature of 1.532877.

Files

Start with Q4_K_M for a compact default. Q8_0 has the highest precision of the five backbone variants, Q6_K is the next step down in size, and Q3_K_M and Q2_K target tighter memory limits. All variants use the same F32 readout. The shared Q8_0 projector retains floating-point tensors where required.

File Component Quantization Size Status
IVE-4B-Q4_K_M.gguf backbone Q4_K_M 2,708,804,416 bytes Available
IVE-4B-Q6_K.gguf backbone Q6_K 3,464,055,616 bytes Available
IVE-4B-Q3_K_M.gguf backbone Q3_K_M 2,262,063,936 bytes Available
IVE-4B-Q2_K.gguf backbone Q2_K 1,915,470,656 bytes Available
IVE-4B-Q8_0.gguf backbone Q8_0 4,482,403,136 bytes Available
mmproj-IVE-4B-Q8_0.gguf vision Q8_0 366,894,624 bytes Available
readout-IVE-4B-F32.gguf decision readout F32 2,611,424 bytes Available

Run a decision

From this model directory, build the runner against llama.cpp at the tested commit.

git clone https://github.com/ggml-org/llama.cpp
git -C llama.cpp checkout 360e1349f0009c5ad99d21e3c4546b707addc68a
cmake -S llama.cpp -B llama.cpp/build -DLLAMA_BUILD_TOOLS=ON -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_SERVER=OFF
cmake --build llama.cpp/build --target mtmd -j 6
c++ -O2 -std=c++17 decision_forward.cpp \
  -I llama.cpp/include -I llama.cpp/ggml/include -I llama.cpp/tools/mtmd \
  -L llama.cpp/build/bin -Wl,-rpath,"$PWD/llama.cpp/build/bin" \
  -lmtmd -lllama -lggml-base -o decision-forward
python -m pip install "transformers==5.17.0" torch torchvision pillow numpy ./llama.cpp/gguf-py

Unpack the original tokenizer in the model directory with gzip -dk tokenizer.json.gz.

Save the request as request.json.

{
  "state": "The invoice was paid yesterday.",
  "questions": {
    "paid": {
      "type": "choice",
      "instructions": "Was the invoice paid?",
      "criteria": {"outstanding": "Awaiting payment", "paid": "Paid in full"}
    }
  }
}
python decision_gguf.py --model IVE-4B-Q4_K_M.gguf \
  --readout readout-IVE-4B-F32.gguf --request request.json

For image requests, add an images list of local paths to the JSON and pass --mmproj mmproj-IVE-4B-Q8_0.gguf. The runner defaults to a 2,048-token row limit. Increase --max-tokens when needed and allow memory for a whole-row prefill.

Conversion and validation

Each backbone quantization is produced independently from a BF16 GGUF. The package includes the original tokenizer, chat template, image processor configuration, and decision settings. The decision readout is stored as F32 with the original tensor values.

Every listed backbone loaded and returned decision scores for two text cases and three image cases, including a two-image question. Top-choice agreement with the pinned source was Q4_K_M 5/5, Q6_K 5/5, Q3_K_M 5/5, Q2_K 5/5, Q8_0 5/5. The Q8_0 projector had minimum cosine similarity 0.9813 and maximum relative L2 error 0.193 across the test inputs. These are smoke tests for the software and format. They do not measure benchmark accuracy.

License

Apache-2.0. See LICENSE and NOTICE for the upstream terms and attribution. The included source_protocol.py preserves Illuin Technology's original implementation of decision formatting and answer handling.

Downloads last month
-
GGUF
Model size
4B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

6-bit

8-bit

32-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Hansda/IVE-4B-GGUF

Finetuned
Qwen/Qwen3.5-4B
Finetuned
illuin/IVE-4B
Quantized
(1)
this model