$npx skillfedfor your agent

tensordict-nightly

TensorDict is a pytorch dedicated tensor container.

Worth itPyPI Artificial IntelligenceReleased Aug 2026188.5K downloads / moBSDPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — tensordict_nightly-2026.8.14-cp310-cp310-macosx_11_0_universal2.whl · tensordict_nightly-2026.8.14-cp310-cp310-manylinux1_x86_64.whl · tensordict_nightly-2026.8.14-cp310-cp310-manylinux_2_28_aarch64.whl
v2026.8.14 · released 2026-08-14 · Python >=3.10 · 7 runtime deps: torch, numpy, cloudpickle, packaging, importlib_metadata, orjson, pyvers

Yes. TensorDict is actively maintained, has no known vulnerabilities, and is widely used in PyTorch RL and training systems. Install the nightly release if you are comfortable with frequent updates; otherwise, wait for a stable release. It is worth installing if you work with structured tensor batches and want to eliminate manual dimension tracking and repetitive tensor operations.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires PyTorch (torch) and modern Python (3.10+); compiled wheels available for common platforms.
  • Nightly release with active maintenance (last commit 2026-08-14) and broad platform coverage across Python 3.10–3.14 on macOS, Linux, and Windows.
  • Medium install friction due to compiled wheels; no known vulnerabilities.

License · maintenance · safety

BSD (permissive) — BSD permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-08-14 (0 days) · last repo commit 2026-08-14 · 1,034 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 188,521 downloads/mo, #9,942 on PyPI

Verify before relying

pip install tensordict-nightly

import torch
from tensordict import TensorDict

batch = TensorDict(
    {"obs": torch.randn(32, 128), "action": torch.randint(0, 4, (32,))},
    batch_size=[32],
)
mini = batch[:8]  # slices all leaves
on_device = batch.to("cuda")  # moves all leaves
  • Whether nightly releases receive the same stability guarantees as stable releases
  • Performance overhead of TensorDict operations compared to manual tensor handling in specific workloads
Same gist for agents: .md · .json

What it is and what it does

TensorDict is a container that wraps multiple PyTorch tensors into a single batched, nested structure while preserving tensor semantics. Instead of manually managing a collection of tensors with aligned batch dimensions, you create a TensorDict once and then slice, reshape, move to device, or perform arithmetic on the entire structure as if it were a single tensor. Every operation applies uniformly to all leaf tensors, keeping the batch dimension honest.

It is designed for data-heavy PyTorch workflows—training loops, reinforcement learning rollouts, parameter ensembles, and offline datasets—where the natural unit of data is not one tensor but a structured collection. The package includes memory-mapped I/O, lazy stacking, functional parameter handling, and torch.compile support to reduce boilerplate and improve performance in large systems.

Use it for

  • Training loops where a single batch object flows through dataset, model, and loss without unpacking and repacking tensors.
  • Reinforcement learning environments that need to track nested state (agent policy, value, environment reward, done flags) with synchronized batch operations.
  • Offline datasets and replay buffers that benefit from memory-mapped storage and efficient slicing across many tensor leaves.
  • Functional training with parameter ensembles, where module weights are held in a TensorDict and swapped in and out of modules.
  • Multi-agent or hierarchical systems with nested data structures (e.g., agents.policy, env.reward) that need uniform batch semantics.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

TensorDict is actively maintained, has no known vulnerabilities, and is widely used in PyTorch RL and training systems. Install the nightly release if you are comfortable with frequent updates; otherwise, wait for a stable release. It is worth installing if you work with structured tensor batches and want to eliminate manual dimension tracking and repetitive tensor operations.

Install

tensordict-nightly on PyPI

Before you install

Nightly release with active maintenance (last commit 2026-08-14) and broad platform coverage across Python 3.10–3.14 on macOS, Linux, and Windows. Medium install friction due to compiled wheels; no known vulnerabilities.

Requires PyTorch (torch) and modern Python (3.10+); compiled wheels available for common platforms.

License in practice

BSD permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install tensordict-nightly

import torch
from tensordict import TensorDict

batch = TensorDict(
    {"obs": torch.randn(32, 128), "action": torch.randint(0, 4, (32,))},
    batch_size=[32],
)
mini = batch[:8]  # slices all leaves
on_device = batch.to("cuda")  # moves all leaves

Verify before relying

  • Whether nightly releases receive the same stability guarantees as stable releases
  • Performance overhead of TensorDict operations compared to manual tensor handling in specific workloads

Package facts

LicenseBSD permissive
Python supportSupports the current Python release >=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependencies
7 packages
torchnumpycloudpicklepackagingimportlib_metadataorjsonpyvers
MaintenanceActively maintained 0 days since the last release
Last repo commit
First released
Downloads188,521 / month, #9,942 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: tensordict_nightly-2026.8.14-cp310-cp310-macosx_11_0_universal2.whl; tensordict_nightly-2026.8.14-cp310-cp310-manylinux1_x86_64.whl; tensordict_nightly-2026.8.14-cp310-cp310-manylinux_2_28_aarch64.whl; tensordict_nightly-2026.8.14-cp310-cp310-win_amd64.whl; tensordict_nightly-2026.8.14-cp311-cp311-macosx_11_0_universal2.whl; tensordict_nightly-2026.8.14-cp311-cp311-manylinux1_x86_64.whl; tensordict_nightly-2026.8.14-cp311-cp311-manylinux_2_28_aarch64.whl; tensordict_nightly-2026.8.14-cp311-cp311-win_amd64.whl; tensordict_nightly-2026.8.14-cp312-cp312-macosx_11_0_universal2.whl; tensordict_nightly-2026.8.14-cp312-cp312-manylinux1_x86_64.whl; tensordict_nightly-2026.8.14-cp312-cp312-manylinux_2_28_aarch64.whl; tensordict_nightly-2026.8.14-cp312-cp312-win_amd64.whl; tensordict_nightly-2026.8.14-cp313-cp313-macosx_11_0_universal2.whl; tensordict_nightly-2026.8.14-cp313-cp313-manylinux1_x86_64.whl; tensordict_nightly-2026.8.14-cp313-cp313-manylinux_2_28_aarch64.whl; tensordict_nightly-2026.8.14-cp313-cp313-win_amd64.whl; tensordict_nightly-2026.8.14-cp314-cp314-macosx_11_0_universal2.whl; tensordict_nightly-2026.8.14-cp314-cp314-manylinux1_x86_64.whl; tensordict_nightly-2026.8.14-cp314-cp314-manylinux_2_28_aarch64.whl; tensordict_nightly-2026.8.14-cp314-cp314t-manylinux_2_28_aarch64.whl

Tags

Capabilities
batched tensor dictionarynested tensor container pytorchtensor batch operationsstructured tensor datapytorch tensor dictbatch-aware tensor structuretensor collection management
Topics
pytorch-ecosystemtensor-containersbatch-operations

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “batched tensor dictionary”

  • tensordict-nightlyTensorDict is a batched, nested dictionary container for PyTorch…
  • tensordictTensorDict is a batched, nested dictionary container that behaves…
  • opt-einsum-fxOptimizes PyTorch einsum operations and functions containing them by…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also tensordict · docarray · torchrl · torch · tensorly · rotary-embedding-torch · einops · linear-operator · torchao · pytorch-forecasting