Index of /lm/inkling

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[TXT]rocm_vs_vulkan.txt2026-11-29 23:32 14K 
[TXT]launch_inkling_dual.sh2026-11-29 23:28 2.0K 
[TXT]launch_inkling.sh2026-11-29 23:28 1.2K 
[TXT]eaman_llama_115deee8e.patch2026-11-29 23:28 146K 
[   ]eaman_inkling.tgz2026-11-29 23:28 38M 
[TXT]README-inkling-dist.md2026-11-29 23:29 5.2K 

llama.cpp — inkling branch (Inkling-2-Mini on dual ROCm)

Source tree of the local inkling branch at commit e16722c55 ("model: split looped layers by physical weight-holding layers"). This is the tree used for build 3535. No binaries are included — build your own from this source.

The purpose of this branch: run the Inkling-2-Mini looped model with a DSpark draft, on one or two ROCm GPUs, with long context and on-device prompt checkpoints.

What makes this branch different

1. Physical-layer split (the main change, e16722c55)

The Inkling-2-loop model exposes 48 logical layer slots, but only 24 weight-holding physical layers (plus the output layer = 25 real units of weights). The layer split now counts the physical layers, and alias slots 24..47 follow the device of the physical layer they reuse. This is what makes --split-mode layer --tensor-split work with dual GPUs on the looped model:

Without this split the layer split counted the 48 logical slots, so the split point landed in the middle of a loop pass and the dual-GPU layout could not be expressed.

2. DSpark checkpoint device-buffer fixes (51cb9044f, a89b2587d)

Two local fixes in llama_io_write_device::finish() (src/llama-context.cpp) for on-device prompt-checkpoint saves (used with --ctx-checkpoints):

These are still required: upstream chooses re-pack vs fresh-alloc from the raw tensor-size sum alone and lacks the padding-aware check.

3. Base: the eaman branch

The branch sits on top of the local eaman branch (1fdae6cb7), which itself is upstream 115deee8e plus the cumulative Eaman patch (ROCm fit/pipeline improvements, speculative features, HIP VEC control, ...). For Inkling runs only the fit-related parts matter (e.g. --fit-target, and the ROCm fit headroom that long-context ROCm runs rely on); the rest is carried along. Eaman patch details are documented separately and are out of scope here.

Build

Reference toolchain: GNU 16.2.0, ROCm 10.0, gfx1030;gfx1031 targets:

cmake -B build -DGGML_HIP=ON -DGGML_VULKAN=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j

llama-server, libllama.so, libggml-hip.so and libggml-vulkan.so land in build/bin. Set LD_LIBRARY_PATH to that directory (the launchers below point at a prebuilt bin_vulkan; repoint them at your build/bin).

Launchers

Two reference launchers are included:

Notes:

Provenance