python3Packages.tensordict: 0.8.3 -> 0.9.0 (#423963)

authored by Gaétan Lepage and committed by GitHub 0bdc43c9 df0503c8

+80 -13
+10
pkgs/development/python-modules/gymnasium/default.nix
··· 15 pythonOlder, 16 importlib-metadata, 17 18 # tests 19 array-api-compat, 20 dill, ··· 53 numpy 54 typing-extensions 55 ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; 56 57 pythonImportsCheck = [ "gymnasium" ]; 58
··· 15 pythonOlder, 16 importlib-metadata, 17 18 + # optional-dependencies 19 + # atari 20 + ale-py, 21 + 22 # tests 23 array-api-compat, 24 dill, ··· 57 numpy 58 typing-extensions 59 ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; 60 + 61 + optional-dependencies = { 62 + atari = [ 63 + ale-py 64 + ]; 65 + }; 66 67 pythonImportsCheck = [ "gymnasium" ]; 68
+2 -2
pkgs/development/python-modules/tensordict/default.nix
··· 28 29 buildPythonPackage rec { 30 pname = "tensordict"; 31 - version = "0.8.3"; 32 pyproject = true; 33 34 src = fetchFromGitHub { 35 owner = "pytorch"; 36 repo = "tensordict"; 37 tag = "v${version}"; 38 - hash = "sha256-d/6JKGFcFLXY9pxsnP27uwnAnIQ9EKvfTS30DCwQrCM="; 39 }; 40 41 build-system = [
··· 28 29 buildPythonPackage rec { 30 pname = "tensordict"; 31 + version = "0.9.0"; 32 pyproject = true; 33 34 src = fetchFromGitHub { 35 owner = "pytorch"; 36 repo = "tensordict"; 37 tag = "v${version}"; 38 + hash = "sha256-actBFzWb2JBPsLhRZiD6zRpk7eyX2OHUPMU9JpJ90Wc="; 39 }; 40 41 build-system = [
+68 -11
pkgs/development/python-modules/torchrl/default.nix
··· 17 torch, 18 19 # optional-dependencies 20 - ale-py, 21 - gym, 22 - pygame, 23 - torchsnapshot, 24 gymnasium, 25 mujoco, 26 h5py, 27 huggingface-hub, 28 minari, ··· 32 scikit-learn, 33 torchvision, 34 tqdm, 35 moviepy, 36 git, 37 hydra-core, 38 tensorboard, ··· 48 49 buildPythonPackage rec { 50 pname = "torchrl"; 51 - version = "0.8.1"; 52 pyproject = true; 53 54 src = fetchFromGitHub { 55 owner = "pytorch"; 56 repo = "rl"; 57 tag = "v${version}"; 58 - hash = "sha256-ANoqIAVKSq023hG83Q71t8oLzud1LeVN5WVPYL3nOks="; 59 }; 60 61 build-system = [ ··· 73 ]; 74 75 optional-dependencies = { 76 - atari = [ 77 - ale-py 78 - gym 79 - pygame 80 - ]; 81 checkpointing = [ torchsnapshot ]; 82 gym-continuous = [ 83 gymnasium 84 mujoco 85 ]; 86 offline-data = [ 87 h5py 88 huggingface-hub ··· 131 ] 132 ++ optional-dependencies.atari 133 ++ optional-dependencies.gym-continuous 134 ++ optional-dependencies.rendering; 135 136 disabledTests = 137 [ 138 # torchrl is incompatible with gymnasium>=1.0 139 # https://github.com/pytorch/rl/discussions/2483 140 "test_resetting_strategies" ··· 193 # AssertionError: assert tensor([51.]) == ((5 * 11) + 2) 194 "test_vecnorm_parallel_auto" 195 ]; 196 197 meta = { 198 description = "Modular, primitive-first, python-first PyTorch library for Reinforcement Learning";
··· 17 torch, 18 19 # optional-dependencies 20 + # atari 21 gymnasium, 22 + # checkpointing 23 + torchsnapshot, 24 + # gym-continuous 25 mujoco, 26 + # llm 27 + accelerate, 28 + datasets, 29 + einops, 30 + immutabledict, 31 + langdetect, 32 + nltk, 33 + playwright, 34 + protobuf, 35 + safetensors, 36 + sentencepiece, 37 + transformers, 38 + vllm, 39 + # offline-data 40 h5py, 41 huggingface-hub, 42 minari, ··· 46 scikit-learn, 47 torchvision, 48 tqdm, 49 + # rendering 50 moviepy, 51 + # utils 52 git, 53 hydra-core, 54 tensorboard, ··· 64 65 buildPythonPackage rec { 66 pname = "torchrl"; 67 + version = "0.9.1"; 68 pyproject = true; 69 70 src = fetchFromGitHub { 71 owner = "pytorch"; 72 repo = "rl"; 73 tag = "v${version}"; 74 + hash = "sha256-afaWDX5lIAoGTfrBSqrktYoA1S4hv6ogBaKYHc8dQ6E="; 75 }; 76 77 build-system = [ ··· 89 ]; 90 91 optional-dependencies = { 92 + atari = gymnasium.optional-dependencies.atari; 93 checkpointing = [ torchsnapshot ]; 94 gym-continuous = [ 95 gymnasium 96 mujoco 97 ]; 98 + llm = [ 99 + accelerate 100 + datasets 101 + einops 102 + immutabledict 103 + langdetect 104 + nltk 105 + playwright 106 + protobuf 107 + safetensors 108 + sentencepiece 109 + transformers 110 + vllm 111 + ]; 112 offline-data = [ 113 h5py 114 huggingface-hub ··· 157 ] 158 ++ optional-dependencies.atari 159 ++ optional-dependencies.gym-continuous 160 + ++ optional-dependencies.llm 161 ++ optional-dependencies.rendering; 162 163 disabledTests = 164 [ 165 + # Require network 166 + "test_create_or_load_dataset" 167 + "test_from_text_env_tokenizer" 168 + "test_from_text_env_tokenizer_catframes" 169 + "test_from_text_rb_slicesampler" 170 + "test_generate" 171 + "test_get_dataloader" 172 + "test_get_scores" 173 + "test_preproc_data" 174 + "test_prompt_tensordict_tokenizer" 175 + "test_reward_model" 176 + "test_tensordict_tokenizer" 177 + "test_transform_compose" 178 + "test_transform_model" 179 + "test_transform_no_env" 180 + "test_transform_rb" 181 + 182 + # ray.exceptions.RuntimeEnvSetupError: Failed to set up runtime environment 183 + "TestRayCollector" 184 + 185 # torchrl is incompatible with gymnasium>=1.0 186 # https://github.com/pytorch/rl/discussions/2483 187 "test_resetting_strategies" ··· 240 # AssertionError: assert tensor([51.]) == ((5 * 11) + 2) 241 "test_vecnorm_parallel_auto" 242 ]; 243 + 244 + disabledTestPaths = [ 245 + # ERROR collecting test/smoke_test.py 246 + # import file mismatch: 247 + # imported module 'smoke_test' has this __file__ attribute: 248 + # /build/source/test/llm/smoke_test.py 249 + # which is not the same as the test file we want to collect: 250 + # /build/source/test/smoke_test.py 251 + "test/llm" 252 + ]; 253 254 meta = { 255 description = "Modular, primitive-first, python-first PyTorch library for Reinforcement Learning";