Skip to content

Commit

Permalink
nixos/ollama: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
abysssol committed Apr 13, 2024
1 parent 3769ffe commit 4508b59
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions nixos/modules/services/misc/ollama.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,19 @@ in
'';
};
acceleration = lib.mkOption {
type = types.nullOr (types.enum [ "rocm" "cuda" ]);
type = types.nullOr (types.enum [ false "rocm" "cuda" ]);
default = null;
example = "rocm";
description = ''
What interface to use for hardware acceleration.
- `rocm`: supported by modern AMD GPUs
- `cuda`: supported by modern NVIDIA GPUs
- `null`: default behavior
if `nixpkgs.config.rocmSupport` is enabled, uses `"rocm"`
if `nixpkgs.config.cudaSupport` is enabled, uses `"cuda"`
otherwise defaults to `false`
- `false`: disable GPU, only use CPU
- `"rocm"`: supported by most modern AMD GPUs
- `"cuda"`: supported by most modern NVIDIA GPUs
'';
};
environmentVariables = lib.mkOption {
Expand Down

0 comments on commit 4508b59

Please sign in to comment.