Comments (1)
Hello,
Thank you for your attention and inquiry.
-
The steady increase in process memory is primarily due to the continuous addition of collected data into the replay buffer, causing the memory occupation of the replay buffer to rise persistently. We can make a rough estimate:
12*96*96/1024/1024/1024*1e6 ≈ 103GB
. Here,1e6
is the default capacity/size of the replay buffer. -
You can indeed control memory usage by modifying the configuration settings.
- Firstly, we recommend using grayscale images, which reduces memory usage by a factor of 3. Previous experiments have shown that this change will hardly affect performance negatively.
- Secondly, you may consider reducing the size of the replay buffer. However, please note that this may slightly decrease the performance of the algorithm, and the specific impact would depend on your environment and algorithm settings.
- Furthermore, you can consider using a more efficient data storage format, such as converting images into strings for storage. You can add "transform2string=True, gray_scale=True," to the policy field in the configuration. However, please note that this feature is currently under development, and we highly welcome your contribution.
If the above methods cannot solve the problem, you might need to consider increasing the memory capacity of your system.
Best wishes.
from lightzero.
Related Issues (20)
- Does LightZero currently support compilation on Windows? HOT 3
- Replicating multi-GPU EfficientZero Atari results HOT 1
- how to well model a grid env when it changes frequently? HOT 9
- Minigrid environment HOT 1
- Great!!! HOT 1
- Running a trained agent HOT 2
- Hyperparameter of Muzero and reproducibility of the results HOT 2
- Render and plot results: is there a code snippet? HOT 1
- Bad performance on long run on MsPacman and SpaceInvaders HOT 10
- Instillation Failure on Mac (Spyder) HOT 3
- Could you provide detail code example to customize the env and algo that can run successfully in a entire file? HOT 7
- Clipping reward in Atari while using invertible transform for reward and value target HOT 2
- Issues related to the operating environment HOT 4
- Clarification on the relationship between num_unroll_steps and infer_context_length in UniZero HOT 9
- Need Help with Storing and Using Best Checkpoint with ONNX Model in LightZero HOT 1
- Unexpected performance drop after resuming UniZero training HOT 3
- Implementation of Self-Play Training for Real-Time Environments HOT 2
- Flexible Input Image Size Support for UniZero: Implementation Timeline and Contribution Opportunity HOT 5
- Inquiry about Commented Out Loss Calculations in UniZero Implementation HOT 2
- Unexpected Negative Values for Perceptual Loss in UniZero Implementation HOT 3
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 lightzero.