Models About & Code

Standalone App & PWA

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.

Open arcade.webai.show ↗

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

Hopper episode 1, step 0: standing start at height 1.25 m, forward velocity 0.00 m/s, target Return-to-Go 3600, awaiting Decision Transformer policy execution.

6-DOF Articulated Planar Hopper · RK2 substeps (dt = 8 ms) · Joint Gear 200 N·m Keys: Space Run/Pause · N Step · R Reset · P Push · C Compare
Episodic Reward 0.0
Forward Velocity +0.00 m/s
Height Stability 1.25 m
Track Distance 0.00 m
Worker · 0 NaN Not loaded

Reward, Velocity & Height

Rolling 160 steps
Reward Velocity vx Height z Low-RTG Compare

Sequence-Window Heatmap

K = 20 × 3 hidden norm
RTG R_t State s_t Action 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.

Model: onnx-community/decision-transformer-gym-hopper-expert (4.60 MB fp32 · MIT upstream Decision Transformer / Apache-2.0 Transformers implementation · 0 server calls).

3-Joint Torque Gauges

action_preds ∈ [-1, +1]
Thigh / Hip (a₀) +0.000 (+0 N·m)
Leg / Knee (a₁) +0.000 (+0 N·m)
Foot / Ankle (a₂) +0.000 (+0 N·m)

Return Conditioning & Physics

Live mid-stride tuning
3600 (scaled 3.60)

Conditioning prompt divided by scale = 1,000 before entering the transformer.

+0 N

Horizontal aerodynamic force on torso (negative = headwind, positive = tailwind).

1.00× (9.8 m/s²)

Scales vertical acceleration from 0.50× lunar arcs to 1.50× heavy gravity.

1.00×

Scales foot Coulomb traction (base μ = 2.0 from Gymnasium hopper.xml).

On-Device RL Model & Runtime Diagnostics

Execution Backend CPU WASM (shared Transformers.js 3.7.5)
Tensor I/O Signature 5 inputs · 4 outputs · K = 20
Canvas Accessibility Live DOM fallback active
Numeric Integrity 0 NaN · 0 pushes

How Neural RL Policy Sandbox Works

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 extraction
Show the code — Exact 6×6 mass-matrix solver & analytical link Jacobians
Show the code — Articulated Hopper capsule, joint torque arc & GRF canvas renderer
Show the code — Live Reward, Velocity & Height multi-trace sparkline renderer
Show the code — Real K=20 × 3 Decision Transformer Sequence-Window Heatmap renderer

Export Episode Trajectory & Telemetry

Download OWASP formula-safe CSV trajectories, a vector SVG telemetry chart, or full replayable JSON.

Run or step the policy to capture episode telemetry.