genai-spit
9 Generative-AI lab experiments that run offline, without pretrained models or downloaded datasets (every experiment creates its own data). For each one you can read the title, theory and full Python source, save it, run it, and create its datasets.
Install
pip install --upgrade "genai-spit[all]" # with torch, matplotlib, scikit-learn
pip install --upgrade genai-spit # code + theory only
Colab / Jupyter: !pip install --upgrade "genai-spit[all]"
Command line
genai-spit --list # list the 9 experiments
genai-spit --show chatbot # title + theory + full source
genai-spit --theory vae # only theory
genai-spit --code diffusion # only code
genai-spit --save cyclegan --out cyclegan.py
genai-spit --save-all --out genai_code # all 9 (.py, .txt, theory)
genai-spit --data --out genai_data # create all datasets
genai-spit --all --out genai_all # code + theory + datasets in one folder
genai-spit --all --mnist # + MNIST (internet)
genai-spit --run gan # run an experiment
Python
from genai_spit import list_experiments, show_experiment, get_source, save_experiment, run_experiment, download_all
list_experiments()
show_experiment("chatbot") # title, theory, then the full Python source
code = get_source("diffusion")
save_experiment("vae", "vae.py")
run_experiment("cyclegan")
download_all("genai_all")
Experiments
| # | Name (aliases) | Experiment |
|---|---|---|
| 1 | vae (autoencoder) |
Autoencoder + Variational Autoencoder |
| 2 | gan |
Basic GAN |
| 3 | text_generation (gpt2) |
Tokenization, embedding, pre-train + fine-tune, temperature / top-k / top-p |
| 4 | text_to_image (dalle) |
Text-to-image with a conditional VAE |
| 5 | deepfake (faceswap) |
Shared encoder + two decoders, reconstruction analysis |
| 6 | music (jukebox) |
Markov-chain music → WAV, waveform, spectrogram |
| 7 | cyclegan |
Unpaired style transfer |
| 8 | chatbot |
TF-IDF retrieval chatbot with context and exit loop |
| 9 | diffusion (ddpm) |
DDPM, noise schedules, guided generation |
Source files: src/genai_spit/experiments/*.py.txt
See PUBLISHING.md for how this package is built and uploaded to PyPI.
License
MIT
Metadata
Release files for genai-spit 1.0.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 |
|---|---|---|---|---|
| genai_spit-1.0.0.tar.gz | 32.1 kB | Without provenance | Details for genai_spit-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genai_spit-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for genai_spit-1.0.0-py3-none-any.whl |
Total release size: 71.4 kB
Release files / genai_spit-1.0.0.tar.gz
| Download URL | genai_spit-1.0.0.tar.gz |
|---|---|
| Size | 32.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7377be5a561a690f3b7799fa4ca89b4f2c378a6e5988f01d7e2c023cbb23107a
|
|
BLAKE2b-256 checksum How to use checksums |
2b0c5a77dae56c4bc2b7ebd01927381a28449071bf9c2fdac24d8a10ebf5f457
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Release files / genai_spit-1.0.0-py3-none-any.whl
| Download URL | genai_spit-1.0.0-py3-none-any.whl |
|---|---|
| Size | 39.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ee098173ac89130a57de2ee6009d78977e888f252d09e177797be710545c9a5
|
|
BLAKE2b-256 checksum How to use checksums |
35fb828f9463c00d010cc5ab4364e7bbf8f393054161b709146810172fa37656
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Security for genai-spit 1.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.