Super ii Python SDK
Install the package (Python 3.11 or newer):
python -m pip install superii-sdk
The distribution is named superii-sdk; the import and CLI are named superii.
For a source checkout, use python -m pip install ./sdk/python instead.
import superii
print(superii.hardware()) # stays on this machine
print(superii.inspect("owner/model")) # metadata, immutable files and evidence
print(superii.plan("owner/model")) # estimates and explains before loading
with superii.load("owner/model") as model:
print(model.generate("Hello", max_tokens=128))
The catalogue remains intentionally empty before creator submissions. The example repository is a placeholder, not a seeded or downloadable model.
load resolves one published commit, plans against available memory, downloads
only its selected files, verifies every SHA-256, checks memory again and invokes
an installed runtime. Pass revision="<full 64-character commit>" for reproducible
notebooks, applications, training inputs and CI. pull returns a Snapshot with
its path and manifest; verify(snapshot) rechecks bytes. await superii.apull(...)
and Client.prefetch(...) support asynchronous/background acquisition.
Install llama.cpp's llama-server from its official distribution for GGUF.
Optional extras superii-sdk[mlx], superii-sdk[transformers] and
superii-sdk[serve] add those integrations;
install vLLM using its hardware-specific official instructions. Nothing installs
or recompiles a backend behind the user's back. The initial planner supports
single-file GGUF and known text architectures with safetensors. Unsupported
architectures, custom Python, split GGUF and ambiguous conversions fail with a
reason. The vLLM and Transformers offline adapters currently return a complete
response rather than token streaming.
Memory estimates include OS headroom and context overhead, but are not a zero-OOM
guarantee. Existing smaller or quantized artifacts are preferred to inventing a
conversion. GPU support must be present in the installed runtime; compatibility
metadata is not a benchmark. lazy_weights=True enables the installed MLX
loader's lazy evaluation of already-verified local weights; it does not execute
partially downloaded weights.
Downloads use strict ranges, resume partial chunks, verify the final file and
deduplicate content within each authenticated cache. Redirects cannot forward
credentials; private content uses a separate credential-scoped cache. Set
SUPERII_TOKEN to an existing scoped token with repository:read to access an
authorized private published release. Every new pull rechecks canonical access,
even when bytes are cached. Files already intentionally downloaded by their
authorized owner remain local; revocation cannot erase an owner's copies.
with superii.load("owner/model") as model:
model.serve(port=8765, token=your_random_local_token) # loopback OpenAI text API
# Or model.serve_mcp() for a stdio MCP inference tool.
The OpenAI endpoint requires a token and rejects browser origins. It implements non-streaming text completions and chat completions; it does not claim full OpenAI API parity. MCP exposes one inference tool and does not itself configure an agent's model provider. Repository content and model output remain untrusted.
An optional explicit Client(peers=(Peer("https://cache.example", peer_token),))
can use a peer cache. No discovery or LAN broadcasts occur. Private artifacts
always bypass peers. superii.serving.create_cache_app serves already-cached
public hashes only, after fresh canonical visibility checks. Deploy that optional
service with TLS and a separate strong peer credential; otherwise leave peers
unset. Outages, missing data and corrupted peer bytes fall back to the origin.
Canonical manifests are hashes, not publisher identity proofs. New automatic publication also returns an Ed25519 policy attestation; verification and key pinning are documented with the publication service. Historical releases retain their historical evidence and are not silently relabeled.
Measurements and acquisition research
superii benchmark owner/model "Hello" --max-tokens 128 records first output,
generation time, approximate tokens per second, sampled process-tree peak RSS
and bytes acquired before inference. Batch adapters label first-output time
separately from token-streaming TTFT. RSS does not measure all GPU allocations.
Run cold and warm cache trials separately; the tool does not clear the OS cache.
superii.experiments.tensor_ranges(snapshot) indexes verified safetensors, and
iter_tensor_bytes(snapshot, prefix="model.layers.0.") performs bounded mmap
reads for layer or expert experiments. These are tested access primitives;
arbitrary models do not yet execute with partial weights. All files must pass
full verification first. Quantization/conversion, layer scheduling and MoE
expert selection require an architecture-specific implementation and benchmark.
Optional remote warm-start is explicit at each remote request:
from superii.remote import RemoteModel
# This call sends the prompt to your chosen provider. Use its separate token.
# Local pull/load may run concurrently in your application's executor.
with RemoteModel("https://your-provider.example", "model-id", token=provider_token) as remote:
answer = remote.generate("Hello")
# Switch to your completed local Model for later requests when you choose.
This adapter implements the provider's non-streaming /v1/completions contract.
It never reuses Super ii credentials, follows redirects, silently falls back to
remote execution, or asserts that remote and local model outputs are identical.
Sources: llama.cpp server, MLX LM, vLLM, safetensors, MCP Python SDK.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file superii_sdk-0.1.0.tar.gz.
File metadata
- Download URL: superii_sdk-0.1.0.tar.gz
- Upload date:
- Size: 133.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a10d05c06466ff71f8de3585a69fc815eca9bc2e3884248f2f27690a55dc30c
|
|
| MD5 |
ef62fcfe9bdc279eb62fc65d664c2f28
|
|
| BLAKE2b-256 |
43429551f7bf11417cfa97b1ed12afed41ddbe8492e8fcd90836689ac51e0c63
|
File details
Details for the file superii_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: superii_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7cc348215210a7e8a3c2c0255886953a78e196959b5ab1a8e17a614eb59742a
|
|
| MD5 |
c953fa777b8f51bfb21db4f54c8c82f7
|
|
| BLAKE2b-256 |
87d8b9ea06a0897fd222ff4b9fbaa55405c398a4ebae61f7433c4e5781277f06
|