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

memory requirement #67

Open
zz8615 opened this issue Jan 24, 2024 · 2 comments
Open

memory requirement #67

zz8615 opened this issue Jan 24, 2024 · 2 comments

Comments

@zz8615
Copy link

zz8615 commented Jan 24, 2024

i am trying to train the model using 2 Telsa V100. I have changed the batch_size to 1 but it still tells me it is out of memory. Is this expected? Thanks!

@XavierCHEN34
Copy link
Collaborator

You coul use "ddp_sharded", which requires smaller memories
trainer = pl.Trainer(gpus=1, strategy="ddp_sharded", precision=16, accelerator="gpu", callbacks=[logger], progress_bar_refresh_rate=1)

@mo230761
Copy link

Hello,I would like to ask if the code can run using this method. Thank you!

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

3 participants