Self-Play Pretraining with Zero Data (wip)
Implementation of Self-Play Pretraining with Zero Data
Usage
import torch
from self_play_pretrain_zero_data import Brainfuck, SelfPlay, Transformer
executor = Brainfuck()
generator = Transformer(num_tokens = executor.num_tokens, dim = 512, depth = 6)
learner = Transformer(num_tokens = 256 + 1, dim = 512, depth = 6)
self_play = SelfPlay(generator, learner, executor)
self_play(epochs = 10)
torch.save(learner.state_dict(), './learner.pt')
Citations
@misc{cowsik2026selfplaypretrainingzerodata,
title = {Self-Play Pretraining with Zero Data},
author = {Aditya Cowsik and Kfir Dolev and Michael Y. Li and G. Bruno De Luca and Nourya Cohen and Noah D. Goodman and Yoav Levine},
year = {2026},
eprint = {2609.30063},
archivePrefix = {arXiv},
primaryClass = {cs.AI},
url = {https://arxiv.org/abs/2609.30063},
}
@software{Morehead_JVP_Flash_Attention_2025,
author = {Morehead, Alex},
doi = {10.5281/zenodo.17050188},
license = {MIT},
month = {sep},
title = {JVP Flash Attention},
url = {https://github.com/amorehead/jvp_flash_attention},
version = {0.14.0},
year = {2025}
}
@misc{bloem2025universalpretrainingiteratedrandom,
title = {Universal pre-training by iterated random computation},
author = {Peter Bloem},
year = {2025},
eprint = {2506.20057},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2506.20057},
}
Metadata
Release files for self-play-pretrain-zero-data 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| self_play_pretrain_zero_data-0.0.12.tar.gz | 14.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| self_play_pretrain_zero_data-0.0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / self_play_pretrain_zero_data-0.0.12.tar.gz
| Download URL | self_play_pretrain_zero_data-0.0.12.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a9e675ec0b298dd1b1aa93b0ddea6cdfe9823533c71450b8591d046be9c5c36
|
|
BLAKE2b-256 checksum How to use checksums |
609a62bb63a669888100413e7087725ff8a0732b6d4e75f96337d0b0805b3cf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / self_play_pretrain_zero_data-0.0.12-py3-none-any.whl
| Download URL | self_play_pretrain_zero_data-0.0.12-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ac8d3d7fc1acba9fec08deef59b606160f190d832d1c1dc182e6477d02f1f60
|
|
BLAKE2b-256 checksum How to use checksums |
d818045fd2d70b1f6e329d8717d4e0e845af1d07db5ed674b36d36740551a2f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|