Skip to content

fix(examples): migrate basics_colab and agents_colab notebooks from granite3.3 to granite4.1:8b#1540

Open
BiswasNehaa wants to merge 1 commit into
i-am-bee:mainfrom
BiswasNehaa:fix/migrate-granite-notebooks-clean
Open

fix(examples): migrate basics_colab and agents_colab notebooks from granite3.3 to granite4.1:8b#1540
BiswasNehaa wants to merge 1 commit into
i-am-bee:mainfrom
BiswasNehaa:fix/migrate-granite-notebooks-clean

Conversation

@BiswasNehaa

Copy link
Copy Markdown
Contributor

Closes #1481

Migrates the remaining notebook examples referencing granite3.3 to granite4.1:8b:

  • python/examples/notebooks/basics_colab.ipynb
  • python/examples/notebooks/agents_colab.ipynb

basics.ipynb, workflows.ipynb, and workflows_colab.ipynb were already migrated in earlier PRs (#1521, #1534), so this should cover the remaining notebooks listed in the issue.

…ranite3.3 to granite4.1:8b

Signed-off-by: BiswasNehaa <neha12345biswas@gmail.com>
@BiswasNehaa BiswasNehaa requested a review from a team as a code owner June 30, 2026 17:33
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 30, 2026
@github-actions github-actions Bot added the python Python related functionality label Jun 30, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Ollama model version from granite3.3 to granite4.1:8b in both the agents_colab.ipynb and basics_colab.ipynb notebooks. The review feedback correctly identifies a critical mismatch: the installation cells in both notebooks still pull the older granite3.3:8b model, which will lead to runtime errors or delays in Google Colab since the new model is not pre-pulled.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

"source": [
"# Construct ChatModel\n",
"chat_model = ChatModel.from_name(\"ollama:granite3.3\")\n",
"chat_model = ChatModel.from_name(\"ollama:granite4.1:8b\")\n",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

There is a mismatch between the model being pulled in the installation cell and the model instantiated here. The installation cell (around line 78) pulls granite3.3:8b (!ollama pull granite3.3:8b), but this cell instantiates granite4.1:8b. This will cause a runtime error or unexpected delay when running the notebook in Google Colab because the correct model is not pre-pulled. Please update the installation cell to pull granite4.1:8b as well.

"source": [
"# Construct ChatModel\n",
"model = ChatModel.from_name(\"ollama:granite3.3\")\n",
"model = ChatModel.from_name(\"ollama:granite4.1:8b\")\n",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

There is a mismatch between the model being pulled in the installation cell and the model instantiated here. The installation cell (around line 73) pulls granite3.3:8b (!ollama pull granite3.3:8b), but this cell instantiates granite4.1:8b. This will cause a runtime error or unexpected delay when running the notebook in Google Colab because the correct model is not pre-pulled. Please update the installation cell to pull granite4.1:8b as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python related functionality size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate examples from granite3.3:8b to granite4.1:8b

1 participant