google-colaboratory Questions

4

Solved

I am using a simple (not necessarily efficient) method for Pytorch model saving. import torch from google.colab import files torch.save(model, filename) # save a trained model on the VM files.d...
Eligible asked 4/6, 2018 at 7:19

2

Solved

First of all I am using Google colab for the work and I have downloaded nltk stopwords for English with following: nltk.download('stopwords') The download was successful [nltk_data] Downloading...
Lynch asked 14/12, 2018 at 2:56

2

Solved

Although I know I can install ColabTurtle to use Turtle on a Colab Notebook, I cannot figure out how. Could someone please give me an example on how to run Turtle codes on Colab?
Bravo asked 28/11, 2019 at 7:23

3

I'm trying to use aitextgen to finetune 774M gpt 2 on a dataset. unfortunately, no matter what i do, training fails because there are only 80 mb of vram available. how can i clear the vram without ...
Galliwasp asked 6/3, 2022 at 15:42

5

I am trying to run the notebook in google colab. I am wondering if there is way for me to know if the cell is run and how long it took to run the cell (in milliseconds)
Animus asked 17/6, 2021 at 16:49

3

While I'm trying to run pip install PyAudio, I'm seeing the following error: Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b...
Lussier asked 28/2, 2021 at 19:9

8

I am trying to run the following on Google Colab : !pip install torch_sparse At first, it seems to be working fine: Collecting torch_sparse Downloading https://files.pythonhosted.org/packages/9a/8...
Allium asked 27/4, 2021 at 14:30

5

Solved

Using custom fonts in matplotlib locally involves storing the .ttfs in the matplotlib/mpl-data/fonts/ttf/ folder, then calling mpl.font_manager._rebuild(), then setting mpl.rcParams['font.sans-seri...
Skirting asked 12/8, 2018 at 16:52

4

since several days, i can not connect to google drive in google colaboratory. here is the code, that before always worked: from google.colab import drive drive.mount('/content/gdrive/') I tried th...
Apulia asked 4/9, 2020 at 7:57

8

Solved

I have been working with the gymnasium environment for some weeks now and I had no problems with it in Google Colab by using this command in the notebook: pip3 install gymnasium[box2d] However, wit...
Climacteric asked 10/5, 2023 at 20:13

9

Has anyone figured out a way to keep files persisted across sessions in Google's newly open sourced Colaboratory? Using the sample notebooks, I'm successfully authenticating and transferring csv fi...
Espalier asked 9/11, 2017 at 4:43

5

I don't know why my 'start' pred won't work. I added some edits to pd.to_datetime but they didn't work. This is my code: pred = results.get_prediction(start=pd.to_datetime('2018-06-01'), dynamic=Fa...
Memorandum asked 27/10, 2019 at 15:13

8

I have done the following: !pip install pytorch_lightning -qqq import pytorch_lightning But get the following error: ImportError Traceback (most recent call last) <ipython-input-7-d883b15aac58&...
Subhuman asked 8/3, 2021 at 22:53

3

Solved

I have very slow upload speeds and upload also interferes with my download so I need to disable autosave in Colab.
Meetinghouse asked 2/10, 2019 at 18:56

6

I am using VQGAN+CLIP_(Zooming)_(z+quantize_method_with_addons).ipynb Google Repository and when I click the cell "Loading of libraries and definitions" It sent an error : ImportError Tra...

4

For example, if my current Colab instance is signed in as [email protected] Is it possible to get the name "myColab" in ipython? What is the command to do this? I want to do this becaus...
Ablaut asked 15/10, 2018 at 13:33

3

This is got a be one of the most or the most silly question in all stack overflow! But how do you copy/paste a cell in a COLABORATORY notebook? There is a "copy cell" option, but not &quo...
Eldreda asked 3/11, 2020 at 14:39

3

Solved

When I run the stable diffusion on colab https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/stable_diffusion.ipynb with no modification, it fails on the line from di...
Kingship asked 10/4, 2024 at 3:43

6

how to make directory on the google colab? I can not make the new directory on google driver on google colab?
Emmi asked 16/3, 2020 at 13:18

5

Solved

I am trying to show a gif file in google's colab.research. I was able to save the file in the directory with the following path name /content/BrowniamMotion.gif but I don't know how to show this GI...
Citarella asked 8/4, 2020 at 15:11

2

Solved

When I use colab i can see a combo message. Can i disable combo message? I just change Hardware acceleration None to GPU.
Asthenosphere asked 14/2, 2021 at 7:1

5

I found this problem running a neural network on Colab Pro+ (with the high RAM option). RuntimeError: CUDA out of memory. Tried to allocate 8.00 GiB (GPU 0; 15.90 GiB total capacity; 12.04 GiB alr...
Zasuwa asked 16/9, 2022 at 16:18

7

Solved

I know that I can call !ls to issue ls command to shell. But I want features like history or tab-completion. Is it possible to do so in Google Colab?
Gotthelf asked 13/12, 2019 at 8:27

10

Solved

I'm starting to play with Colaboratory but I've noticed that shift-tab doesn't pop up Docstrings for functions as it does in Jupyter. Is this functionality absent or just accessed some other way? ...
Xanthochroism asked 1/3, 2018 at 5:10

11

Solved

This is my first post and I am new to coding, so please let me know if you need more information. I have been running some AI to generate artwork and it has been working, but when I reloaded it the...

© 2022 - 2025 — McMap. All rights reserved.