granite-4.2-3b ยท HTML (GGUF)

GGUF build of wesjos/granite-4.2-3b-HTML โ€” a full-parameter SFT of ibm-granite/granite-4.2-3b (3.66B dense) for structured HTML card generation. The model emits a reasoning block first (closed by </think>), then the normalized HTML card body.

Item Value
Source repo wesjos/granite-4.2-3b-HTML โ€” bf16 safetensors + bundled WebUI
Base model ibm-granite/granite-4.2-3b (Apache-2.0)
Architecture GraniteForCausalLM ยท 40 layers ยท hidden 2560 ยท 40 heads / 8 KV heads ยท vocab 100,352
Context 131,072 native (128K)
Quants Q8_0 (3.63 GiB) ยท Q5_K_M (2.43 GiB) ยท Q4_K_M (2.09 GiB)

๐Ÿ–ผ๏ธ Demo

Copied from the source repo wesjos/granite-4.2-3b-HTML โ€” these shots are the bf16 checkpoint rendered by the bundled WebUI, not re-run on these quants. The collapsed Chain of Thought panel sits above the raw model output, which is rendered as an HTML card, unmodified.

who is the presidency of US now?

WebUI chat demo: the Chain of Thought panel above shows the model reasoning about which president to name, and the answer below renders as an HTML card with a blue callout, a Joe Biden detail card, and a Context Note panel; the status bar shows 7.66s, 61.4 tok/s and 470 tokens

Available model files

File Size
granite-4.2-3b-HTML.Q8_0.gguf 3,892,651,712 B (3.63 GiB)
granite-4.2-3b-HTML.Q5_K_M.gguf 2,613,634,752 B (2.43 GiB)
granite-4.2-3b-HTML.Q4_K_M.gguf 2,244,011,712 B (2.09 GiB)

Usage

llama-cli -hf wesjos/granite-4.2-3b-HTML-GGUF --jinja

The chat template lives in the source repo (chat_template.jinja) and is bundled into the GGUF, so --jinja picks it up automatically:

  • enable_thinking=true โ†’ the prompt is prefixed with an open <think> and the model reasons first.
  • enable_thinking=false โ†’ the template pre-closes an empty think block (<think></think>) and the model answers directly.

To serve it over HTTP:

llama-server -m granite-4.2-3b-HTML.Q8_0.gguf \
  --alias granite-4.2-3b-HTML-GGUF \
  --host 0.0.0.0 --port 18086 -c 65536 -ngl 99

๐Ÿ–ฅ๏ธ Bundled WebUI

The repo ships the same single-file FastAPI chat UI as the source model, in webui/. It splits the <think> stream into a collapsible Chain of Thought panel and renders the answer body as an HTML card on a canvas.

# 1. serve the GGUF
llama-server -m granite-4.2-3b-HTML.Q8_0.gguf \
  --alias granite-4.2-3b-HTML-GGUF \
  --host 0.0.0.0 --port 18086 -c 65536 -ngl 99

# 2. serve the UI
cd webui
pip install -r requirements.txt
./run_webui.sh          # โ†’ http://localhost:8791

webui/config.json already points at http://127.0.0.1:18086 and the local Q8_0 file. It is model-agnostic: point api_url at any OpenAI-compatible /v1 endpoint. See webui/README.md for the full file list and options.


License and attribution

Apache-2.0. This is an unofficial fine-tune of the IBM Granite model family; it is not endorsed by or affiliated with IBM. The base model ibm-granite/granite-4.2-3b is licensed under Apache-2.0.

Downloads last month
1,177
GGUF
Model size
4B params
Architecture
granite
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

8-bit

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

Model tree for wesjos/granite-4.2-3b-HTML-GGUF

Finetuned
(1)
this model

Collections including wesjos/granite-4.2-3b-HTML-GGUF