Downloads · 30 days
7
8% of all-time downloads
hwihwalab/lunarlander-v3-d3qn
lunarlander-v3-d3qn is a reinforcement learning model from hwihwalab. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
[](https://huggingface.co/hwihwalab/lunarlander-v3-d3qn) [](https://huggingface.co/hwihwalab/lunarlander-v3-d3qn/blob/main/READMEKR.md) [](https://huggingface.co/spaces/hwihwalab/lunarlander-v3-d3qn) [](https://huggin…
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
92
Public
Repo size
439 KB
Likes
0
Public
Click a slice to open those files.
.pth439 KB · 91%
From the Hugging Face model README
“LunarLander-v3 D3QN // Mission Control: Autonomous Lunar Soft Landing & Aerospace Telemetry HUD | HWIHWA LAB
High-precision attitude stabilization, vertical velocity damping, and soft touchdown between lunar landing flags using Dueling Double Deep Q-Network (D3QN) and cold-gas RCS thruster physics.🏛️ Foundational Research Baseline: This project establishes the core algorithmic and mathematical foundation for Hwihwa Lab's advanced Tesla Roadster 180° Inversion Flip-Landing Study (D3QN & PPO).
🌐 Live Interactive Space | 📦 English Model Card | 🇰🇷 한국어 매뉴얼 | 🏎️ Roadster D3QN | 🎯 Roadster PPO”
Developed by Hwihwa Lab · AI × Automation × Aesthetics ✨
LunarLander D3QN Mission Control Deck is an advanced Dueling Double Deep Q-Network (D3QN) reinforcement learning system paired with a zero-scroll, real-time 3-column aerospace telemetry dashboard engineered for high-precision, stylish lunar touchdowns.
| Parameter | Specification & Achievement |
|---|---|
| Environment | Gymnasium Box2D LunarLander-v3 |
| Observation Space | 8-dimensional continuous state vector ($X, Y, V_x, V_y, \theta, \omega, \text{Leg}_L, \text{Leg}_R$) |
| Action Space | 4 discrete actions (0: IDLE, 1: LEFT THRUSTER, 2: MAIN THRUSTER, 3: RIGHT THRUSTER) |
| Algorithm | Dueling Double Deep Q-Network (D3QN) with Polyak Target Updates ($\tau = 0.001$) |
| Neural Architecture | Separated Value Stream ($8 \to 128 \to 128 \to 64 \to 1$) + Advantage Stream ($8 \to 128 \to 128 \to 64 \to 4$) with LayerNorm |
| Exploration ($\epsilon$) | $1.0$ (100%) $\to$ $0.05$ (5%) smooth decay schedule |
| Official Solved Benchmark | Average Score $\ge +200.0$ points |
| Peak Landing Score Achieved | +311.16 points (Substantially exceeds solved benchmark 🏆) |
shape_stylish_reward)Engineered as a 1536x762 zero-scroll, high-density aerospace flight telemetry dashboard (overflow: hidden; height: 100vh;).
+---------------------------------------------------------------------------------------------+
| 🚀 HEADER BAR : Brand | EPISODE (0/1000) | EXPLORATION (ε: 100%→5%) | BEST SCORE (+311.16) |
+------------------------------+-------------------------------+------------------------------+
| 👈 LEFT: FLIGHT HUD | 🛸 CENTER: SIMULATION STREAM | 👉 RIGHT: TRAINING ANALYTICS |
| - Attitude & Pitch Gyro | - High-FPS Apollo 2D Canvas | - 4 Stats (Score, SMA, etc.) |
| - Velocity Gauges (Vy, Vx) | - Mission Control Action Deck | - Chart 1: Reward & 100-MA |
| - Coordinates & Leg Sensors | - Autopilot / Manual / Train | - Chart 2: Epsilon Decay |
| - 4-Action DQN Q-Values | - Time Warp Speed Multipliers | - Chart 3: MSE Loss Progress |
| - Mission Avionics Specs | - Strict Quality Tiers Banner | - D3QN Architecture Specs |
+------------------------------+-------------------------------+------------------------------+
0: IDLE (COAST), 1: LEFT THRUSTER, 2: MAIN THRUSTER, 3: RIGHT THRUSTER.[▶ START MISSION]: Immediately initiates continuous autonomous flights (in Autopilot mode) or active flight control.[⏸ PAUSE], [🔄 RESET], [📥 LOAD BEST MODEL].🤖 AUTOPILOT (DEMO) (Default): Continuous autonomous landing showcase using the pre-trained D3QN checkpoint ($\epsilon=0.0$) across curated mission seeds with 100% touchdown success and a 1.2s celebration pause between flights.🎮 MANUAL FLIGHT: Interactive human keyboard flight simulator (W/A/D, Arrow keys, or Spacebar).⚡ LIVE TRAINING: Live reinforcement learning with dynamic epsilon decay ($1.0 \to 0.05$) and experience replay updates.1x, 2x, 5x, ⚡ MAX.PERFECT SOFT TOUCHDOWN! 🏆: Dead-center ($|X| \le 0.08$), ultra-soft descent ($|V_y| \le 0.35$), dual-leg contact.TOUCHDOWN SUCCESS! 🎉: Strictly on-pad between flags ($|X| \le 0.20$), safe descent ($|V_y| \le 0.55$), leg contact.OFF-PAD LANDING (OUT OF BOUNDS) ⚠️: Safe upright resting, but outside the designated landing pad flags.CRASH DETECTED 💥: Excessive touchdown impact, capsized orientation, or hull collision.CURRENT SCORE, SMA 100 AVG, SUCCESS RATE (%), TRAINING LOSS.EPISODE REWARD & 100-MA (Solved Threshold: > 200.0)EPSILON (100% → 5% DECAY) (Exploration decay curve)MSE LOSS PROGRESSION (Neural network loss trajectory)🎮 MANUAL FLIGHT Mode)| Key Binding | Flight Action |
|---|---|
↑ / W / Space | Fire Main Engine Thruster (Ascend & Decelerate Descent) |
← / A | Fire Left Thruster (Tilt Right / Move East) |
→ / D | Fire Right Thruster (Tilt Left / Move West) |
| Release Key | Engine Idle / Free Coast |
python run.py
Open your browser and navigate to http://localhost:8000 to access the real-time aerospace control deck.
python dqn_lunalander.py --cli-train
python deploy_to_hf.py
You can load and evaluate this pre-trained agent in 5 lines of Python:
import torch, gymnasium as gym
from dqn_agent import DQNAgent
# 1. Initialize environment & agent
env = gym.make("LunarLander-v3", render_mode="human")
agent = DQNAgent(state_size=8, action_size=4)
agent.load("models/best_model.pth")
# 2. Run greedy landing evaluation
state, _ = env.reset()
done = False
while not done:
action, _ = agent.act(state, eps=0.0)
state, reward, terminated, truncated, _ = env.step(action)
done = terminated or truncated
env.close()
best_model.pth: Pretrained PyTorch Dueling Double DQN neural network weights (+311.16 score).config.json: Model architecture, state/action specifications, and hyperparameter configuration.dqn_agent.py: Standalone PyTorch implementation of DQNAgent and DuelingQNetwork.README.md: Official global English model card and benchmark documentation.README_KR.md: Comprehensive Korean technical manual and aerospace telemetry specifications.LICENSE: MIT License.“AI × Automation × Aesthetics — Crafting tools you'll love ✨”
Hwihwa Lab is an independent AI research & engineering studio dedicated to blending practical on-device intelligence, autonomous operations, and refined aesthetics. We engineer resilient systems that free solopreneurs and indie creators from operational overhead—giving people their time and creative joy back.
This project is licensed under the MIT License - see the LICENSE file for details.
Trained and deployed with LunarLander Mission Control by HWIHWALAB.