Skip to content

koboldcpp: refactor, 1.119 -> 1.124 - #537338

Merged
SuperSandro2000 merged 8 commits into
NixOS:masterfrom
4evy:flameflag/push-smmmkyvokpst
Nov 13, 2026
Merged

SuperSandro2000 merged 8 commits into
NixOS:masterfrom
4evy:flameflag/push-smmmkyvokpst

Conversation

@4evy

@4evy 4evy commented Jul 1, 2026 •

Copy link
Copy Markdown
Member

Refactored koboldcpp

Mainly, I split it into separate packages for each backend and added some missing dependencies

The default package now builds the CPU version, and there are separate variants for CUDA, ROCm, Vulkan, and Metal.

Tested CUDA and CPU with SmolLM2-135M-Instruct-Q2_K.gguf

Things done

@nixpkgs-ci
nixpkgs-ci Bot requested a review from maxstrid July 1, 2026 09:32
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Jul 1, 2026
@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from 54fd654 to 2df9229 Compare July 19, 2026 13:47
@4evy 4evy changed the title koboldcpp: 1.110 -> 1.116.1; refactor koboldcpp: 1.110 -> 1.117.1; refactor Jul 19, 2026
@4evy 4evy mentioned this pull request Aug 4, 2026
5 of 13 tasks
@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from 2df9229 to 0d18b7f Compare August 14, 2026 12:37
@4evy 4evy changed the title koboldcpp: 1.110 -> 1.117.1; refactor koboldcpp: 1.110 -> 1.1181; refactor Aug 14, 2026
@4evy 4evy changed the title koboldcpp: 1.110 -> 1.1181; refactor koboldcpp: 1.110 -> 1.118.1; refactor Aug 15, 2026
@4evy

This comment has been minimized.

@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from 0d18b7f to 306f3f3 Compare August 19, 2026 11:12
@4evy 4evy changed the title koboldcpp: 1.110 -> 1.118.1; refactor koboldcpp: 1.110 -> 1.119; refactor Aug 19, 2026
@4evy

This comment has been minimized.

@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from 306f3f3 to 297926d Compare August 19, 2026 15:17
@4evy

This comment has been minimized.

@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from 297926d to dedb0ba Compare August 19, 2026 18:47
@4evy

This comment has been minimized.

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 22, 2026
@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from dedb0ba to 7fec204 Compare August 23, 2026 09:42
@4evy 4evy changed the title koboldcpp: 1.110 -> 1.119; refactor koboldcpp: refactor Aug 23, 2026
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (new) This PR adds a new package and removed 8.has: package (update) This PR updates a package to a newer version 2.status: merge conflict This PR has merge conflicts with the target branch labels Aug 23, 2026
@4evy

This comment has been minimized.

@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from 7fec204 to 948c29d Compare August 23, 2026 18:47

@SuperSandro2000 SuperSandro2000 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would appreciate a slightly cleaner history. Some fixups including formatting where done a few commits later which is kinda noisi.

Comment thread pkgs/by-name/ko/koboldcpp/package.nix Resolved
Comment thread pkgs/by-name/ko/koboldcpp/package.nix Resolved
Comment thread pkgs/by-name/ko/koboldcpp/package.nix Resolved
Comment thread pkgs/by-name/ko/koboldcpp/package.nix Resolved
Comment thread pkgs/by-name/ko/koboldcpp/package.nix Resolved
Comment thread pkgs/by-name/ko/koboldcpp/package.nix Resolved
Comment thread pkgs/by-name/ko/koboldcpp/package.nix Resolved
Comment thread pkgs/by-name/ko/koboldcpp/package.nix Resolved
@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from 948c29d to 6a618c3 Compare August 23, 2026 19:32
@4evy

4evy commented Aug 23, 2026

Copy link
Copy Markdown
Member Author

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (b0ab82d)

Command: nixpkgs-review pr 537338
Commit: 6a618c315df32ad5564ea3278e5f41d58603119f (subsequent changes)
Merge: 875b200a9fdebeecbae6389424269e7af2d6ac9b

Logs: https://github.com/4evy/nixpkgs-review-gha/actions/runs/32663639978/attempts/1


x86_64-linux

✅ 4 packages built:
  • koboldcpp
  • koboldcpp-cuda
  • koboldcpp-rocm
  • koboldcpp-vulkan

aarch64-linux

✅ 3 packages built:
  • koboldcpp
  • koboldcpp-cuda
  • koboldcpp-vulkan

x86_64-darwin

✅ No rebuilds


aarch64-darwin (sandbox = relaxed)

✅ 3 packages built:
  • koboldcpp
  • koboldcpp-metal
  • koboldcpp-vulkan

@laczek14

laczek14 commented Aug 24, 2026 •

Copy link
Copy Markdown

i tried the release26.05 koboldcpp package aka. building it into my NixOS system and it seems to not work?
does your build checks fix it?(gemma-4-32B some RP finetune is what i tried to launch)

File "/nix/store/62hlpn50p00r30jzz9n6wbwfk52i5k5b-koboldcpp-1.119/bin/.koboldcpp.unwrapped-wrapped", line 12955, in <module>
    main(launch_args=parser.parse_args(),default_args=parser.parse_args([]))
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/62hlpn50p00r30jzz9n6wbwfk52i5k5b-koboldcpp-1.119/bin/.koboldcpp.unwrapped-wrapped", line 11486, in main
    kcpp_main_process(args,global_memory,using_gui_launcher)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/62hlpn50p00r30jzz9n6wbwfk52i5k5b-koboldcpp-1.119/bin/.koboldcpp.unwrapped-wrapped", line 12134, in kcpp_main_process
    init_library() # Note: if blas does not exist and is enabled, program will crash.
    ~~~~~~~~~~~~^^
  File "/nix/store/62hlpn50p00r30jzz9n6wbwfk52i5k5b-koboldcpp-1.119/bin/.koboldcpp.unwrapped-wrapped", line 979, in init_library
    handle = ctypes.CDLL(os.path.join(dir_path, libname))
  File "/nix/store/xqnbm0vgqcq9b1b54c80qj9s0qhbwa08-python3-3.13.15/lib/python3.13/ctypes/__init__.py", line 361, in __init__
    self._handle = self._load_library(name, mode, handle, winmode)
                   ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/xqnbm0vgqcq9b1b54c80qj9s0qhbwa08-python3-3.13.15/lib/python3.13/ctypes/__init__.py", line 403, in _load_library
    return _dlopen(name, mode)
OSError: /nix/store/62hlpn50p00r30jzz9n6wbwfk52i5k5b-koboldcpp-1.119/bin/koboldcpp_cublas.so: undefined symbol: cuMemRelease

@4evy

4evy commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

@laczek14 This PR is against master, so it won’t fix 26.05 on its own. But yeah, this looks like the same issue the PR fixes. I tested the CUDA build on my NVIDIA machine and the library loads correctly there

@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from 6a618c3 to 01985a4 Compare September 27, 2026 07:25
@4evy

4evy commented Sep 28, 2026

Copy link
Copy Markdown
Member Author

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (05be241)

Command: nixpkgs-review pr 537338
Commit: 01985a4d10e2cd962a450b841d0833f8d565319d (subsequent changes)
Merge: b56aa4f4dd679e8d280f73e90da37f8f46b788bc

Logs: https://github.com/4evy/nixpkgs-review-gha/actions/runs/36410323418/attempts/1


x86_64-linux

✅ 4 packages built:
  • koboldcpp
  • koboldcpp-cuda
  • koboldcpp-vulkan
  • koboldcpp-rocm

aarch64-linux

✅ 3 packages built:
  • koboldcpp-cuda
  • koboldcpp
  • koboldcpp-vulkan

x86_64-darwin

✅ No rebuilds


aarch64-darwin (sandbox = relaxed)

✅ 3 packages built:
  • koboldcpp
  • koboldcpp-metal
  • koboldcpp-vulkan

@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from 01985a4 to e1b0127 Compare October 4, 2026 15:05
@4evy 4evy changed the title koboldcpp: refactor koboldcpp: refactor, 1.119 -> 1.122.1 Oct 4, 2026
@4evy

4evy commented Oct 4, 2026

Copy link
Copy Markdown
Member Author

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (a0a3a8d)

Command: nixpkgs-review pr 537338
Commit: e1b0127126aa75dd9dde65b23c5a2a85f4c7ec56 (subsequent changes)
Merge: 3326c7c11c9d68f1817520114c9f8d666e876729

Logs: https://github.com/4evy/nixpkgs-review-gha/actions/runs/37211914018/attempts/1


x86_64-linux

✅ 4 packages built:
  • koboldcpp
  • koboldcpp-vulkan
  • koboldcpp-cuda
  • koboldcpp-rocm

aarch64-linux

✅ 3 packages built:
  • koboldcpp
  • koboldcpp-cuda
  • koboldcpp-vulkan

aarch64-darwin (sandbox = relaxed)

✅ 3 packages built:
  • koboldcpp
  • koboldcpp-metal
  • koboldcpp-vulkan

@nixpkgs-ci nixpkgs-ci Bot added the 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! label Oct 29, 2026
@4evy
4evy force-pushed the flameflag/push-smmmkyvokpst branch from e1b0127 to c35a372 Compare October 31, 2026 20:40
@4evy 4evy changed the title koboldcpp: refactor, 1.119 -> 1.122.1 koboldcpp: refactor, 1.119 -> 1.124 Oct 31, 2026
@4evy

4evy commented Nov 1, 2026

Copy link
Copy Markdown
Member Author

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (c28ca54)

Command: nixpkgs-review pr 537338
Commit: c35a372aa83b19580f491188efdf6b63cf2a780c (subsequent changes)
Merge: 102fa85964300f5398b64390b585f24f5305a2a5

Logs: https://github.com/4evy/nixpkgs-review-gha/actions/runs/41240180343/attempts/1


x86_64-linux

✅ 4 packages built:
  • koboldcpp
  • koboldcpp-cuda
  • koboldcpp-rocm
  • koboldcpp-vulkan

aarch64-linux

✅ 3 packages built:
  • koboldcpp
  • koboldcpp-vulkan
  • koboldcpp-cuda

aarch64-darwin (sandbox = relaxed)

✅ 3 packages built:
  • koboldcpp
  • koboldcpp-metal
  • koboldcpp-vulkan

@SuperSandro2000
SuperSandro2000 added this pull request to the merge queue Nov 13, 2026
Merged via the queue into NixOS:master with commit f5f836c Nov 13, 2026
28 checks passed
@4evy
4evy deleted the flameflag/push-smmmkyvokpst branch November 13, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants