google / generative-ai-docs

Documentation for Google's Gen AI site - including the Gemini API and Gemma
https://ai.google.dev
Apache License 2.0
1.46k stars 494 forks source link

PaliGemma notebooks are not sync'ing to ai.google.dev/gemma #452

Open markmcd opened 3 weeks ago

markmcd commented 3 weeks ago

Description of the bug:

The 2 notebooks in the paligemma dir are currently not sync'ing with the respective copy on ai.google.dev.

There are 2 factors here: 1) the notebooks have no outputs saved, which indicates that they should be executed during import and 2) the notebooks assume they are executing within Colab, which is not true during import, nor true for all external users.

The specific error is:

ModuleNotFoundError: No module named 'google.colab'

Actual vs expected behavior:

Notebooks should run in non-Colab environments.

Any other information you'd like to share?

Notebooks ideally also run unassisted in a clean environment, but if that's not possible (e.g. keys required) then saving outputs will prevent them being executed during import.