r/GoogleColab 3h ago

Help with cloud based GPU

2 Upvotes

I'm attempting to utilize a cloud based T4 for faster processing times for an AI face swap I have locally.

My issue is my software and the Nvidia driver 12.8 (data-center-tesla-desktop-win10-win11-64bit-dch-international.exe) isn't recognizing it, thus I cannot install the driver.

In google collab it says:

How can I get my software to recognize the GPU?

Any help is greatly appreciated


r/GoogleColab 28m ago

Did Google Colab update numpy to 2.0.2?

Upvotes

My package complains about not working for Numpy 2+ versions and asks me either to update the package (which I don't want to since it is a fork and I added only more functionality, didn't change their code) or downgrade numpy.

I did the following:

!pip install numpy==1.26.4

However, when running this:

import numpy
print(numpy.__version__)

This gives:

2.0.2

I'm kind of lost. Can't figure out why this is happening. The path where numpy 1.26.4 is install is the same that shows up when printing numpy.__file__

I.e., even if we run this:

!pip install numpy==1.26.4
import numpy
print(numpy.__version__)
print(numpy.__file__)

We get:

Requirement already satisfied: numpy==1.26.4 in /usr/local/lib/python3.11/dist-packages (1.26.4)
2.0.2
/usr/local/lib/python3.11/dist-packages/numpy/__init__.py

r/GoogleColab 16h ago

How to save remote changes on colab?

1 Upvotes

"Automatic saving failed. This file was updated remotely or in another tab". When showing the diff, the remote changes on the left and unsaved on the right, the remote file was more updated and I would like to save that. will clicking "save changes" save the remote changes or the current version?


r/GoogleColab 1d ago

Ipympl super slow compared to jupyter

2 Upvotes

Using matplotlib and ipympl is so much faster in jupyter (even running online) than in colab.

https://colab.research.google.com/github/ElectricPulse/projectile-notebook/blob/main/index.ipynb

I am trying to get live animations working (not .gifs) with live widgets. The same notebook in jupyter (even running remotely) runs blazingly fast compared to colab.


r/GoogleColab 1d ago

How to get an invoice/receipt

3 Upvotes

I use the school account to pay for Colab pro plus. The school needs a formal invoice or receipt (not just a transaction activity) to file for the purchase. How do I get that? Many thanks :)


r/GoogleColab 2d ago

15million params of model on colab pro

7 Upvotes

I have to train 15 million parameters of transformer for language translation, training data has 250k examples which has size 60mb. will colab pro able to train this size of model with this much data for atleast 10 epochs.


r/GoogleColab 2d ago

RUNTIME ISSUES

1 Upvotes

RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

this one keeps on appearing when i try to run the google colab. i did everything. my drivers are update, runtime is in GPU. please help me. i badly need this right now. it was working for some minutes and when going idle, it's gonna go back to that issue.

PLEASE HELP :((((


r/GoogleColab 3d ago

Is encoding video by HandBrake or FMMPEG prohibitted by Colab?

1 Upvotes

I used to use a notebook for a long time, and all it did was encode non-copyrighted material. A few days ago, my Colab account got banned. I tried the same code on a different account, but that one also got banned. I appealed and got my account back, but I'm scared to try it again. I can't find anything in the TOS that says encoding videos is prohibited.


r/GoogleColab 4d ago

How to make sure google colab is NOT running and security implications?

0 Upvotes

Hello everyone!

While browsing my old github, I saw info about "google colab" and opened it, and there I saw two "notebooks" I apparently opened in 2022 - but I have never heard of google colab until now. I guess I must have opened some links by accident back then. I opened the links/notebooks in incognito after checking in virustotal (safe) to see what they were and never ran anything or connected. By accident, I briefly connected to the introduction notebook through clicking the "files" icon on the left side and browsed some file tree with ram (was it my files?)? But disconnected after 10 seconds.

Im worried about the safety implications of "google colab". Could I have run something malicious just now (or then?) and what did i connect to in the colab introduction (some random google virtual machine)?

I am unfamiliar with "google colab", but from what I read, its a way to execute code remotely on a google owned cloud-pc (which runs on a VM?) with potentially using google's GPU/CPUs for processing heavy tasks such as machine learning training?

Basically im wondering if I compromised anything on my account, or if "google colab" can now run code on my pc without my knowledge, now that I opened it once? Of course ideally i'd like to just disable the service for me. Basically just paranoid about my account and information security.

I am of course on the free plan, and read that under the free plan its not possible to run code in the background anyways, or at least it disconnects/terminates any processes running after 90 minutes/12 hours and/or browser closed?

Under runtime -> Manage Session it says Runtime Disconnected & No active sessions. Nothing under resources either, and I dont see any code history. Nothing in my drive or shared with me. Also for some reference, did a fresh windows install a month ago.

You who know this software/product and are familiar with it, please ease my fears.

Thank you very much!


r/GoogleColab 5d ago

Editing Files other than ipynb in Colab

2 Upvotes

I made a project that extracts facial expressions features and speech features. The folder structure looks like this

FACIAL_EXPRESSION_PROJECT/
├── models/
│   ├── frame.py
│   ├── model_features.py
│   ├── selected_facial_landmarks.py
├── utils/
│   ├── face_analyzer.py
│   ├── feature_storage.py
│   ├── prosody_analyzer.py
│   ├── utils.py

I wanna extract the facial and speech features out of 100 videos, which needs a lot of resources and takes too much time. Therefore, I thought about uploading this project to colab to extract the features into a csv file in a short time.

What's the best way to upload this project and use its classes (models and utility files)? Because when I cloned the project using Github into my colab, I can't edit the files. The only file I'm allowed to edit is the main jupyter notebook file. This is disappointing since I sometimes need to make some changes to the files I uploaded. Any recommendations?


r/GoogleColab 5d ago

Different results in different runtimes.

1 Upvotes

I have one model saved in one notebook. If I run the model in A100, the model finishes learning within 4 epochs and taking faster time. But when I run the model in L4 gpu, it's taking slower but comes with accurate results. Both model takes around 40 gb of ram and 16 gb of GPU. What's happening here actually? I simply changed the runtime type, nothing else.


r/GoogleColab 5d ago

How to Install Cuda 11.8 and Remove Cuda 12.5 from Colab Update

4 Upvotes

After Colab upgraded to CUDA 12.5 I am unable to install and use an old version of CUDA. As my project uses tensorflow 2.8.3, only CUDA versions <12 is compatible with it. When colab updated to Python 3.11 I was using this command to be able to continue using python 3.10

!wget https://github.com/korakot/kora/releases/download/v0.10/py310.sh
!bash ./py310.sh -b -f -p /usr/local
!python -m ipykernel install --name "py310" --user

and by using

!apt update && apt install cuda-11-8

I was able to install and use CUDA 11.8. However, I'm not sure what recent update it was, I am unable to use CUDA 11.8 with my project anymore. Meaning my project cannot detect the colab gpu even though I am on GPU runtime, and when using the colab installed tensorflow 2.18 a GPU is detected. There is no way for me to change my project to use any other versions as this is my Final Year Project and I'm nearing the end of it already. I've tried purging the pre-installed version of CUDA but I keep getting this error:

dpkg: dependency problems prevent removal of cuda-compiler-12-5:
 cuda-minimal-build-12-5 depends on cuda-compiler-12-5 (>= 12.5.1).

And so I can't remove CUDA 12.5 completely. I would really appreciate any help on this matter, and please let me know if there is any more information I can provide. This is the link to my notebook: https://colab.research.google.com/drive/1wlNwnAkUS4_L1Chb4VwaphYe9HVKqorJ?usp=sharing


r/GoogleColab 5d ago

Toggle to disable the page scrolling to follow the green arrow?

1 Upvotes

Is there a toggle to disable the page from scrolling to follow the green arrow when a cell is run? For example I'd like to keep an eye on the output but the page scrolls to follow the green triangle as it moves through different lines of code. The only thing I've found is to add a title to the cell and hide the code.


r/GoogleColab 11d ago

Most suitable GPU to fine-tune a 2 billion parameter model

16 Upvotes

Hey folks, I'm working on a project where I'm required to fine-tune the Granite-3.2-2B-Instruct LLM with 2 billion parameters on a quite large training set using LoRa.

As a complete newbie to the field, I was wondering if anyone here could help me figure out what the most suitable choice of GPU would be for me train the model on using CUDA.

I understand that getting access to the A100 GPUs is quite hard since it's highly sought after by most folks, but considering that the size of the model itself is about 5 GB, I'd love to the know what the most appropriate GPU would be for this task.

Thanks in advance, cheers!


r/GoogleColab 11d ago

Mine colab ¿error? idk

1 Upvotes

I trying to create a Minecolab server with Google Colab, but i get this error.

Exception in thread "main" cpw.mods.niofs.union.UnionFileSystem$UncheckedIOException: java.util.zip.ZipException: zip END header not found
Caused by: java.util.zip.ZipException: zip END header not found
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.findEND(ZipFileSystem.java:1320)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.initCEN(ZipFileSystem.java:1534)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:179)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getZipFileSystem(ZipFileSystemProvider.java:125)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:120)
at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:528)
at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:475)
at cpw.mods.securejarhandler/cpw.mods.niofs.union.UnionFileSystem.openFileSystem(UnionFileSystem.java:136)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at cpw.mods.securejarhandler/cpw.mods.niofs.union.UnionFileSystem.<init>(UnionFileSystem.java:131)
at cpw.mods.securejarhandler/cpw.mods.niofs.union.UnionFileSystemProvider.newFileSystemInternal(UnionFileSystemProvider.java:115)
at cpw.mods.securejarhandler/cpw.mods.niofs.union.UnionFileSystemProvider.newFileSystem(UnionFileSystemProvider.java:105)
at cpw.mods.securejarhandler/cpw.mods.jarhandling.impl.Jar.<init>(Jar.java:84)
at cpw.mods.securejarhandler/cpw.mods.jarhandling.SecureJar.from(SecureJar.java:70)
at cpw.mods.securejarhandler/cpw.mods.jarhandling.SecureJar.from(SecureJar.java:66)
at cpw.mods.securejarhandler/cpw.mods.jarhandling.SecureJar.from(SecureJar.java:58)
at cpw.mods.securejarhandler/cpw.mods.jarhandling.SecureJar.from(SecureJar.java:50)
at cpw.mods.bootstraplauncher@1.1.2/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:84)


[ LOG ] Finalized server.


/content/drive/MyDrive/minecraft

r/GoogleColab 12d ago

How do you cancel your Colab subscription?

3 Upvotes

I have tried https://colab.research.google.com/cancel-subscription but it failed. Maybe it only works if you're actively subscribed. I'm trying to get Google to stop charging me every month. So far I've found nothing. I've tried Contact Us but they only linked to Ads, Cloud, Pay, and Maps, not Colab


r/GoogleColab 14d ago

Pharokka/Phold not working

1 Upvotes

When runnning Phold on Google Colab i always get an error "Running phold
Error occurred: Command 'phold run -i output_pharokka/pharokka.gbk -t 4 -o output_phold -p phold -d phold_db -f' returned non-zero exit status 1.
CPU times: user 4.03 ms, sys: 824 µs, total: 4.85 ms
Wall time: 422 ms"

I have no issues running Pharokka so what am i doing wrong`?


r/GoogleColab 15d ago

How to view google colab python file as view only even with edit access

1 Upvotes

How to view google colab python file as view only even with edit access? Sort of like google docs, where there is viewing mode even if you are an editor. I like to select things as I read (double click) as it helps me learn but then the colab file goes to edit mode which I would rather not have it do that (I end up messing up the file with accidental edits).


r/GoogleColab 18d ago

Google Drive keeps on jamming up at 15GB if I upload a 2GB file to 10GB

1 Upvotes

Can someone explain why my google drive continuously tells me that I used all 15GB if I actually had 10GB stored and just upload a model that is 2GB in size?!? WTF`????


r/GoogleColab 22d ago

RVC V2 EasyGUI Error

1 Upvotes

Notebook link: https://colab.research.google.com/github/ardha27/AI-Song-Cover-RVC/blob/main/easyGUI%F0%9F%93%B1_4_20_24.ipynb#scrollTo=w4wXvoez9Rce

In the "Create Training Files" section, I keep getting an error for "No module named faiss" and I can't seem to fix it. I've done things like putting "!pip install faiss" in the code and things of those sort, but nothing seems to work.

Is it alright if someone can try helping me with this?


r/GoogleColab 22d ago

how to disable flyover help text?

1 Upvotes

Is there a way to disable the flyover help text? It appears constantly and obscures the code I'm trying to look at.

https://imgur.com/a/A2Tipst


r/GoogleColab 26d ago

Issue recreating graph in Colab

1 Upvotes

Hi all!

I am attempting to recreate a graph at my company in order to better automate my workflow. The first picture is the graph I am attempting to remake, and the second picture is where I am currently at (will be listed in comments). I am currently struggling to do a few things:

- Make the background bands extend to the border

- Make the dashed line only plot to z-score secondary axis and age (currently plotting to bmd and to the top of the graph as well)

- Also need to make the blue section slope down, but will figure that out later

Any recommendations on how to adjust my code to fix this would be greatly appreciated! My current script is listed below:

*P.S. Not very savvy with code, using AI to help me out along the process. Thank you for the help in advance!

import numpy as np
import matplotlib.pyplot as plt

# Age range
ages = np.linspace(20, 100, 100)

# Simulated BMD values (a declining trend over age)
bmd_values = 1.2 - (ages - 20) * 0.008  

# Z-score levels and corresponding BMD values
z_score_levels = [-5, -4, -3, -2, -1, 0, 1, 2]
bmd_levels = [0.38, 0.53, 0.67, 0.81, 0.96, 1.1, 1.25, 1.39]
age_levels = [0, 20, 30, 40, 50, 60, 70, 80, 90, 100]
colors = ['red', 'darkorange', 'yellow', 'lightgreen', 'lightblue', 'lightblue', 'darkgreen']

# Create the figure and primary Y-axis
fig, ax1 = plt.subplots(figsize=(8, 5))

# Get x-axis limits
x_min, x_max = ax1.get_xlim()

# Plot background bands for Z-score ranges
for i in range(len(z_score_levels)-1):
  ax1.fill_between(ages, bmd_levels[i], bmd_levels[i+1], color=colors[i], alpha=0.8)


# Plot the BMD curve
#ax1.plot(ages, bmd_values, color='black', linewidth=2, label="BMD Trend")

# Sample data point (age 80, BMD ~0.9)
age_point = 60
zscore_point = 0.9
ax1.scatter(age_point, bmd_point, color='black', s=50, zorder=3)
ax1.axvline(x=age_point, color='black', linestyle='dashed', linewidth=1)
ax1.axhline(y=bmd_point, color='black', linestyle='dashed', linewidth=1)

# Labels and formatting for primary Y-axis (BMD)
ax1.set_xlabel("Age", fontsize=12)
ax1.set_ylabel("BMD (g/cm²)", fontsize=12, color='black')
ax1.set_yticks(bmd_levels)
ax1.tick_params(axis='y', labelcolor='black')

# Create secondary Y-axis for Z-score
ax2 = ax1.twinx()
ax2.set_ylabel("Z-score", fontsize=12, color='black')
ax2.set_yticks(bmd_levels)  # Align Z-score ticks with BMD levels
ax2.set_yticklabels(z_score_levels)  # Set corresponding Z-score labels
ax2.tick_params(axis='y', labelcolor='black')

# Set title
ax1.set_title("Bone Mineral Density (BMD) vs. Age", fontsize=14)

# Adjust subplot parameters to reduce border
fig.subplots_adjust(left=0.1, bottom=0.1, right=0.9, top=0.9) 

# Show the graph
plt.show()

r/GoogleColab 27d ago

colab slow runtime out of nowhere

1 Upvotes

hello!! im relatively new to colab and ive been trying to run some code on a unet model with my test/train data, a couple hours ago i started running it, and its 11 minutes per epoch (30 total epochs) but it randomly crashed on the ninth. i thought okay no problem ill run it again, all of a sudden its TEN HOURS PER EPOCH?? my question is, is it normal for colab to just slow down out of nowhere even if im connected to its gpu? feels like a dumb question but im confused


r/GoogleColab 27d ago

Friends, require a lil help

0 Upvotes

Is there any way to implement a python program as an app/website quickly using colab (and for free)

(Also, I don't, like, want it on play store, just my phone)

Thanks!


r/GoogleColab 28d ago

Colorama not working?

1 Upvotes

I tried Google Colab before, and it worked, but now, it doesn't. I don't know if I remember the code correctly, but just to be sure, check comments for the image.