GitHunt
SO

soran-ghaderi/worldkernels

WorldKernels

GPU-first world model simulation engine โ€” serve learned world models (DiT, VAE) as interactive sessions.

PyPI version
Python
License: LGPL v2.1

โš ๏ธ Early Development โ€” This package is in pre-alpha. APIs may change.

Installation

pip install worldkernels

For full functionality:

pip install worldkernels[all]       # Everything
pip install worldkernels[serve]     # HTTP/WebSocket server
pip install worldkernels[diffusers] # HuggingFace Diffusers support

Quick Start

from worldkernels import WorldKernel, Action, WorldConfig

# Initialize engine
wk = WorldKernel(device="cuda")

# Load a world model from HuggingFace Hub
wk.load_world("Etched/oasis-500m")

# Create an interactive session
session = wk.create_session(
    world="oasis-500m",
    config=WorldConfig(height=360, width=640, fps=20),
)

# Step through the simulation
for _ in range(100):
    action = Action("keyboard", {"keys": ["W", "SPACE"]})
    obs = session.step(action)
    # obs.frames contains generated video frames

session.close()
wk.shutdown()

Features (Planned)

  • ๐ŸŽฎ Session-based API โ€” Stateful simulation with checkpoint/branch
  • ๐Ÿš€ GPU-optimized โ€” Pre-allocated buffers, CUDA graphs, torch.compile
  • ๐Ÿ”Œ HuggingFace native โ€” Load models directly from the Hub
  • ๐ŸŒ HTTP/WebSocket server โ€” REST API and real-time streaming
  • ๐Ÿงฉ Extensible backends โ€” PyTorch eager, torch.compile, TensorRT

Documentation

Coming soon at worldkernels.dev

License

LGPL-2.1 โ€” see LICENSE

Languages

Python100.0%

Contributors

GNU Lesser General Public License v2.1
Created February 3, 2026
Updated March 10, 2026
soran-ghaderi/worldkernels | GitHunt