
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
ollama-model-generator
Advanced tools
NodeJS script to add models to ollama without duplication.
This NodeJS CLI script 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-model-generator
ollama-model-generator [options]
Options:
--model <path> Path to the GGUF model file. This will be symlinked to Ollama blob storage.
If the file doesn't exist, it will be downloaded from the Ollama Registry based on --from.
Optional. If not provided, the model will be downloaded to the Ollama blob storage.
--from, -f <name> Model name in the Ollama Registry to download as a base.
Default: architecture of the GGUF model.
--name, -n <name> Name of the new model in Ollama.
Default: basename-size-finetune-version of the GGUF model.
If --model is not provided, it defaults to the name from --from.
--show, -s Prints model metadata from the GGUF file header as JSON (requires --model).
--registry, -r <registry> The Ollama Registry URL.
Default: registry.ollama.ai
--dir, -d <path> Directory for storing Ollama model data.
Default: $OLLAMA_MODELS or ~/.ollama/models
Additional files can be symlinked in the same way as --model ( see Ollama Model File):
--adapter, --embed, --license, --messages, --params, --projector, --prompt, --system, --template
ollama-model-generator --from gemma2
This will download the Gemma 2 model from the Ollama Registry and configure it in Ollama (same as ollama pull gemma2
).
ollama-model-generator --from llama3.1 --model my-model.gguf --name LLama3.1-MyModel
This will use the local my-model.gguf
file and configure it in Ollama with the name LLama3.1-MyModel
.
The Ollama metadata (template, params etc.) is taken from the Llama 3.1 model.
ollama-model-generator --from gemma2 --template my-template.txt
This will download the Gemma 2 model but use the local my-template.txt
file as prompt template.
ollama-model-generator --show --model 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-model-generator receives a total of 0 weekly downloads. As such, ollama-model-generator popularity was classified as not popular.
We found that ollama-model-generator 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
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.