Comments (4)
I have the same issue and solved it by just reloading the whole model on every iteration.
Though now I am getting oom due to the memory not freeing after the second epoch, but I guess that is a different issue.
from deepspeed.
@Xirid, please try the following API to free engine memory
https://deepspeed.readthedocs.io/en/latest/zero3.html#gpu-memory-management
from deepspeed.
我也遇到了在 for 循环中创建新的数据集和新的训练器,然后调用trainer.train()。
在 for 循环的第一次迭代中,训练工作正常。然而,在第二次迭代中,报错为错误: AttributeError: 'NoneType' object has no attribute 'numel'
尝试释放GPU,但没有用,释放GPU如下:# Free GPU memory consumed by model parameters
ds_engine.empty_partition_cache()
from deepspeed.
Closing this issue due to lack of response. Please reopen if needed.
from deepspeed.
Related Issues (20)
- [BUG] Deepspeed ZeRO3 not partitioning model parameters HOT 7
- [BUG] Universal checkpoint conversion failed HOT 5
- [BUG] In deepspeed Zero3, RuntimeError: still have inflight params HOT 3
- [BUG] Training time regression with ZeRO-3 after upgrade to torch 2.3.1 and CUDA 12.1 HOT 2
- [BUG] 'trust_remote_code' needs to be set to True or atleast a method to pass this information as required. HOT 1
- [BUG] deepspeed.utils.safe_get_full_grad get all nan value
- [REQUEST] can we load a deepspeed ckpt without deepspeed? HOT 6
- [BUG] Gradient accumulation causing training loss differences in Deepspeed vs FSDP
- Unable to install DeepSpeed using "pip install deepspeed" command in Windows 11 HOT 9
- nv-nightly CI test failure HOT 1
- [BUG] Circular import error with PyTorch nightly HOT 2
- [BUG] Bad compatibility check by testing the existence of a CHANGELOG.md file which is not always available depending on the way of CUTLASS library installation
- [BUG] Trainer saves global_steps300 in LoRA training with deepspeed
- Inference acceleration doesn't work
- [BUG] `reduce_bucket_size` influences training convergence of Zero2 HOT 2
- [BUG] AVX2 support for AdamCPU with DeepSpeed 0.14.2
- [BUG] Getting this error: NotImplementedError: Cannot copy out of meta tensor; no data!
- [BUG] How to manipulate the gradient during training
- [BUG] Logits are always ZERO(0) at first pass when using ZERO++
- [REQUEST]Can we reload the model parameters after deepspeed.initialize?
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 deepspeed.