Repository navigation
Nix flake - #40
Nix flake#40
Conversation
|
Can you add the A single line
|
|
Do you plan to add support for the C++ part? BTW, I ended up using this trivial { pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-22.11.tar.gz") {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
gnumake
clang
black
python
python310Packages.torch-bin
python310Packages.numpy
python310Packages.sentencepiece
];
}Differences so far are, GNU Make, clang, and |
No need to include these, the C/C++ compiler and make (and even CMake I think) are already included automatically by Nix's Edit: CMake is not pre-included in |
|
@Dietr1ch I have added |
Xe
left a comment
There was a problem hiding this comment.
NixOS expert here: I have tested this locally and it works perfectly.
I don't see flake-compat being used anywhere, why is it imported? |
flake-compat has to be referenced by the flake to be included in the lockfile, which |
ggerganov
left a comment
There was a problem hiding this comment.
Is it possible to move these files in a subfolder?
I want root to be clean as possible
I don't think that is possible, Nix expects |
|
Yeah, let's drop shell/default.nix. I think we can also drop direnv - it's not necessary for running llama as nix flake. |
Done, and I added |
|
Rebased to the latest master commit, now the build fails in Nix: Interestingly, this does not happen when building in my normal macOS environment without Nix. |
My guess is because The fix would be to override the stdenv for macos to use Clang 14.x. |
I tried that, it doesn't change anything. The problem appears to be the macOS SDK, not the compiler. Unfortunately, nixpkgs does not include any SDK newer than macOS 12. I suspect that Edit: it's defined in Edit 2: the function is defined in both Nix's standard Clang 11 Edit 3: Thanks to this reddit thread, I have found that |
Co-authored-by: Pavol Rusnak <[email protected]>
|
The flake package is now built with CMake instead of Make and passes Also, the flake package is now using the same binary names as in CMakeLists ( |
|
So I am thinking this kind of deploys (together with docker #132) should probably live in a separate repo(s). The alternative is to create for example For now I think we will merge this to make it easily available during the initial interest, but later we should probably do this. |
|
As a person interested in a For now, having a flake.nix so that we can do |
|
@prusnak Merge if you approve |
…r-fix Windows console ANSI color issue fixed
Fix for hanging on model load on Windows
* Nix flake * Nix: only add Accelerate framework on macOS * Nix: development shel, direnv and compatibility * Nix: use python packages supplied by withPackages * Nix: remove channel compatibility * Nix: fix ARM neon dotproduct on macOS --------- Co-authored-by: Pavol Rusnak <[email protected]>
* Adding bf16 support to CUDA - matrix multipications * Adding bf16 support to CUDA - cleanup * Adapt to latest master --------- Co-authored-by: Iwan Kawrakow <[email protected]>
* Nix flake * Nix: only add Accelerate framework on macOS * Nix: development shel, direnv and compatibility * Nix: use python packages supplied by withPackages * Nix: remove channel compatibility * Nix: fix ARM neon dotproduct on macOS --------- Co-authored-by: Pavol Rusnak <[email protected]>
…ion-graph perf: build TTS condition embeddings with ggml graph
…ion-graph perf: build TTS condition embeddings with ggml graph
…nifest (#40) Emits ONLY the non-expert (resident) tensors, skipping *_exps.*, so a device-fit override for LLAMA_RESIDENT_OVERRIDE is the ~25GB resident, not a 684GB full clone (experts are served from the container/primary; the loader takes only non-_exps. from the override anyway). Also writes a sidecar '<out>.resident.json' PagerPlan-style manifest {"resident_only":1,"tier_label":"<type>","resident_bytes":<N>} so the governor can compare precision tiers and co-optimize the VRAM DIVISION (resident precision vs expert-cache size) WITHOUT loading each GGUF — the seam M5's serving_daemon #2 policy consumes. llama.h: +resident_only param. quantize.cpp: --resident-only flag + help. llama-quant.cpp: skip _exps. at collection; emit the manifest. CPU llama-quantize build: clean. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
…xport/Tools - ggml-org#36 Default: → По умолчанию: (SettingsChatFields.svelte) - ggml-org#37 Custom JSON/CSS → Пользовательский (settings.constants.ts) - ggml-org#38 Samplers → Сэмплеры (settings.constants.ts) - ggml-org#39 Import/Export кнопки (SettingsChatImportExportTab.svelte) - ggml-org#40 Tools: Tool/Enabled/Always allow + No tools (SettingsChatToolsTab.svelte) - Удалён устаревший settings-header.patch (дублировал ggml-org#23/ggml-org#39) - ru.json: 233 → 241 фраз Проверено в браузере: все 7 вкладок Settings русифицированы.
…Settings Патчи: - ggml-org#36 Default: → По умолчанию: (SettingsChatFields) - ggml-org#37 Custom JSON/CSS → Пользовательский (settings.constants) - ggml-org#38 Samplers → Сэмплеры (settings.constants) - ggml-org#39 Import/Export кнопки (5 шт) - ggml-org#40 Tools: Tool/Enabled/Always allow + No tools - ggml-org#41 Плюрализация N tools → N инструментов - ggml-org#42 10 label тулов (Current time, Runtime info и др.) Обновления: - ru.json: 233 → 246 фраз - PROJECT.ru.md: 42 патча, все вкладки Settings ✅ - Удалён устаревший settings-header.patch Проверено в браузере: все 7 вкладок Settings русифицированы.
…p4-mmq cuda: Q4_0_ROCMFP4 + Q4_0_ROCMFP4_FAST support and MMQ tiles on HIP (gfx1151)
…-29 halo sync Keep ROCmFP4 FAST and MXFP4/NVFP4 W4A4 MMQ declarations. Keep explicit rollback registrations, including Qwen4exp, without duplicate directory runs. Combine the status/all-model harness with scaled-weight seq_cp/graph-reuse coverage. Assisted-by: Codex
This pull request adds a simple Nix Flake for building and distributing the binaries of this repository in a combined package.
The
mainbinary can be executed like this (assumingexperimental-features = nix-command flakes), for example:When merged into the main branch of this repository,
nix shell github:ggerganov/llama.cppwould be used instead.The binary names in the Nix package are:
main=>llamaquantize=>quantizeconvert-pth-to-ggml.py=>convert-pth-to-ggmlNote that
convert-pth-to-ggmldirectly executes in a Python 3.10 environment with the required Python packages.