Loading topic
ollama --version prints a version number, you are ready.4 min readollama pull and ollama run (covered in earlier chapters). It also assumes you know that a model has a parameter count and that quantization shrinks a model by storing its weights at lower precision. Quantization gets full treatment in a later chapter. Here the go5 min readollama run, and that you know what a tag such as 3b or q4_K_M roughly means. Chapter-level detail on quantization comes later. Here the focus is the lifecycle of a model on 6 min readollama pull and ollama run, and that you know how to read model names and tags. It also assumes you know roughly what a large language model is. The goal is to estimate, before you download anything, whether a model will fit in your memory and run at a usable spe5 min readollama run, send JSON to the local REST API, and read a Modelfile. It covers the settings that change how a model behaves: how much text it can hold in memory, and how it picks each next token. Setting these well often matters more than switching to a 6 min readollama command is only one client of it. Any program that can send JSON over HTTP can use the same server. This chapter covers the two main endpoints, /api/generate and /api/chat, and the request and response fields you need to use them.4 min readrequests and the openai package. Ollama must be running on localhost:11434 with llama3.2 4 min readollama pull and call the local REST API from the earlier chapters. It also assumes you know what a vector is: a list of numbers. Here you will use a local model to turn text into vectors and compare them to find text with similar meaning.5 min readllama3.2 and that you know the basics of a Modelfile (the file that defines a model's base, parameters, and system prompt). Here you will turn that file into a model you can5 min readollama pull and ollama run, and that you have called the REST API with curl or Python. It also assumes you can set environment variables in your operating system. You will change three server settings: which address the server listens on, how long a model stays5 min readollama run. You should also know the basics of the REST API and the idea of a context window from earlier chapters. Here you will learn a repeatable way to diagnose the three most common failure types: th6 min read