Skip to main content

🤖 OpenPhysicalAI Lab (v0.2.1)

Real-Time Embodied AI Simulation, Closed-Loop Failure Recovery & Hardware Budget Benchmarking — Engineered to Run Inside 4 GB VRAM.

License: Apache-2.0 Phase-1 Gate MuJoCo Hardware Tier Platform


⚡ Why OpenPhysicalAI Lab?

Most embodied AI frameworks assume you have a 24 GB RTX 4090 or an 80 GB datacenter GPU. OpenPhysicalAI Lab proves that deterministic 3D physics, vision perception, local LLM task planning, and closed-loop failure recovery can run entirely locally on a 4 GB VRAM laptop (OPAI-4G).

Unlike static benchmarks that pause the physics engine while the LLM thinks, OpenPhysicalAI Lab enforces Real-Time Mode: the physical world keeps moving while the planner reasons, exposing the true Latency Tax of slow models and measuring capability under strict VRAM, System RAM, Latency, and Energy (Joule) Budget Cards.


🏗️ System Architecture

flowchart LR
    subgraph Sim["MuJoCo 3.16 Real-Time Engine (432 FPS)"]
        World["5-DOF Arm + Parallel Gripper\nTable, Cubes, Conveyor"]
        Inject["Seeded Failure Injector\n(Slip, Displacement, Noise)"]
        Render["3D OpenGL GPU Renderer\n(Shadows + Orthographic Vision)"]
    end

    subgraph Percep["Perception & Kinematics"]
        Vision["Vision / Oracle Detector\n(~1 mm Accuracy)"]
        Kalman["Alpha-Beta Velocity Tracker\n(Latency Lead Compensation)"]
    end

    subgraph Agent["Closed-Loop Recovery Agent"]
        Verifier["Tiered Verifiers\n(V0 Oracle | V1 Proprio | V2 Camera)"]
        Planner["Local Ollama LLM Planner\n(Gemma 2 2B / Qwen3 4B JSON)"]
    end

    subgraph Telemetry["NVML & Budget Auditor"]
        Profiler["NVML + Ollama /api/ps\n(VRAM, RAM, Watts, Temp)"]
        Card["SQLite + Signed\nBudget Card (.md / .csv)"]
    end

    World --> Inject --> Render --> Vision --> Kalman
    Kalman --> Verifier --> Planner
    Planner -- "Hold Policy Advances World by Δt_plan" --> World
    Sim -.-> Profiler --> Card
    Agent -.-> Profiler

✅ What Is Real & Verified

Subsystem Implementation Status
Physics Engine Real MuJoCo 3.16.0: 5-DOF robotic arm, parallel friction gripper, table, multi-size cubes, open-top container, and kinematic moving conveyor. Analytic IK + Cartesian skill primitives.
3D GPU Rendering Native mujoco.Renderer 3D perspective camera (distance 0.92 m, elevation -26°, azimuth 135°) with directional shadow mapping (~432 FPS / 2.3 ms/frame on RTX 3050 Laptop GPU) + 1 mm accurate orthographic vision pipeline.
Phase-1 Gate Deterministic scripted pick-and-place passes 200/200 random scenes (100.0%) (python python/gate1.py).
Benchmark Tasks 5 seeded, cross-process deterministic tasks: pick_place, smallest, spatial (left_of), multi_object, and dynamic (moving conveyor cube).
Local LLM Planners Rule-based baseline + Ollama local LLMs (gemma2:2b, qwen3:4b-instruct-2507-q4_K_M) with strict JSON-schema output and kinematic action validation.
Agent Architectures Open-Loop (blind execution), Closed-Loop (abort on anomaly), and Recovery Agent (active failure detection, diagnosis, re-observation, and replanning).
Hardware Profiler Tracks process-tree RSS, system RAM, NVML Compute/Graphics VRAM, Ollama /api/ps VRAM, GPU power (W), energy per episode (J), core temperature (°C), and thermal throttling.

📊 Verified Benchmarks & Scientific Results

All benchmarks below were executed on an HP Victus 15 (OPAI-4G Reference Tier: NVIDIA GeForce RTX 3050 Laptop GPU 4.0 GB VRAM, 16 GB System RAM, Windows 11, MuJoCo 3.16.0).

1. Local LLM Planner Speed & Footprint (OPAI-4G Tier)

| Local Model (Ollama) | Weights Size | Peak Device VRAM | Warm Planning Latency | Throughput | Schema Compliance |

1. Local LLM Planner Speed & Footprint (OPAI-4G Tier, N=20 per Model, Real-Time Mode)

All models evaluated under identical real-time closed-loop pick-and-place tasks on an NVIDIA GeForce RTX 3050 Laptop GPU (4.0 GB VRAM):

Local Model (Ollama) Weights Size Peak Device VRAM Warm Planning Latency (p50 / p95) Throughput TSR (95% CI, N=20) Notes
qwen2.5:3b 1.9 GB 2.57 GB 469 ms / 493 ms 70.6 tok/s 100.0% (83.9%–100.0%) Fastest response, reliable spatial parsing
gemma2:2b 1.6 GB 2.36 GB 715 ms / 751 ms 69.5 tok/s 100.0% (83.9%–100.0%) Consistent schema compliance & low footprint
llama3.2:1b 1.3 GB 1.97 GB 577 ms / 608 ms 99.9 tok/s 0.0% (0.0%–16.1%) Fast generation, but frequent JSON/action schema violations

2. Verifier Honesty Benchmark (Moderate Perturbation, Real-Time Mode, N=100 per Cell)

Evaluated with Rule-Based Recovery Agent under moderate failure injection (slip probability $p=0.25$, displacement, and wrong placement). Raw JSON exported in verifier_benchmark_summary_N100.json:

Agent Verifier Level Mode TSR (95% CI, N=100) Injections Detect Rate Recover Rate Missed Failures False Alarms Planning p95
Recovery V0 (Simulator Oracle) realtime 74.0% (64.6%–81.6%) 138 97.1% 52.2% 0.0% 0.0% 0.03 ms
Recovery V1 (Proprioception Only) realtime 68.0% (58.3%–76.3%) 124 87.9% 51.4% 3.7% 0.0% 0.03 ms
Recovery V2 (Proprio + Camera Vision) realtime 73.0% (63.6%–80.7%) 137 96.4% 51.5% 0.3% 0.0% 0.03 ms

3. The Latency Tax on Dynamic Conveyor Tasks

Measured on the dynamic task with moving cube at $0.02\text{ m/s}$, single-frame perception, without velocity lead compensation:

Agent Architecture Verifier Execution Mode Planner Delay ($\Delta t$) TSR (95% CI, N=50) Physical Mechanism
Closed-Loop (Rule) V1 sync 0 ms 38.0% (25.9%–51.8%) Physics paused while planning
Closed-Loop (Rule) V1 realtime 0 ms 38.0% (25.9%–51.8%) Real-time baseline
Closed-Loop (Rule) V1 realtime 1,000 ms (1.0 s) 0.0% (0.0%–7.1%) Cube shifts ~20 mm past gripper capture zone
Closed-Loop (Rule) V1 realtime 2,000 ms (2.0 s) 0.0% (0.0%–7.1%) Stale observation causes complete grasp miss
Recovery (Velocity-Lead) V1 realtime 1,000 ms (1.0 s) 100.0% (72.2%–100.0%) Forward-projected intercept overcomes latency tax

🚀 Quick Start

1. One-Click Windows Launch (Desktop App)

Clone the repository and double-click start-app.bat, or run from terminal:

git clone https://github.com/VedantJadhav701/OpenphysicalAI-lab.git
cd OpenphysicalAI-lab

# Optional: activate your existing Conda environment (auto-detected by main.js)
conda activate thermo_agent

npm install
npm start
ollama pull gemma2:2b

# Or for the 4B Qwen3 planner:
ollama pull qwen3:4b-instruct-2507-q4_K_M

3. Headless CLI & Phase-1 Gate Verification

python python/gate1.py
pytest python/tests
python -m openphysicalai.cli run --task pick_place --perception vision --perturb moderate --verifier V2 --episodes 50

🏆 Community Hardware Leaderboard

Run the benchmark suite on your machine, generate a signed Budget Card (budget_card_run_*.md), and submit a Pull Request to add your hardware configuration below!

Contributor Device / GPU Tier Class Planner Model Peak Device VRAM Planning p95 Recovery TSR Energy / Ep Budget Status
@VedantJadhav701 HP Victus 15 (RTX 3050 4GB, 16GB RAM) OPAI-4G gemma2:2b 2.10 GB 698 ms 100.0% ~92 J ✅ PASS
@VedantJadhav701 HP Victus 15 (RTX 3050 4GB, 16GB RAM) OPAI-4G qwen3:4b-q4_K_M 2.53 GB 1344 ms 100.0% 133.6 J ✅ PASS
Your GitHub Handle Add your GPU / Apple Silicon / CPU OPAI-4G/8G/16G Any Ollama Model Measured GB Measured ms Measured % Measured J Submit PR!

🗂️ Repository Layout

├── main.js / preload.js         # Electron main process, Conda auto-discovery, single-instance lock
├── start-app.bat                # One-click Windows launcher
├── src/                         # iOS-style Electron frontend UI
├── python/
│   ├── gate1.py                 # 200-scene deterministic Phase-1 physics gate
│   ├── tests/                   # Pytest unit & integration test suite
│   └── openphysicalai/          # Core engine: sim, tasks, skills, perception, render (3D GPU),
│                                # planners, injection, runner, profiler, budget, store, cli
└── docs/                        # Architectural roadmap & experimental specifications

📄 License

Licensed under the Apache License 2.0 — see LICENSE for full details.

Metadata

Release files for openphysicalai 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openphysicalai 0.2.1
File Size Uploaded Provenance Actions
openphysicalai-0.2.1.tar.gz 39.3 kB With provenance Details for openphysicalai-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openphysicalai 0.2.1
File Interpreter ABI Platform Actions
openphysicalai-0.2.1-py3-none-any.whl Python 3 none any Details for openphysicalai-0.2.1-py3-none-any.whl

Total release size: 79.1 kB

Release files / openphysicalai-0.2.1.tar.gz

Download URL openphysicalai-0.2.1.tar.gz
Size 39.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4a3c49c6ae90dbc194477d37a87d86fcb6ba0d0f31511aa4f9cb1a438a967748
BLAKE2b-256 checksum
How to use checksums
b023216fafa8423fa5fbb65926f4a2147db6486acc155df8507aebb95e8e2e36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / openphysicalai-0.2.1-py3-none-any.whl

Download URL openphysicalai-0.2.1-py3-none-any.whl
Size 39.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49e7d760f42ef93f2510f0d75e617a54ab5e933012f54ba54a8e6b7ed2c267b2
BLAKE2b-256 checksum
How to use checksums
ede314723c5fd2629fd408a9b7d9c0ea44037fe24393a11cf3c1efd2658668f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Security for openphysicalai 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openphysicalai-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page