Comments (2)
I did not try the additional context block, but running the code above on my machine without these lines works perfectly fine (the Hey Hey is displayed as expected)
if killswitch:
breakpoint()
If I don't remove that block the program fails on my Python 3.10 env (even if the breakpoint is never reached).
Some further things we can look at to debug:
What env variable are you setting, if any?
What cuda version / pytorch version do you have? Does the cuda of your PT match the cuda on the machine?
from rl.
tl;dr seems to either be a WSL2-Debian OR a Python 3.11 quirk. Very interesting.
Part 1
My bad, I should have specified that I was on WSL2-Debian.
Here's some information regarding that:
Debian Version
> python3 -c "import sys, torch, torchrl, tensordict; print(sys.version, torch.__version__, torchrl.__version__, ten
sordict.__version__)"
3.11.9 (main, Jun 5 2024, 10:27:27) [GCC 12.2.0] 2.3.0+cu121 0.4.0 0.4.0
> lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
PS C:\Windows\system32> (get-item C:\windows\system32\wsl.exe).VersionInfo.FileVersion
10.0.19041.3636 (WinBuild.160101.0800)
Part 2
Strange. I am now using Python 3.10 on a different (single-boot Ubuntu) machine, but I cannot reproduce the bug either.
This is my Python environment:
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> import torchrl
>>> import tensordict
>>> torch.__version__, torchrl.__version__, tensordict.__version__
('2.3.0+cu121', '0.4.0', '0.4.0')
What cuda version / pytorch version do you have? Does the cuda of your PT match the cuda on the machine?
Both of my machines use the CUDA that comes with PyTorch.
What env variable are you setting, if any?
The offending files do not have any special environment variables set.
from rl.
Related Issues (20)
- [Discussion] Remember TorchRL: the state of memory in TorchRL HOT 15
- [BUG] `InitTracker` key flexibility HOT 2
- [BUG] Issues with `TensorDictPrimer` HOT 9
- [BUG] Surprising `MLP` default behavior HOT 2
- [BUG] Collector `set_truncated` overwrites environement done
- [BUG] `TensorDictPrimer` overwrites nested specs in the environemnt
- [BUG] SAC Loss reshapes tensordict causing loss of time dimension
- [BUG] CUDA out-of-memory issue when creating a custom game environment with MultiaSyncDataCollector HOT 4
- [Feature Request] Inverse of `VecNorm` Transform HOT 1
- [Feature Request] `break_when_all_done` in `env.rollout()`
- [Feature Request] Partial steps in env
- [Feature Request] MCTS Issue tracker
- [BUG] Clarify non-opitionality of `TensordictPrimer`
- [BUG] Documentation of BinaryDiscreteTensorSpec can be confusing HOT 2
- [Feature Request] Make GymLikeEnv compatible with IsaacLab Envs HOT 1
- [Feature Request] `EarlyStopping` for `torchrl.trainers.Trainer`
- [Feature Request] Metadata for specs HOT 2
- [BUG] Calculation of GAE fails with recurrent critic HOT 1
- [BUG] dumps() failing on ReplayBuffer with LazyMemmapStorage HOT 1
- [Feature Request] Extend TDLambdaEstimator with QLambdaEstimator
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 rl.