Skip to content

Commit e09cc4c

Browse files
fix: repair notebook loading and Colab CI (#1013)
* fix: load tutorial images from Parquet Signed-off-by: Andre Manoel <amanoel@nvidia.com> * fix: limit Colab CI to docs dependencies Signed-off-by: Andre Manoel <amanoel@nvidia.com> --------- Signed-off-by: Andre Manoel <amanoel@nvidia.com>
1 parent 1649975 commit e09cc4c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/check-colab-notebooks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
enable-cache: true
3333

3434
- name: Install dependencies
35-
run: uv sync --all-packages --group notebooks --group docs
35+
run: uv sync --frozen --only-group docs
3636

3737
- name: Get changed notebook sources
3838
id: changed

‎docs/colab_notebooks/4-providing-images-as-context.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@
195195
"IMG_COUNT = 512 # Number of images to process\n",
196196
"BASE64_IMAGE_HEIGHT = 512 # Standardized height for model input\n",
197197
"\n",
198-
"# Load the pets dataset (train split, ~23 MB total)\n",
199-
"img_dataset_cfg = {\"path\": \"rokmr/pets\", \"split\": \"train\"}"
198+
"# Load the Parquet export to avoid ZIP label inference in datasets 5.x.\n",
199+
"img_dataset_cfg = {\"path\": \"rokmr/pets\", \"revision\": \"refs/convert/parquet\", \"split\": \"train\"}"
200200
]
201201
},
202202
{

‎docs/notebook_source/4-providing-images-as-context.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
IMG_COUNT = 512 # Number of images to process
100100
BASE64_IMAGE_HEIGHT = 512 # Standardized height for model input
101101

102-
# Load the pets dataset (train split, ~23 MB total)
103-
img_dataset_cfg = {"path": "rokmr/pets", "split": "train"}
102+
# Load the Parquet export to avoid ZIP label inference in datasets 5.x.
103+
img_dataset_cfg = {"path": "rokmr/pets", "revision": "refs/convert/parquet", "split": "train"}
104104

105105

106106
# %%

0 commit comments

Comments
 (0)