https://github.com/gamemaker1/gemma3-function-calling-tutorial
A tutorial on function calling with Gemma 3.
https://github.com/gamemaker1/gemma3-function-calling-tutorial
Last synced: 12 months ago
JSON representation
A tutorial on function calling with Gemma 3.
- Host: GitHub
- URL: https://github.com/gamemaker1/gemma3-function-calling-tutorial
- Owner: gamemaker1
- Created: 2025-06-14T20:45:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-22T18:07:15.000Z (12 months ago)
- Last Synced: 2025-06-22T19:21:00.600Z (12 months ago)
- Language: Jupyter Notebook
- Size: 348 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Offline, Multimodal Function Calling with Gemma: A Tutorial
> This repository contains the source code for the tutorial on function calling with Gemma 3.
The tutorial is a single Python Notebook, [`tutorial.ipynb`](tutorial.ipynb). It uses helper functions from the [`toolkit`](toolkit/). The best way to learn is to do: please follow the below instructions on getting started so you can change, run and experiment with the code in the notebook as you read.
### Getting Started
This tutorial assumes you have basic knowledge of Python. In addition, this tutorial uses the following tools:
- [`ollama`](https://ollama.com) to run the models locally on your computer
- [`uv`](https://docs.astral.sh/uv/getting-started/) to run python code and manage dependencies.
If you haven't already, please follow this links above to get them set up.
First, let's make sure everything is installed correctly. Open your terminal and check the versions:
```bash
uv --version
ollama --version
```
Next, start `ollama` by running the following command:
```bash
ollama serve
```
In another terminal, clone this repository and open the notebook by running:
```bash
git clone https://github.com/gamemaker1/gemma3-function-calling-tutorial.git
cd gemma3-function-calling-tutorial/
uv run --with jupyter jupyter lab tutorial.ipynb
```
This should open this tutorial notebook in your browser so you can follow along!