fix(examples): migrate basics_colab and agents_colab notebooks from granite3.3 to granite4.1:8b#1540
Conversation
…ranite3.3 to granite4.1:8b Signed-off-by: BiswasNehaa <neha12345biswas@gmail.com>
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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.
Closes #1481
Migrates the remaining notebook examples referencing
granite3.3togranite4.1:8b:python/examples/notebooks/basics_colab.ipynbpython/examples/notebooks/agents_colab.ipynbbasics.ipynb,workflows.ipynb, andworkflows_colab.ipynbwere already migrated in earlier PRs (#1521, #1534), so this should cover the remaining notebooks listed in the issue.