Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 25 additions & 13 deletions docs/capabilities/vision/video-understanding.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,6 @@
"Once you have entered your Access Token as `HF_TOKEN` and value, you can access the model:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "ogSB3peYP1b4"
},
"outputs": [],
"source": [
"# Login into Hugging Face Hub\n",
"from huggingface_hub import login\n",
"login()"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand All @@ -142,6 +129,31 @@
"%pip install \"transformers>=4.53.0\""
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a2c473e7",
"metadata": {
"id": "4VcVqoP7FCd1"
},
"source": [
"Login into Hugging Face Hub."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "95d8f75a",
"metadata": {
"id": "9Rt_YSIEFDhl"
},
"outputs": [],
"source": [
"# Login into Hugging Face Hub\n",
"from huggingface_hub import login\n",
"login()"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion docs/core/gemma_library.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
},
"outputs": [],
"source": [
"!pip install -q gemma"
"!pip install -q gemma kagglehub"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with other notebooks in the repository (e.g., fine-tuning-paligemma.ipynb) and to ensure the latest compatible versions of packages are installed, it's good practice to use the -U (or --upgrade) flag.

Suggested change
"!pip install -q gemma kagglehub"
"!pip install -U -q gemma kagglehub"

]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/core/huggingface_text_finetune_qlora.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
"# Install Pytorch & other libraries\n",
"%pip install \"torch>=2.4.0\" tensorboard\n",
"\n",
"# Install Gemma release branch from Hugging Face\n",
"%pip install git+https://github.com/huggingface/transformers@v4.49.0-Gemma-3\n",
"# Install Transformers\n",
"%pip install transformers\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To ensure reproducibility and prevent potential breakages from future transformers releases, it's advisable to specify a minimum compatible version. Other notebooks in this repository use "transformers>=4.53.0", which would be a good addition here for consistency.

Suggested change
"%pip install transformers\n",
"%pip install \"transformers>=4.53.0\"\n"

"\n",
"# Install Hugging Face libraries\n",
"%pip install --upgrade \\\n",
Expand Down
22 changes: 22 additions & 0 deletions docs/paligemma/fine-tuning-paligemma.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,28 @@
"1. Under **Hardware accelerator**, select **T4 GPU**."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "4a3Q4VCLljR9"
},
"source": [
"### Install Python packages\n",
"\n",
"Run the below cell to install KaggleHub."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "DoYMMytAaMRJ"
},
"outputs": [],
"source": [
"!pip install -U -q kagglehub"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down
Loading