This release is a pre-release and may not be stable for production use.
Thoughtform
Initial PyPI preview: 0.1.0a1. The selected optional adapter uses
published thoughtformula==0.3.1. No model weights or datasets are included.
Wispsy Releases distinguishes
published artifacts from current main development.
Individual model definitions and model-neutral agency. Python 3.14+.
A ModelDefinition names an individual model and its generation policy. A
Being identifies a character, environmental mind or other participant that
may share that model. Observation, Action and Policy work with deterministic
rules and do not require a model or orchestration framework.
from thoughtform import Being, GenerationConfig, ModelDefinition
model = ModelDefinition('alice-model', 'thoughtformula', 'caller-owned-checkpoint',
GenerationConfig(max_new_tokens=24))
alice = Being('alice', 'Alice', model=model, goals=('Explore the woods',))
For real token inference, install uv sync --extra thoughtformula, construct a
compatible Thoughtformula ModernMicroGPT and BPETokenizer explicitly, then
use thoughtform.thoughtformula.ThoughtformulaModel(model, transformer, tokenizer).
Its synchronous stream(prompt) yields Token(token_id, text) and closes the
underlying generator on early exit. The caller owns artifacts, weights, model
access serialization and execution resources. This adapter never loads, downloads
or trains a model. Use Hypnosis's execution adapter before consuming on a UI loop.
The initial profile rejects unknown tokenizer text and prompt-plus-output beyond the model's declared context capacity. Zero output budget performs no inference; EOS ends the stream. Speculative generation, persisted lineage, memories and specialization are later owning tasks.
Verify with PYTHONPATH=src python -m unittest discover -s tests; the optional
profile adds actual tiny untrained Transformer tests. These prove integration,
not language quality or agent capability.
Full implementation plan and Project track the complete family.
Hero recipes and local artifacts
The optional Thoughtformula profile provides thoughtform.recipes.HERO and
HERO_CODING: small experimental general-language and coding model identities.
Recipes describe architecture; Thoughtformula owns initialization, training,
optimizer state and checkpoints. A model identity remains separate from a Being.
artifacts.publish_artifact writes a new passive JSON sidecar beside a selected
native .tft checkpoint. load_artifact checks complete checkpoint and tokenizer
hashes, bounded bytes, architecture, corpus identity and parent lineage before
returning a model and synchronous inference adapter. References are local single
filenames; importing Thoughtform performs no reads, training or downloads.
specialize loads fresh parent weights, preserves its tokenizer/architecture and
resets Adam for a separately identified child. Exact numerical resume uses the
Thoughtformula checkpoint directly and preserves Adam instead. No weights are
distributed by this package. Hypnosis owns job policy and evaluation.
recipes.recipe_for(model_id, profile) selects explicit pilot-v1 or
balanced-v2 recipes. Balanced Hero/Hero Coding use width 64, two layers, two
experts and hidden width 128; actual parameter count depends on the frozen
vocabulary. Existing pilot constants and artifact identities are unchanged.
Metadata
Release files for thoughtform 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thoughtform-0.1.0a1.tar.gz | 14.1 kB | With provenance | Details for thoughtform-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thoughtform-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for thoughtform-0.1.0a1-py3-none-any.whl |
Total release size: 25.0 kB
Release files / thoughtform-0.1.0a1.tar.gz
| Download URL | thoughtform-0.1.0a1.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17b73fb73f5f6847b8ee3b7829ef07b58ea25646f1dec6b9f8b39bbcea4b5982
|
|
BLAKE2b-256 checksum How to use checksums |
9a7e736a37fc312479c13cf65b09fbd35379d9fa300efef904415b1684514dcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logRelease files / thoughtform-0.1.0a1-py3-none-any.whl
| Download URL | thoughtform-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73e360e434feff31296f7c518d500ba4b0fadf354e7863414ee68c4afc64e047
|
|
BLAKE2b-256 checksum How to use checksums |
67740255d63f06d97f89db460b7ffd68f6ea71c44a32c874907b40085bdff562
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logSecurity for thoughtform 0.1.0a1
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.
Attestation for thoughtform-0.1.0a1.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 Nov 24, 2026.
Transparency logA 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.