lazytorch
The easiest ML library you'll ever use. Currently in early beta. Do not use for production yet.
What is LazyTorch?
LazyTorch is a ML library that lets you make neural networks and models with ease. Just like the name suggests, LazyTorch is for lazy people like me.
Code Examples
Brain - General classification and neural networks.
model = Brain(input={"text": ""}, output={"is_positive": True})
ds = Dataset(
{"text": [
"i love this",
"this is great",
"absolute perfection",
"i hate this",
"this is terrible",
"this is awful"
]},
{"is_positive": [True, True, True, False, False, False]}
)
model.teach(ds)
print(model.infer({"text": "i love this"})) # outputs: {'is_positive': True}
print(model.infer({"text": "this is terrible"})) # outputs: {'is_positive': False}
AutoregressiveBrain - Brain but for autoregressive text generation and word prediction.
model = AutoregressiveBrain(context_size=2)
model.teach("the capital of russia is moscow. the capital of britan is london. the capital of france is paris. the capital of greece is athens.")
print(model.generate("the capital of france is", max_words=1)) # output: paris
Dataset - Datasets.
ds = Dataset({"text": ["hello", "world"]}, {"is_positive": [True, True]})
model = Brain(input={"text": ""}, output={"is_positive": True})
model.teach(ds)
BrainTrust - Sample results from multiple Brain models to get a general consensus.
ensemble = BrainTrust([model_a, model_b])
print(ensemble.infer({"text": "spam message"})) # output: {'is_spam': True}
BrainScanner - Evaluate Brain models on datasets.
accuracy = BrainScanner.evaluate(model, ds)
print(accuracy) # output: 1.0 (100%)
These are all of the functions available in the beta of LazyTorch. These are not final.
Metadata
Release files for lazytorch 0.1.0
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 |
|---|---|---|---|---|
| lazytorch-0.1.0.tar.gz | 8.9 kB | With provenance | Details for lazytorch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lazytorch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lazytorch-0.1.0-py3-none-any.whl |
Total release size: 18.1 kB
Release files / lazytorch-0.1.0.tar.gz
| Download URL | lazytorch-0.1.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7d895770261b016e0c23ab67000f283cdf377361c0676a017c5b0be8b89fcfd
|
|
BLAKE2b-256 checksum How to use checksums |
7367826d1d40eef753801390a9aaf751779958f154068549e7ab2c1a72423a00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 16, 2026.
Transparency logRelease files / lazytorch-0.1.0-py3-none-any.whl
| Download URL | lazytorch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a78f8c5e05920555b5c1044ac23a21d5113ee7dcd49a9d2ef43c2491fda2f15
|
|
BLAKE2b-256 checksum How to use checksums |
9371dd24cd5a1ed68918763c99b7c7dee2c07df8c615168fba37ce32f0ca75aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 16, 2026.
Transparency logSecurity for lazytorch 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.
Attestation for lazytorch-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 Jun 16, 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.