flâneur — a map of the web's best reading

How to Add ANY Model to Ollama

readmedium.com · saved by 1 readers

We use cookies to enhance your user experience. Clicking 'Agree' indicates your consent to the use of cookies. Summary The article provides a step-by-step guide on how to add a custom large language model (LLM) to the Ollama platform for local execution, including the process of model quantization to optimize performance. Abstract The author of the article describes their experience with adding a self-created "smart" LLM with 7 billion parameters to Ollama, despite having no background in machine learning. The process begins with locating and downloading the model from Hugging Face, creating a Modelfile with the appropriate chat template for the model, and optionally quantizing the model to reduce its size and improve inference speed. The article outlines the necessary commands for quantization, the use of different templates for various models, and the final steps of creating and running the model on Ollama. Additionally, the author explains how to upload the model to Ollama for publi

Explore this link on the map →

saved by