Skip to content

fix: pin numpy and requests to resolve FunctionGemma notebook dependency errors (Fixes #274)#404

Open
Paramveersingh-S wants to merge 7 commits into
google-gemma:mainfrom
Paramveersingh-S:fix/functiongemma-notebook-deps
Open

fix: pin numpy and requests to resolve FunctionGemma notebook dependency errors (Fixes #274)#404
Paramveersingh-S wants to merge 7 commits into
google-gemma:mainfrom
Paramveersingh-S:fix/functiongemma-notebook-deps

Conversation

@Paramveersingh-S

Copy link
Copy Markdown

Description

This PR addresses Issue #274, where running the Finetune_FunctionGemma_270M_for_Mobile_Actions_with_Hugging_Face.ipynb notebook caused PIP dependency resolution crashes on Colab due to the latest versions of numpy and requests breaking google-colab 1.0.0 and opencv-python-headless.

Key Changes

  • Pinned %pip install "numpy<2.0.0" "requests==2.32.4" at the top of the PIP installation cell in docs/functiongemma/finetuning-with-functiongemma.ipynb (and related function-calling notebooks) to ensure a stable Colab environment.

Fixes #274.

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@bebechien

Copy link
Copy Markdown
Collaborator

Hi @Paramveersingh-S , I'm afraid your PR mixes up with other changes (e.g. apps/concurrent_spark). And your other PRs have the same issue. Can you fix it? Additionally, do not modify ‎.github/workflows. Thanks.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FunctionGemma: Conversion to .litertlm for on-device deployment - unable to install dependencies

2 participants