4 Commits

Author SHA1 Message Date
LordMZTE 03e643f006 fix(flake): create flake.lock, use --set-default for COLI_ENGINE 2026-07-17 14:02:30 +02:00
woolcoxm 528b3cff37 fix(flake): package engine, support modules, and python for Nix builds (#345)
Four bugs in the Nix flake, all addressed:

1. checkPhase failed with "make: python3: No such file or directory"
   because `make test-c` shells out to python3 (c/Makefile: PYTHON ?=
   python3) but python3 wasn't in nativeBuildInputs. Add pkgs.python3.

2. `coli serve` reported "engine is not built" even though glm was
   packaged, because the engine landed in $out/bin while coli looks for
   it beside itself, in libexec/colibri, or via $COLI_ENGINE (c/coli:57-
   66). The wrapper now sets COLI_ENGINE to the bundled engine.

3. `coli serve` failed with ModuleNotFoundError: openai_server because
   the support modules (openai_server.py, resource_plan.py, doctor.py)
   were not installed. Install them and put their dir on PYTHONPATH.

4. Rebuilt the install layout into a self-contained $out/lib/colibri/
   that mirrors the source tree coli expects, with $out/bin/{glm,coli}
   as user-facing entry points (glm symlinked; coli wrapped).

NOTE: flake.lock is intentionally not included — it must be generated
on a Nix host via `nix flake lock` and committed separately, since it
requires narHash values that only the nix tooling can compute.
2026-07-17 07:18:24 -04:00
Jon Bosque c0fe3b79e9 flake.nix: add tokenizers + datasets for the quality bench (#173) 2026-07-14 13:49:41 +02:00
Maikel Frias Mosquea d7ffdc45be Add flake.nix for reproducible NixOS builds (engine + converter python env) (#66)
Adds a Nix flake pinned to nixos-26.05. Builds the glm engine with
gcc+OpenMP (AVX2 portable), wraps the coli Python CLI with pinned deps
(torch, safetensors, huggingface-hub, numpy), and provides a dev shell.
2026-07-12 01:35:56 +02:00