-
Notifications
You must be signed in to change notification settings - Fork 1k
Upgrade Colab base image #1533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Upgrade Colab base image #1533
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,15 +23,9 @@ RUN uv pip uninstall --system --no-cache google-cloud-bigquery-storage | |
| # to avoid affecting the larger build, we'll post-install it. | ||
| RUN uv pip install --no-build-isolation --no-cache --system "git+https://github.com/Kaggle/learntools" | ||
|
|
||
| # newer daal4py requires tbb>=2022, but libpysal is downgrading it for some reason | ||
| RUN uv pip install --system --no-cache "tbb>=2022" "libpysal==4.9.2" | ||
|
|
||
| # b/404590350: Ray and torchtune have conflicting tune cli, we will prioritize torchtune. | ||
| # b/315753846: Unpin translate package, currently conflicts with adk 1.17.0 | ||
| # b/468379293: Unpin Pandas once cuml/cudf are compatible, version 3.0 causes issues | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. numpy/cudf: The pinned version are the ones now installed in the colab base image. |
||
| # b/468383498: numpy will auto-upgrade to 2.4.x, which causes issues with numerous packages | ||
| # b/404590350: Ray and torchtune have conflicting cli named `tune`. `ray` is not part of Colab's base image. Re-install `tune` to ensure the torchtune CLI is available by default. | ||
| # b/468367647: Unpin protobuf, version greater than v5.29.5 causes issues with numerous packages | ||
| RUN uv pip install --system --force-reinstall --no-cache --no-deps torchtune "google-cloud-translate==3.12.1" "numpy==2.0.2" "pandas==2.2.2" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. google-cloud-translate 3.24.0 and adk 1.21.0 are now installed in the new Colab base image. |
||
| RUN uv pip install --system --force-reinstall --no-cache --no-deps torchtune | ||
| RUN uv pip install --system --force-reinstall --no-cache "protobuf==5.29.5" | ||
|
|
||
| # Adding non-package dependencies: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| BASE_IMAGE=us-docker.pkg.dev/colab-images/public/runtime | ||
| BASE_IMAGE_TAG=release-colab-external_20251024-060052_RC00 | ||
| BASE_IMAGE_TAG=release-colab-external_20260126-060048_RC00 | ||
| CUDA_MAJOR_VERSION=12 | ||
| CUDA_MINOR_VERSION=5 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,8 +65,7 @@ keras-nlp | |
| keras-tuner | ||
| kornia | ||
| langid | ||
| # b/328788268: libpysal 4.10 seems to fail with "module 'shapely' has no attribute 'Geometry'. Did you mean: 'geometry'" | ||
| libpysal<=4.9.2 | ||
| libpysal | ||
| lime | ||
| line_profiler | ||
| mamba | ||
|
|
@@ -116,8 +115,9 @@ scikit-plot | |
| scikit-surprise | ||
| git+https://github.com/facebookresearch/segment-anything.git | ||
| squarify | ||
| tensorflow-cloud | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has been unmaintained since 2021 |
||
| tensorflow-io | ||
| # Must be compatible with torch version: https://github.com/meta-pytorch/torchcodec?tab=readme-ov-file#installing-torchcodec | ||
| torchcodec==0.9 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Starting in 2.9.0, See: https://docs.pytorch.org/audio/2.8/generated/torchaudio.load_with_torchcodec.html |
||
| torchinfo | ||
| torchmetrics | ||
| torchtune | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -200,22 +200,6 @@ def call_get_cloudai_access_token(): | |
| client = UserSecretsClient() | ||
| secret_response = client._get_cloudai_access_token() | ||
| self.assertEqual(secret_response, (secret, now + timedelta(seconds=3600))) | ||
| def call_get_translation_access_token(): | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These 4 methods were not called (dead code). The matching |
||
| client = UserSecretsClient() | ||
| secret_response = client._get_translation_access_token() | ||
| self.assertEqual(secret_response, (secret, now + timedelta(seconds=3600))) | ||
| def call_get_natural_lang_access_token(): | ||
| client = UserSecretsClient() | ||
| secret_response = client._get_natural_language_access_token() | ||
| self.assertEqual(secret_response, (secret, now + timedelta(seconds=3600))) | ||
| def call_get_video_intell_access_token(): | ||
| client = UserSecretsClient() | ||
| secret_response = client._get_video_intelligence_access_token() | ||
| self.assertEqual(secret_response, (secret, now + timedelta(seconds=3600))) | ||
| def call_get_vision_access_token(): | ||
| client = UserSecretsClient() | ||
| secret_response = client._get_vision_access_token() | ||
| self.assertEqual(secret_response, (secret, now + timedelta(seconds=3600))) | ||
|
|
||
| self._test_client(call_get_bigquery_access_token, | ||
| '/requests/GetUserSecretRequest', {'Target': GcpTarget.BIGQUERY.target}, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the new colab base image includes tbb 2022.3.0 & libpysal 4.14.1. No reinstall needed.