Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA out of memory #10

Closed
Thanh-Binh opened this issue Dec 28, 2021 · 1 comment
Closed

CUDA out of memory #10

Thanh-Binh opened this issue Dec 28, 2021 · 1 comment

Comments

@Thanh-Binh
Copy link

I run
python3 train.py ETTm1 mytest --loader forecast_csv

and have got an error as follows.
Could you pls help me? thanks
##############################
Dataset: ETTm1
Arguments: Namespace(batch_size=8, dataset='ETTm1', epochs=None, eval=False, gpu=0, irregular=0, iters=None, loader='forecast_csv', lr=0.001, max_threads=None, max_train_length=3000, repr_dims=320, run_name='binh', save_every=None, seed=None)
Loading data... done
Traceback (most recent call last):
File "train.py", line 120, in
loss_log = model.fit(
File "/home/binh/experiments/ts2vec/ts2vec.py", line 137, in fit
loss.backward()
File "/home/binh/.local/lib/python3.8/site-packages/torch/tensor.py", line 245, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
File "/home/binh/.local/lib/python3.8/site-packages/torch/autograd/init.py", line 145, in backward
Variable._execution_engine.run_backward(
RuntimeError: CUDA out of memory. Tried to allocate 380.00 MiB (GPU 0; 3.82 GiB total capacity; 1.80 GiB already allocated; 254.62 MiB free; 2.25 GiB reserved in total by PyTorch)

@fffii
Copy link

fffii commented Oct 13, 2022

How did you solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants