Install Neural RL Policy Sandbox from its dedicated origin as an offline desktop or mobile
PWA with direct .json replay file_handlers and zero camera, microphone, or
geolocation permissions.
Honest cache note: browsers isolate Cache Storage per origin, so arcade.webai.show caches its
own 4.6 MB Decision Transformer ONNX weights independently from webai.show.
Decision Transformer · 4.6 MB CPU WASM
Model Pending (4.6 MB)
Step 0 · RTG 3600 (rem 3600) · K=0/20
6-DOF Articulated Planar Hopper · RK2 substeps (dt = 8 ms) · Joint Gear 200 N·mKeys: Space Run/Pause · N Step · R Reset · P Push · C Compare
Episodic Reward0.0
Forward Velocity+0.00 m/s
Height Stability1.25 m
Track Distance0.00 m
Worker · 0 NaNNot loaded
Reward, Velocity & Height
Rolling 160 steps
RewardVelocity vxHeight zLow-RTG Compare
Sequence-Window Heatmap
K = 20 × 3 hidden norm
RTG R_tState s_tAction a_t
Ready to run Decision Transformer Hopper-v3 locally (4.6 MB CPU WASM). Click Download & Run
Policy (4.6 MB) to start live closed-loop RL control.
Both Hoppers evaluate the live Decision Transformer from identical seeds. Notice the ~2.2× initial
knee-torque split at launch (step 0) before the D4RL expert-trained checkpoint converges toward its
learned limit-cycle gait once airborne.
Instead of learning a value function via Bellman backups, a Decision Transformer frames offline
reinforcement learning as causal sequence modeling over interleaved
(R_t, s_t, a_t) tokens — running the entire 3-layer GPT-2 policy locally in CPU WebAssembly
in ~2 ms per step.
1. 4.6 MB Decision Transformer
onnx-community/decision-transformer-gym-hopper-expert
(rev 338299d6, 4.60 MB fp32, shared Transformers.js 3.7.5 CPU WASM) runs inside a
dedicated FIFO module Web Worker, outputting finite 3-DOF torques in [-1, 1] and
last_hidden_state[1, 60, 128] for the live K=20 sequence heatmap.
2. 6-DOF Planar Hopper Physics
hopper-physics.mjs solves the 4-link articulated equations of motion
M(q) q̈ + C(q, q̇) + G(q) = τ + J_cᵀ F_contact + F_wind directly from Gymnasium
hopper.xml geometry (armature 1.0, gear 200 N·m, joint limits, RK2 2 ms substeps, spring-damper
heel/toe ground contact, and exact D4RL normalization constants).
3. Licensing & Provenance
Upstream Decision Transformer code (kzl/decision-transformer) is MIT licensed; the Hugging
Face Transformers DecisionTransformerModel implementation is Apache-2.0. The ONNX weights
convert edbeeching/decision-transformer-gym-hopper-expert trained on D4RL Hopper-v3 expert
trajectories. Zero external network calls occur after caching.
Show the code — Off-main-thread Decision Transformer load (Transformers.js 3.7.5 CPU WASM)Show the code — Causal K=20 tensor forward pass & hidden-state activation extractionShow the code — Exact 6×6 mass-matrix solver & analytical link JacobiansShow the code — Articulated Hopper capsule, joint torque arc & GRF canvas rendererShow the code — Live Reward, Velocity & Height multi-trace sparkline rendererShow the code — Real K=20 × 3 Decision Transformer Sequence-Window Heatmap renderer