#๐ CUDA error
45 messages ยท Page 1 of 1 (latest)
@orchid phoenix
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
650-ish MB of data and 280 M parameters.
It shouldn't be a oom error either
i have tried clearing cache.
There is no version mismatch.
Yes, the gpu is available (43-ish gigs approx. therefore no oom).
No other running processes.
- what GPU ar you using? (specifically how much VRAM do you have?)
- how big is your dataset?
- how are you training the model? (paste code if possible)
- h100 (43 gigs)
- 600 MB (6200 256x256 images)
i don't think its a code level issue, because it runs on my other pc but not on this particular one
or maybe i fucked somethin up, what do you think
Have you tried checking nvidia-smi / nvtop as it's running?
thats the thing it doesnt run
it just gives me the total batch no. with tqdm and just stops
this thing
you are right, if i am fast enough with the spam
๐ฅด I'm pretty sure you can pass a command line arg to auto refresh
yep. didnt think, sorry
But either way, we know the oom is real
alright man, thanks for the help. i really appreciate it
Np I used to do that too lol
Maybe the code isn't deallocating memory somewhere?
you think 285m param and 600 mb ish data needs only 15-20ish gigs of vram ?
Are the images stored as RGB floats?
2 channels normalized b/w 0-1
FP32 precision
its just the train fn tho not the entire architecture that cool ?
It can't hurt to add more
Though I doubt I'll understand any of it :p
Check how much vram each .to() is consuming with torch.cuda.memory_allocated(config.device)
that should give a rough idea of where all the memory is going
lmao wtf
IT dies here
cycle_encrypted = gen_E(fake_original)
cycle_original = gen_O(fake_encrypted)
cycle_encrypted_loss = l1(encrypted, cycle_encrypted)
cycle_original_loss = l1(original, cycle_original)
allocated_memory_bytes = torch.cuda.memory_allocated(config.device)
allocated_memory_gb = allocated_memory_bytes / (1024 ** 3)
print(f"Memory allocated on {config.device}:{allocated_memory_gb:.2f} GB")
print('cycle loss')
@thorny pine
.
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.