thu-ml/tianshou
An elegant PyTorch deep reinforcement learning library. observed · 2026-08-28
Health v2 · maintenance only
72/100
- Activity 75
- Release rhythm 53
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 141.0
- age_days: 3061
- days_rel: 153
- days_push: 152
- n_releases_24m: 3
Adoption not part of the score
10943 stars · 1333 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Tianshou is a modular, high-performance deep reinforcement learning library built on pure PyTorch and Gymnasium. It offers both low-level hackable interfaces for RL researchers and high-level APIs for training agents, covering online, offline, and experimental multi-agent and model-based RL.
Use cases
- train a deep RL agent on a custom Gymnasium environment
- implement and benchmark policy gradient algorithms like PPO or SAC
- run offline RL experiments with CQL or BCQ
- prototype new RL algorithms with modular PyTorch components
- train DQN variants on Atari environments
- apply imitation learning such as GAIL or behavior cloning
When to choose
- you want a fast, pure-PyTorch RL library with clean, type-safe APIs
- you need broad algorithm coverage across on-policy, off-policy, and offline RL
- you are an RL researcher who needs hackable modular interfaces
- you want well-documented trainers for custom environments
When to avoid
- you need TensorFlow-based RL tooling
- you need production multi-agent RL support (still experimental)
- you depend on Tianshou v1 APIs, since v2 is not backwards compatible
- you want a turnkey RL platform with no coding
Facets
library · maturity active
machine-learning reinforcement-learning deep-learning reinforcement-learning machine-learning deep-learning python cross-platform pytorch gymnasium dqn ppo sac offline-rl imitation-learning multi-agent-rl
3 sources
- readme: https://github.com/thu-ml/tianshou · fetched 2026-08-28 · f9b1fd7d2676
- homepage: https://tianshou.org · fetched 2026-08-29 · ba01ce393d88
- registry_pypi: https://pypi.org/pypi/tianshou/json · fetched 2026-08-29 · aa2a2d9d6618
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| thu-ml/tianshou | main | 72 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem