Comments (3)
Problems solved for now! In case people might encounter a similar issue,
If you use single node multiple GPU, replace the DDP with the following, there is a hacky way,
from torch.nn import DataParallel as DDP
Or you can try the following
torch.multiprocessing.set_start_method('spawn',force=True)
but you might need to rewrite the lambda function to avoid the pickle issue.
from dit.
Hi @NathanYanJing. Your torchrun
command runs fine for me without any modifications to the code (also using a single-node, multi-GPU training setup). I haven't run across the error you're getting before. Depending on how you're launching the script, you might want to be a little careful with the DDP --> DataParallel change since that could change the behavior of parts of train.py
that rely on distributed ops (in general I'm not sure if DataParallel
plays nice with torch.distributed
)
from dit.
Hi @wpeebles , thanks for your reply! Yea, I agree with using torch.distributed is always a better choice.
Yes, it seems the problem comes back again somehow now -- it hangs at Dataloader part. I am guessing that this is probably NCCL and Nvidia-version issue. Would you mind sharing your NCCL and Cuda versions?
from dit.
Related Issues (20)
- [Question] Why DiT-XL/2 takes 119 GFlops to generate 256x256 images? HOT 3
- Giving Prompt instead of classes HOT 1
- Prompt-conditioning model instead of class-conditioning HOT 5
- RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling cublasLtMatmul
- How do you calculate flops? HOT 4
- image generation label doesn't match validation label
- How to condition on an image? HOT 2
- sample_ddp failed (CUDA error: device-side assert triggered) HOT 5
- Request to adapt to Ascend NPU
- possible bug for sampling script: y_null = torch.tensor([1000] * n) HOT 1
- time embedding use cat[cos, sin]
- Bugs Fixing and Supporting for Multi-nodes HOT 5
- Green image during inference.
- Clarification on Zero Initialization in FinalLayer of DiT Model HOT 2
- Do the pre-trained DiT chekpoints contain EMA weights? HOT 1
- DiT results on CIFAR10 HOT 3
- training batch
- Performance for patch size = 1
- about fused_attention
- The model could not be fitted if not predict xstart HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dit.