Skip to main content

GPC: A Framework for World-Model-Based Generative Control

GPC is a framework for world-model-based Generative Predictive Control.

A GPC controller combines three components:

  • a generative policy that proposes action plans from recent observations,
  • a world model that simulates the future each plan would lead to, and
  • an objective that scores those simulated futures against a goal.

At each replanning step, the controller picks the plan whose predicted future scores best, then executes it in the environment.

Installation

GPC requires Python 3.12 or newer.

uv add gpclib    # or: pip install gpclib

Quick start

Implement a Policy, a WorldModel and an Objective, then wire them into a controller:

from gpc import GPCRank

controller = GPCRank(policy, world_model, objective, action_horizon=4, num_samples=32)

controller.reset()
for step in range(100):
    action = controller.act(frames, proprio=proprio, goal=goal)  # [B, A]

See the quickstart for full examples and the API reference for details.

Development

just test       # run the test suite with coverage
just validate   # format check, lint and type check
just docs       # serve the docs locally

See CONTRIBUTING.md for CI checks, testing, tensor shape annotations and documentation guidelines.

Metadata

Release files for gpclib 0.1.0

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

Source distribution (sdist)

Source distribution for gpclib 0.1.0
File Size Uploaded Provenance Actions
gpclib-0.1.0.tar.gz 7.0 kB With provenance Details for gpclib-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 17.5 kB

Release files / gpclib-0.1.0.tar.gz

Download URL gpclib-0.1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f7f4f9d3cf99ad24a6159065c2b57b6411eed185c3c2a4240b81f539c503c5f7
BLAKE2b-256 checksum
How to use checksums
b56a917d3a17965fab4991f3fdb5d72b0f33a2eb9c010b607bd0b974107b30f5
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 19, 2026.

Transparency log

Release files / gpclib-0.1.0-py3-none-any.whl

Download URL gpclib-0.1.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
831ba591a0a1bf06552f02cfc6bd6c41e9a544c67aaee655ce49592cf705ef68
BLAKE2b-256 checksum
How to use checksums
77918d35b292c14f84f0515169257d74fe3acd30a419236b798819815a22ea4a
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 19, 2026.

Transparency log

Security for gpclib 0.1.0

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 gpclib-0.1.0.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 19, 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.

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