Apocrypha

ik_llama-cpp

llama.cpp fork with additional SOTA quants and improved performance

ik_llama.cpp is a fork of llama.cpp by Iwan Kawrakow, the author of most of the k-quants, carrying additional state-of-the-art quantization types (the IQK families) and CPU matrix-multiplication kernels that are substantially faster than upstream for quantized inference. It builds the same llama-cli, llama-server, llama-quantize and llama-bench programs as sci-ml/llama-cpp. To let both be installed at once, every binary is installed with an ik_ prefix (ik_llama-cli, ik_llama-server, and so on) and the shared libraries live in a private subdirectory of libdir, so nothing collides with sci-ml/llama-cpp. No headers or pkg-config files are installed: this package is an application, not a development target. Link against sci-ml/llama-cpp instead. Upstream publishes no release tags, so the package is pinned to a dated commit snapshot fetched as a commit archive. The CPU backend is tuned through CPU_FLAGS_X86. This matters more here than for sci-ml/llama-cpp, because the fork's quantization kernels are written for AVX2 and AVX-512; without those flags the generic fallback gives up most of the fork's advantage. Keywording is deliberately restricted to ~amd64. The SOTA quants are hand-tuned for AVX2/AVX-512, the ARM paths are far less exercised upstream, and no arm64 build of this snapshot has been verified. Note that this ebuild is adapted from the guru overlay (sci-misc/ik_llama-cpp).

Available in

OverlayNewestEbuildsLast activity
bentoo GitHub ↗ 0_pre20260727 1 22 h details ›
zGentoo repo ↗ 0.0.4582 2 6 d details ›

Versions & arches

VersionOverlay amd64 Committed
0.0.4582 zGentoo amd64 testing 24 d view · download
0.0.4551 zGentoo amd64 testing 24 d view · download
0_pre20260727 bentoo amd64 testing 31 h view · download · history ↗

Use flags of 0.0.4582

  • curl Add support for client-side URL transfer library
  • openblas
  • +openmp Build support for the OpenMP (support parallel computing), requires >=sys-devel/gcc-4.2 built with USE="openmp"
  • blis
  • rocm
  • cuda Enable NVIDIA CUDA support (computation on GPU)
  • vulkan Add support for 3D graphics and computing via the Vulkan cross-platform API
  • flexiblas
  • wmma
9 expansion flags (python targets, ABIs, cpu flags…)
  • cpu_flags_x86_avx
  • cpu_flags_x86_avx2
  • cpu_flags_x86_fma3
  • cpu_flags_x86_f16c
  • cpu_flags_x86_bmi2
  • cpu_flags_x86_avx512f
  • cpu_flags_x86_avx512vbmi
  • cpu_flags_x86_avx512_vnni
  • cpu_flags_x86_avx512_bf16