Skip to content

Commit 50561bb

Browse files
committed
updates and fixes
1 parent d4df890 commit 50561bb

File tree

1 file changed

+10
-100
lines changed

1 file changed

+10
-100
lines changed

Fine_tune_PaliGemma.ipynb

Lines changed: 10 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,9 @@
2323
},
2424
{
2525
"cell_type": "code",
26-
"execution_count": 1,
27-
"metadata": {
28-
"colab": {
29-
"base_uri": "https://localhost:8080/"
30-
},
31-
"id": "EB0gv8OzHfLV",
32-
"outputId": "9de07e75-ddf4-4347-fc41-432a23774e2c"
33-
},
34-
"outputs": [
35-
{
36-
"name": "stdout",
37-
"output_type": "stream",
38-
"text": [
39-
" Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n",
40-
" Getting requirements to build wheel ... \u001b[?25l\u001b[?25hdone\n",
41-
" Preparing metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
42-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m480.6/480.6 kB\u001b[0m \u001b[31m25.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
43-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m69.1/69.1 MB\u001b[0m \u001b[31m28.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
44-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m116.3/116.3 kB\u001b[0m \u001b[31m7.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
45-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m179.3/179.3 kB\u001b[0m \u001b[31m14.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
46-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m134.8/134.8 kB\u001b[0m \u001b[31m8.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
47-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.0/3.0 MB\u001b[0m \u001b[31m75.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
48-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m194.1/194.1 kB\u001b[0m \u001b[31m17.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
49-
"\u001b[?25h Building wheel for transformers (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
50-
"\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
51-
"gcsfs 2024.10.0 requires fsspec==2024.10.0, but you have fsspec 2024.9.0 which is incompatible.\u001b[0m\u001b[31m\n",
52-
"\u001b[0m"
53-
]
54-
}
55-
],
26+
"execution_count": null,
27+
"metadata": {},
28+
"outputs": [],
5629
"source": [
5730
"!pip install -q -U datasets bitsandbytes peft git+https://github.com/huggingface/transformers.git"
5831
]
@@ -68,53 +41,9 @@
6841
},
6942
{
7043
"cell_type": "code",
71-
"execution_count": 2,
72-
"metadata": {
73-
"colab": {
74-
"base_uri": "https://localhost:8080/",
75-
"height": 17,
76-
"referenced_widgets": [
77-
"4f0e85aa740146d3aca81588a0288031",
78-
"c7fcb9dd46e649c4b8bd967b69bdb867",
79-
"c3fad0f1cb954317a20ee158f7e10363",
80-
"3deca9286f89422aa691325b39347b0b",
81-
"ca1c290bfb654f1190bbde68d51167f1",
82-
"2d8493a60b7a42c1b25ec0bbe0a59043",
83-
"c25efe32ee7c40d3a4c95093abb2a720",
84-
"55c01e2c04d1499ca5b9b19dea7e4e02",
85-
"bf9da831d7ad4651a262c5e7f80bbf87",
86-
"ed2d3d1a700143d2a48e9a9b13bd1200",
87-
"40782cfc43a8437da5534feee03c6ba6",
88-
"b6fac3155dd140bc8e1b010270bc3cc2",
89-
"ca348c721475417582ed5018ed43151f",
90-
"3f07afac7c194db7a16167d177562a46",
91-
"5515d96f0c8947f0ad4b7f17eb7d63f6",
92-
"d703de12cf9d4f87aa6ec2cc52f1090a",
93-
"757bc788bd6842d28a9f889187ffb88e",
94-
"65f10d2456cb4ee1963fac050e4c34f7",
95-
"9335e48fe8ba4fe9b535b5ece1be6ff5",
96-
"80df5f3cd6c646808b09d99daed5bfd2"
97-
]
98-
},
99-
"id": "NzJZSHD8tZZy",
100-
"outputId": "c01b2b6f-3c1e-45da-9fc0-f4f518bcca24"
101-
},
102-
"outputs": [
103-
{
104-
"data": {
105-
"application/vnd.jupyter.widget-view+json": {
106-
"model_id": "4f0e85aa740146d3aca81588a0288031",
107-
"version_major": 2,
108-
"version_minor": 0
109-
},
110-
"text/plain": [
111-
"VBox(children=(HTML(value='<center> <img\\nsrc=https://huggingface.co/front/assets/huggingface_logo-noborder.sv…"
112-
]
113-
},
114-
"metadata": {},
115-
"output_type": "display_data"
116-
}
117-
],
44+
"execution_count": null,
45+
"metadata": {},
46+
"outputs": [],
11847
"source": [
11948
"from huggingface_hub import notebook_login\n",
12049
"notebook_login()"
@@ -131,31 +60,12 @@
13160
},
13261
{
13362
"cell_type": "code",
134-
"execution_count": 1,
135-
"metadata": {
136-
"colab": {
137-
"base_uri": "https://localhost:8080/"
138-
},
139-
"id": "az5kdSbNpjgH",
140-
"outputId": "2d9f379c-eb31-45b0-b84c-79c2a2577d01"
141-
},
142-
"outputs": [
143-
{
144-
"name": "stderr",
145-
"output_type": "stream",
146-
"text": [
147-
"/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_auth.py:94: UserWarning: \n",
148-
"The secret `HF_TOKEN` does not exist in your Colab secrets.\n",
149-
"To authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session.\n",
150-
"You will be able to reuse this secret in all of your notebooks.\n",
151-
"Please note that authentication is recommended but still optional to access public models or datasets.\n",
152-
" warnings.warn(\n"
153-
]
154-
}
155-
],
63+
"execution_count": null,
64+
"metadata": {},
65+
"outputs": [],
15666
"source": [
15767
"from datasets import load_dataset\n",
158-
"ds = load_dataset('merve/vqav2-small', split=\"validation\")\n"
68+
"ds = load_dataset('merve/vqav2-small', split=\"validation\")"
15969
]
16070
},
16171
{

0 commit comments

Comments
 (0)