Contract package for the Guido model ecosystem — config, tokenizer, tensor manifest, cartridge format.
Project description
guido-common
Contract package for the Guido model ecosystem. Config schemas, tokenizer contracts, tensor manifests, and the .cart cartridge format.
No torch dependency — pure Python with pydantic + tiktoken.
Installation
pip install guido-common
What's Inside
| Module | Description |
|---|---|
guido_common.config |
GuidoConfig dataclass with 5 presets (300M → 7B), HF config round-trip |
guido_common.tokenizer |
Special token definitions, frozen tokenizer contract, validation |
guido_common.manifest |
Expected weight keys and shapes per config — the tensor naming contract |
guido_common.cartridge |
.cart format v0.1 spec — portable neural memory states |
guido_common.protocol |
Shared request/response types for inference APIs |
Quick Start
from guido_common.config import GuidoConfig, GUIDO_3B_CONFIG
from guido_common.config.schema import to_hf_config_dict
from guido_common.manifest.tensor_manifest import expected_keys
config = GUIDO_3B_CONFIG
print(f"Hidden: {config.hidden_size}, Layers: {config.num_layers}, Experts: {config.num_experts}")
hf_config = to_hf_config_dict(config)
keys = expected_keys(config)
print(f"Expected {len(keys)} weight keys")
See the monorepo README for full documentation.
Project details
Release history Release notifications | RSS feed
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 guido_common-0.1.0.tar.gz.
File metadata
- Download URL: guido_common-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38ede33df9a05fa4e7b2e6f40fa4d759ae44eeb1acf8f33f4573cb861e7b79cb
|
|
| MD5 |
ad0b0773559fe8eb26e6dd7950292aae
|
|
| BLAKE2b-256 |
661821db38c386acfda05552dab901d4a6b5dc48959301837f455ad608172583
|
File details
Details for the file guido_common-0.1.0-py3-none-any.whl.
File metadata
- Download URL: guido_common-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba5e983104c7abbdb2c7a98cd4c4e2099ccc497d93e29145328535c0e16dde82
|
|
| MD5 |
60448a263e8155878cd468fa4f57b58d
|
|
| BLAKE2b-256 |
8a5978223bf55dedddb7de0517e885ef495ddf0f2c7ece18fca246eba181d5ac
|