7,719 questions
0
votes
1
answer
43
views
Can we edit .py files in VSCode and use Google Colab extension to run them on Google servers like Jupyter Notebooks?
I have just get my hands dirty with VSCode's extension Google Colab (by Google).
While I can connect to google servers for running Jupyter Notebooks (.ipynb files), Is there a way to use VSCode ...
-1
votes
0
answers
49
views
Why LoRA Shows 1.4B Trainable Params Instead of 38M When Fine-Tuning Gemma 3 4B? [closed]
I found a code snippet for fine-tuning the Gemma-3 4B model on an OCR dataset that converts handwritten math formulas into LaTeX. The original author shared their results showing about **38 million ...
-4
votes
0
answers
34
views
Google Colab Disk Full issue [closed]
How should I clear the google-colab disk completely ? what are the steps ? How can i track the individual details of that disk which file/ projects is consuming how much GB ?
I tried to get the ...
0
votes
1
answer
96
views
selenium with google colab
Anyone working with Selenium in Google Colab has had trouble since yesterday, before 16hrs (UTC)
The code sample below was working all day long, but after lunchtime, it began to crash.
...
3
votes
1
answer
81
views
Tensorflow images guide not working in Google Colab
I'm trying to run the first guide from Tensorflow in Google Colab.
I import the dataset with
import pathlib
dataset_url = "https://storage.googleapis.com/download.tensorflow.org/example_images/...
2
votes
0
answers
90
views
Importing pyannote.audio into collab
Installation of all the packages I'm using into the collab environment worked fine
However whenever I try to run the following code cell
from pyannote.audio.pipelines.speaker_verification import ...
0
votes
1
answer
188
views
Importing torchcodec is crashing colab
Trying to import torchcodec is crashing on GPU T4 runtime on colab.
I was trying to actually train an ASR but then it started crashing, so tried to narrow it down it ended with just two lines, the ...
0
votes
0
answers
56
views
Problem with spconv library on Google Colab
Installed spconv library on Google Colab.
Got following compilation error while importing
[1/42] [GCC][c++/pch]/usr/local/lib/python3.11/dist-packages/cumm/build/core_cc/include/tensorview_bind/...
5
votes
1
answer
498
views
Colab "Unable to connect to the runtime" or 404 error
I recently encountered this problem. When I want to open colab page (https://colab.research.google.com/), it shows me a 404 error.
Sometimes it can load the page. But then it show this error message:
...
-1
votes
1
answer
109
views
How to install a compatible version of TensorFlow Federated on Google Colab (Python 3.12 + TensorFlow 2.19)?
I am using Google Colab, which comes with:
Python 3.12.11
TensorFlow 2.19.0
When I try:
!pip uninstall -y numpy jax jaxlib
!pip install tensorflow_federated
Pip starts backtracking and tries to ...
1
vote
0
answers
398
views
Encountering an AttibuteError: module 'torch' has no attribute 'xpu'
I'm encountering an error
AttibuteError: module 'torch' has no attribute 'xpu'
when running the diffusers library in a Google Colab environment with a CUDA GPU. I'm trying to use DiffusionPipleline....
3
votes
1
answer
232
views
Why does auth.authenticate_user() in Google Colab not give access to my personal Google Calendar?
I’m trying to access my Google Calendar events from Google Colab using the Google Calendar API.
from google.colab import auth
from googleapiclient.discovery import build
import google.auth
import ...
1
vote
0
answers
75
views
Reliable Colab Notebook Secret Usage
In Google Colab, I use notebook-level secrets to follow best practices for credential management. However, it is a little bit buggy.
from google.colab import userdata
from google.cloud import storage
...
1
vote
1
answer
128
views
printf (inside C code) called from python in google colab. (no output)
printf doesn't output anything
google colab cell:
%%writefile my_functions.c
#include <stdio.h>
#include <stdlib.h>
void my_void_func() {
printf("my_void_func called from C!\n");
...
2
votes
1
answer
282
views
Installing Python Libraries to Google Drive in Colab is extremely slow or re-installing
screenshot of installation
colab link
its been 25 minutes it is still installing the lib
I'm trying to optimize my Google Colab workflow by installing Python libraries directly to my Google Drive ...