Skip to content
anthony-chaudharyPublic

Latest commit

 

History

26,273 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

fak logo

fak

fak is a local coding runtime. Run a model on your own computer and keep your prompts local. Connect your coding agent through fak’s gateway to enforce a structural safety floor by default (default_open), or pass an opt-in read-only / fail_closed policy manifest to allow reads while blocking writes.

TL;DR: Install fak, run fak up to start a local coding model with an interactive you> prompt, or route your agent through fak with a read-only (fail_closed) policy to allow reads while blocking writes.

Try fak

Install fak for your platform, then open a terminal.

On macOS, Linux, and Windows, fak up probes system memory and picks a fitting model tier. It auto-selects the available accelerator (Metal on Apple Silicon, CUDA or Vulkan on Linux and Windows, or CPU) and serves an OpenAI-compatible API on 127.0.0.1:8080.

fak up   # -> opens a local chat prompt

When the model is ready, it opens an interactive you> prompt.

To try a small model with a single command instead, run SmolLM2 in-kernel. The first run downloads it:

fak run smollm2 "What input breaks def first(xs): return xs[0]? Write a test that catches it."

Look for a test that passes an empty list and checks for IndexError.

On an M3 or later Mac with 24 GB of memory or more and macOS 26.4 or later, fak v0.62.0 can also run Inkling-2-Mini on the GPU by name:

go install github.com/anthony-chaudhary/fak/cmd/fak@v0.62.0
fak run inkling2-mini

Or build from a clone of main: git clone --depth 1 https://github.com/anthony-chaudhary/fak.git, then go build -o fak ./cmd/fak (needs Go 1.26+).

The first run downloads about 14.6 GB. On an Apple Silicon Mac with 24 GB or more, fak run with no model picks Inkling-2-Mini as well. The release installer downloads the prebuilt Metal archive on Apple Silicon. Smaller Macs and other platforms get smaller model tiers instead. The Mac guide has the requirements and the server commands.

Inkling-2-Mini uses concurrent prefill by default when the CUDA backend supports native NVFP4 W4A4 and f16 sequence and cohort operations. That Inkling-2 CUDA prefill path overrides admission to a 25 ms batch gap and 75 ms batch wait. Generic cohortbatch defaults are 4 ms and 25 ms.

f16 uses half the KV bytes of fp32. The server sizes context and checks fit against available device memory, so capacity and throughput vary by device and workload. The collection window can add latency to an isolated request. Use the path to your GGUF file.

fak serve --engine inkernel --backend cuda \
  --gguf <Inkling-2-Mini-UD-Q3_K_XL.gguf> \
  --addr 127.0.0.1:8080

For 128k all-resident context on a 16 GB Blackwell (sm_120) GPU, opt into NVFP4 (or fp8) global KV cache:

FAK_INKLING2_CTX=131072 FAK_INKLING2_KV=nvfp4 \
  fak serve --engine inkernel --backend cuda \
  --gguf <Inkling-2-Mini-UD-Q3_K_XL.gguf> \
  --addr 127.0.0.1:8080

Set FAK_INKLING2_SERVE_BATCH=0 to disable batching. To reproduce the fixed 640-token benchmark context and its settings, use the benchmark environment example.

Benchmarks

fak benchmark sweep: Inkling-2-Mini on Blackwell and AMD Vulkan gap, sorted from largest leads to where fak trails

On one RTX 5080 16 GB, fak’s own CUDA engine decodes Inkling-2-Mini at 122.34 tok/s in-process (kv=f16, auto context 29,184). Over HTTP at 16K context (C4_p2048_d256), fak reaches 2,017.61 ms median time to first token (TTFT) and 130.44 tok/s aggregate E2E output tok/s. That leads the realugbun/llama.cpp fork (3,718.34 ms / 122.47 tok/s) and stock llama.cpp (4,683.83 ms / 115.69 tok/s).

Single-stream served decode trails realugbun on post-first rate (115.16 vs 119.50 tok/s at C1_p512_d128). On the same cell, fak leads on TTFT (132.93 vs 203.79 ms) and aggregate E2E (103.58 vs 101.06 tok/s).

Prefill uses 4-bit expert weights and activations (NVFP4 W4A4, default on an sm_120f build from main) and reads a 512-token prompt at 5,861 tok/s against 3,012 for the fork. At 512K context on an RTX PRO 6000 (sm_120), fak decodes FP8 KV at 59.28 tok/s (1.23× vs realugbun 48.26, 1.72× vs stock 34.39).

Published RTX 5080 caveats: 16K f16 KV hits an HTTP 500 cache limit above 19,456 positions (>16K coding runs require fp8 KV auto-selection). A 14-task 32K fp8 eval scored pass@1 = 4/14 (14/14 hit the 30m tool-time deadline). Speculative decode stays opt-in/off by default on f16 KV (f32 spec oracle reaches 294–326 tok/s). The benchmark index links the 512K Blackwell results, RTX 5080 results, and the other comparisons.

Separately from end-to-end serving throughput, a 1-output-token prefill microbenchmark (max_tokens=1, leaving visible TTFT unmeasured) on one RTX 5080 measured aggregate prefill for uncached 512-token prompts. Tested with the fixed benchmark profile, fak led the realugbun llama.cpp fork (the faster of the two OSS builds tested) in both halves of the ABBA run.

Aggregate prompt throughput for fak and the realugbun fork at 2, 4, and 8 concurrent requests on an RTX 5080. The table below gives the measured rates.

Concurrent requests fak prompt tok/s Fork prompt tok/s Smaller half-run speedup
2 6,037.586 3,337.363 1.802×
4 6,038.160 3,537.808 1.675×
8 6,033.886 3,648.577 1.633×

The rates are pooled medians. The one-token fixture yielded no visible first token, so this run measured prompt throughput and left visible latency unmeasured.

On Blackwell consumer GPUs (sm_120), fak ships native NVFP4 (E2M1 with block-16 E4M3 scales) and FP8 global attention scratchpads (KV cache) in one zero-Python Go+CUDA binary. Datacenter Python stacks such as SGLang/FlashInfer and vLLM already ship FP4 KV. Local consumer runtimes like llama.cpp (#26989) and Ollama still use integer q4_0/iq4_nl KV.

Measured on one 16 GB RTX 5080 (Inkling-2-Mini 26B hybrid MoE · UD-Q3_K_XL · ctx=131,072 · 121k uncached tokens · opt-in FAK_INKLING2_KV=nvfp4):

  • All 24/24 expert layers stay resident in 16 GB VRAM (0 GiB CPU/PCIe spill vs 12/24 layers spilled on FP16).
  • 128k prefill rises 4.21× (283 to 1,190 tok/s) and end-to-end wall time drops 4.10× (451s to 110s).
  • Decode rises +21.7% (13.9 to 16.9 tok/s) with exact 128k needle retrieval and 4/4 llama.cpp greedy match.
  • Both nvfp4 and fp8 KV stay opt-in while stricter needle-retrieval KL gating is in progress.

Reference and guides

For the commands and their main flags, see the CLI reference.

For build requirements, platform verification and other model sizes, see the local model setup guide.

For the version history, see CHANGELOG.md.

Connect your coding agent · Hardware benchmarks · Reproduce locally · How fak compares with llama.cpp · Documentation

Apache-2.0 license