Nix flake for several AI projects focusing on nvidia/CUDA.
- tensor_parallel 2.0.0
- lycoris-lora 2.0.2
- rouge 1.0.1
nix run github:BatteredBunny/nix-ai-stuff#rouge
Optional but recommended is to use the cachix cache to not build the packages yourself.
cachix use nix-ai-stuff# flake.nix
inputs = {
nix-ai-stuff.url = "github:BatteredBunny/nix-ai-stuff";
};# configuration.nix
nixpkgs = {
overlays = [
inputs.nix-ai-stuff.overlays.default
];
config = {
allowUnfree = true;
};
};
environment.systemPackages = with pkgs; [
pkgsCuda.tabbyapi # Api for exllama
];imports = [
inputs.nix-ai-stuff.nixosModules.tabbyapi
];
services.tabbyapi = {
enable = true;
package = pkgs.pkgsCuda.tabbyapi;
settings = {
model = {
model_name = "qwen-8b";
model_dir = pkgs.tabbyapiModelDir {
qwen-8b = pkgs.fetchgit {
url = "https://huggingface.co/turboderp/Qwen3-VL-8B-Instruct-exl3";
rev = "652ab6be95b3e2880e78d87269013d98ca9c392d"; # 4bpw
fetchLFS = true;
hash = "sha256-n+9Mt7EZ3XHM0w8oGUZr4EBz91EFyp1VBpvl9Php/QM=";
};
};
};
};
};