Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

nix: use with pkgs in some package lists

Attila Oláha6d0a6c4a7e0
diff --git a/flake.nix b/flake.nix
index a63839a3..96d0625c 100644
--- a/flake.nix
+++ b/flake.nix
@@ -35,11 +35,11 @@
# python3 is needed by checkPhase: `make test-c` shells out to
# `python3 tools/run_tests.py` (see c/Makefile, PYTHON ?= python3).
- nativeBuildInputs = [pkgs.makeWrapper pkgs.python3];
+ nativeBuildInputs = with pkgs; [makeWrapper python3];
- buildInputs = [
- pkgs.gcc
- pkgs.gmp
+ buildInputs = with pkgs; [
+ gcc
+ gmp
];
# Use x86-64-v3 (AVX2) for a portable binary; override with ARCH=native for local builds
@@ -119,12 +119,12 @@
devShells.default = pkgs.mkShell {
inputsFrom = [colibri];
- packages = [
+ packages = with pkgs; [
pythonEnv
- pkgs.gcc
- pkgs.gnumake
- pkgs.clang-tools # clangd / clang-tidy for IDE support
- pkgs.pkg-config
+ gcc
+ gnumake
+ clang-tools # clangd / clang-tidy for IDE support
+ pkg-config
];
shellHook = ''