
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
ollama-create
Advanced tools
NodeJS CLI script which simplifies adding GGUF models to Ollama by creating symlinks and downloading necessary metadata from the Ollama Registry.
Benefits:
Requires NodeJS version 18.11.0 or higher. Install it globally using npm:
npm install -g ollama-create
Usage: ollama-create [OPTIONS] [MODEL...]
Create a new Ollama model based on a base model from the Ollama registry.
MODEL can be a local GGUF file or the name of a model in the Ollama registry.
All specified files will be symlinked to Ollama to avoid duplication.
If a file is supplied which doesn't exist, it will be created from the base model in the specified location.
To remove a setting from the base model, use --no-<option>.
OPTIONS:
-f, --from <from> Defines the base model from the Ollama registry to use.
Defaults to the model architecture from the GGUF metadata.
-n, --name <name> Set the name for the new model.
Defaults to <name>-<size>-<finetune>-<version> from the GGUF metadata
or the base model name if no model file is specified.
-d, --dir <dir> Download all base model files to the specified directory and create symlinks for Ollama.
-p, --params <json file> Specify a JSON file containing parameters for Ollama.
-m, --messages <json file> Provide a JSON file containing the message history.
-t, --template <txt file> Define a file containing the full prompt template.
-s, --system <txt file> Specify a file containing the system message.
-a, --adapter <gguf file> Apply (Q)LoRA adapters to the model.
-j, --projector <gguf file> Define multimodal projectors.
-l, --license <txt file> Specify a file containing the legal license.
-g, --show Print the GGUF metadata of the model.
-h, --help Display this help and exit.
ollama-create gemma2
This will download the Gemma 2 model from the Ollama Registry and configure it in Ollama (same as ollama pull gemma2
).
ollama-create --from llama3.1 my-model.gguf
This will use the local my-model.gguf
file and configure it in Ollama by creating a symlink.
The Ollama metadata (template, params etc.) is taken from the Llama 3.1 model.
If my-model.gguf
doesn't exist, the llama3.1
model will be downloaded and saved as my-model.gguf
.
ollama-create --template my-template.txt gemma2
This will download the Gemma 2 model but use the local my-template.txt
file as prompt template.
If my-template.txt
doesn't exist, the template from the Gemma 2 model will be downloaded and saved as my-template.txt
.
ollama-create --no-params gemma2
This will download the Gemma 2 model but removes all parameter instructions.
ollama-create --dir ./models/gemma gemma2
This will download the Gemma 2 model and save all Ollama artifacts to the ./models/gemma/
directory.
Symlinks in the Ollama blob store are created for all files.
ollama-create --metadata my-model.gguf
Prints the GGUF metadata of the model file as JSON.
FAQs
NodeJS script to add models to ollama without duplication.
The npm package ollama-create receives a total of 0 weekly downloads. As such, ollama-create popularity was classified as not popular.
We found that ollama-create demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.