Instructions to use Hansda/IVE-4B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Hansda/IVE-4B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Hansda/IVE-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Hansda/IVE-4B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Hansda/IVE-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Hansda/IVE-4B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Hansda/IVE-4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Hansda/IVE-4B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Hansda/IVE-4B-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use Hansda/IVE-4B-GGUF with Ollama:
ollama run hf.co/Hansda/IVE-4B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Hansda/IVE-4B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Hansda/IVE-4B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Hansda/IVE-4B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Hansda/IVE-4B-GGUF with Docker Model Runner:
docker model run hf.co/Hansda/IVE-4B-GGUF:Q4_K_M
- Lemonade
How to use Hansda/IVE-4B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Hansda/IVE-4B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.IVE-4B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Hansda/IVE-4B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Hansda/IVE-4B-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default Hansda/IVE-4B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Hansda/IVE-4B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Hansda/IVE-4B-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "Hansda/IVE-4B-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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
- -
2-bit
3-bit
4-bit
6-bit
8-bit
32-bit