Harnessing Ollama – Create Local LLMs with Python

External: Coursera Courses ↗ · Coursera

Open Course on External: Coursera

Free to audit · Opens on External: Coursera

Harnessing Ollama – Create Local LLMs with Python

Coursera · Intermediate ·🧠 Large Language Models ·2mo ago
Updated in May 2025. This course now features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. In this course, you will learn how to create local language models using Ollama and Python. By the end, you will be equipped with the tools to build LLM-based applications for real-world use cases. The course introduces Ollama's powerful features, installation, and setup, followed by a hands-on guide to exploring and utilizing Ollama models through Python. You'll dive into topics such as REST APIs, the Python library for Ollama, and how to customize and interact with models effectively. You'll begin by setting up your development environment, followed by an introduction to Ollama, its key features, and system requirements. After grasping the fundamentals, you'll start working with Ollama CLI commands and explore the REST API for interacting with models. The course provides practical exercises such as pulling and testing models, customizing them, and using various endpoints for tasks like sentiment analysis and summarization. The journey continues as you dive into Python integration, using the Ollama Python library to build LLM-based applications. You'll explore advanced features like working with multimodal models, creating custom models, and using the show function to stream chat interactions. Then, you'll develop full-fledged applications, such as a grocery list categorizer and a RAG system, exploring vector stores, embeddings, and more. This course is ideal for those looking to build advanced LLM applications using Ollama and Python. If you have a background in Python programming and want to create sophisticated language-based applications, this course will help you achieve that goal. Expect a hands-on learning experience with the opportunity to work on several projects using the Ollama framework.
Watch on External: Coursera ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related AI Lessons

The One Prompt Engineering Trick That Actually Works
Improve AI output by telling it what to do, not just describing the problem, using a key prompt engineering trick
Dev.to AI
A beginner's guide to the Krea-2-large model by Krea on Replicate
Learn to use Krea's text-to-image model, Krea-2-large, on Replicate for generating images from text prompts
Hackernoon
Dev log #7 Reviving DevNotion: 10,000 Lines, Multi-LLM Support, and the Road to v2.1
Revive a stagnant project like DevNotion by refactoring 10,000 lines of code and adding multi-LLM support, learning to breathe new life into legacy codebases
Dev.to · Yash Kumar Saini
You can't prevent prompt injection. So what do you actually do?
Learn to design for the state your AI agent is in after a potential prompt injection, as preventing it is not reliably possible
Dev.to · Brenn Hill
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →