ollamaPackages: rename {model}_{variant} -> {model}-{variant}
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
# - <https://wiki.nixos.org/wiki/Ollama>
|
# - <https://wiki.nixos.org/wiki/Ollama>
|
||||||
#
|
#
|
||||||
# use: `ollama run llama3.2`
|
# use: `ollama run llama3.2`
|
||||||
# or use a remote session: <https://github.com/ggozad/oterm>
|
# - list available: `ollama list`
|
||||||
|
# - use a remote session: <https://github.com/ggozad/oterm>
|
||||||
#
|
#
|
||||||
# models have to be explicitly downloaded. see `ollamaPackages` for examples.
|
# models have to be explicitly downloaded. see `ollamaPackages` for examples.
|
||||||
# should ollamaPackages not suffice, `ollama pull llama3.2` should fetch a model,
|
# should ollamaPackages not suffice, `ollama pull llama3.2` should fetch a model,
|
||||||
@@ -18,8 +19,13 @@ let
|
|||||||
modelSources = pkgs.symlinkJoin {
|
modelSources = pkgs.symlinkJoin {
|
||||||
name = "ollama-models";
|
name = "ollama-models";
|
||||||
paths = with pkgs.ollamaPackages; [
|
paths = with pkgs.ollamaPackages; [
|
||||||
llama3_2_3b
|
llama3_1-70b
|
||||||
|
llama3_2-3b
|
||||||
mistral
|
mistral
|
||||||
|
mistral-large
|
||||||
|
mixtral-8x7b
|
||||||
|
qwen2_5-32b
|
||||||
|
qwen2_5-coder-7b
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
models = "${modelSources}/share/ollama/models";
|
models = "${modelSources}/share/ollama/models";
|
||||||
|
@@ -9,11 +9,11 @@
|
|||||||
lib.recurseIntoAttrs (lib.makeScope newScope (self: with self; {
|
lib.recurseIntoAttrs (lib.makeScope newScope (self: with self; {
|
||||||
mkOllamaModel = callPackage ./mkOllamaModel.nix { };
|
mkOllamaModel = callPackage ./mkOllamaModel.nix { };
|
||||||
|
|
||||||
llama3_1_70b = callPackage ./llama3_1_70b.nix { };
|
llama3_1-70b = callPackage ./llama3_1-70b.nix { };
|
||||||
llama3_2_3b = callPackage ./llama3_2_3b.nix { };
|
llama3_2-3b = callPackage ./llama3_2-3b.nix { };
|
||||||
mistral = callPackage ./mistral.nix { };
|
mistral = callPackage ./mistral.nix { };
|
||||||
mistral-large = callPackage ./mistral-large.nix { };
|
mistral-large = callPackage ./mistral-large.nix { };
|
||||||
mixtral-8x7b = callPackage ./mixtral-8x7b.nix { };
|
mixtral-8x7b = callPackage ./mixtral-8x7b.nix { };
|
||||||
qwen2_5_32b = callPackage ./qwen2_5_32b.nix { };
|
qwen2_5-32b = callPackage ./qwen2_5-32b.nix { };
|
||||||
qwen2_5-coder-7b = callPackage ./qwen2_5-coder-7b.nix { };
|
qwen2_5-coder-7b = callPackage ./qwen2_5-coder-7b.nix { };
|
||||||
}))
|
}))
|
||||||
|
Reference in New Issue
Block a user