WorldKernels
GPU-first world model simulation engine โ serve learned world models (DiT, VAE) as interactive sessions.
โ ๏ธ Early Development โ This package is in pre-alpha. APIs may change.
Installation
pip install worldkernelsFor full functionality:
pip install worldkernels[all] # Everything
pip install worldkernels[serve] # HTTP/WebSocket server
pip install worldkernels[diffusers] # HuggingFace Diffusers supportQuick 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
On this page
Languages
Python100.0%
Contributors
GNU Lesser General Public License v2.1
Created February 3, 2026
Updated March 10, 2026