Discussion
Join the conversation and share your perspective.
Join the conversation and share your perspective.
fresh code test/code
Markdown
/codeconsole.log('test')[object HTMLPreElement]This script will:
If both commands work, you are ready.
Unsupported block type: delimiter
The commands are identical for Windows and Linux. Open your terminal (PowerShell, CMD, or Linux terminal).
The ollama run command does two things: it pulls the model if you don't have it, and then it runs it.
Let's start with llama3, the 8-billion parameter instruct model from Meta.
Bash
[object HTMLPreElement]The first time you run this, you'll see a download progress bar. It's a ~4.7 GB download, so be patient.
Once downloaded, you'll be dropped into a chat prompt:
[object HTMLPreElement]Start chatting! Ask it to write a Python script, explain a concept, or draft an email.
Here are the other commands you'll use all the time.
The real power of Ollama for a developer is that it automatically serves a REST API at http://localhost:11434.
/codeYou can now use LangChain, Python scripts, or any application to interact with your local models programmatically, for free. You've just become your own AI provider.
Explore more insights on AI, technology, and development in my blog.
Browse All Articles