Skip to main content

Python package manager for the Utopic native runtime

Project description

Utopic Package Manager

Python package management for the Utopic native runtime.

This repository is intentionally thin. The wheel installs Python launchers plus the small Utopic native source tree. Dependency checkout, build configuration, and binary installation all happen later through utopic setup.

Install

pip install git+https://github.com/adavyas/utopic-package-manager.git
utopic setup

On Linux distributions that enforce PEP 668, install the launcher in an isolated environment instead of the system Python:

python3 -m venv ~/.venvs/utopic
~/.venvs/utopic/bin/pip install git+https://github.com/adavyas/utopic-package-manager.git
~/.venvs/utopic/bin/utopic setup

utopic setup builds from package-managed native sources and installs the runtime binaries under ~/.cache/utopic/bin.

On NVIDIA hosts, build the CUDA backend:

utopic setup --backend cuda

The CUDA setup path detects the local GPU architecture and selects a suitable CUDA compiler when possible, including CUDA 13 on GB10/DGX Spark hosts. On constrained hosts, limit build parallelism:

utopic setup --backend cuda --jobs 2

If a Mac cannot initialize Metal, or you want a portable CPU-only build:

utopic setup --backend cpu

For local development from this checkout:

git clone https://github.com/adavyas/utopic-package-manager.git
cd utopic-package-manager
pip install .
utopic setup

Commands

The package installs these launchers:

  • utopic
  • utopic-server
  • utopic-mcp
  • utopic-acp

Run a one-shot prompt:

utopic run -m /path/to/model.gguf -p "Answer with one word: 2+2?" -n 16

For DiffusionGemma-style canvas models, use the entropy-bound path:

utopic run -m /path/to/diffusiongemma.gguf -p "Answer with one word: 2+2?" -n 16 --eb-steps 48

Run the OpenAI-compatible local server:

utopic-server -m /path/to/model.gguf --host 127.0.0.1 --port 8910 -ngl 99

Health and model list:

curl http://127.0.0.1:8910/health
curl http://127.0.0.1:8910/v1/models

What Setup Owns

The package manager owns the user-facing setup path:

  • use the packaged Utopic native source
  • fetch the pinned compatible public llama.cpp dependency source
  • configure the native build for CPU or CUDA, including CUDA compiler and architecture detection
  • build the dependency layer and Utopic
  • copy the final binaries into the Utopic cache

The published wheel stays pure Python and does not fetch or compile native code during pip install. Users should not need to clone dependency repositories or run build-system commands directly for normal setup.

Use the package-managed binary produced by utopic setup for user-facing runs. On the 2026-06-21 GB10 smoke, /home/adavya/.cache/utopic-current/bin/utopic successfully generated from the installed Dream Q4, LLaDA Q4, DiffusionGemma BF16, and DiffusionGemma Q4 GGUFs. The repo-local native build loaded the same files, but was stale for DiffusionGemma prompt wrapping.

Development

Build a wheel:

python -m pip wheel . --no-deps -w dist/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

utopic-0.1.1.tar.gz (52.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utopic-0.1.1-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file utopic-0.1.1.tar.gz.

File metadata

  • Download URL: utopic-0.1.1.tar.gz
  • Upload date:
  • Size: 52.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for utopic-0.1.1.tar.gz
Algorithm Hash digest
SHA256 59ab328ba123d75e0ce3ef4773c15465c72db3fbbf6064bb10b76597c6c636f9
MD5 84bf2eb44e840455f2407c682ab604cf
BLAKE2b-256 fe4864120c81b07e508f5bbca6f60d55fa13a80456f1136e98c9f831d1009bf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for utopic-0.1.1.tar.gz:

Publisher: python-publish.yml on adavyas/utopic-package-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file utopic-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: utopic-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 58.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for utopic-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebc866aefeffda9760cd80d66b255b3881bc2da70676273c6d933b9d0eacad44
MD5 c664d16c6d2ba41b0af37f3ecbc1489a
BLAKE2b-256 00cebc4fa3bd2325565fcda6daec7833b9da6b0a07d24019ee420a773888f1df

See more details on using hashes here.

Provenance

The following attestation bundles were made for utopic-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on adavyas/utopic-package-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page