This Nix flake contains packages that are used within Hugging Face. These are typically packages that are not in nixpkgs or where we need a different version/build.
The flake is normally used as an overlay (overlays.default
).
If you use this overlay's nixpkgs version, you can also get prebuilt outputs
from our binary cache. Set your nixpkgs
input to follow this flake:
{
inputs = {
hf-nix.url = "github:huggingface/hf-nix";
nixpkgs.follows = "hf-nix/nixpkgs";
};
outputs =
{
self,
nixpkgs,
hf-nix,
}:
# ...
}
Then follow the instructions to install Cachix and enable the Hugging Face Nix cache.