Downloads · 30 days
0
rocky1410/haipai-7M
haipai-7M is a text generation model from rocky1410. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
We are introducing a very small model called haipai. It is trained on cnn/dm dataset. We are opensourcing both the training code and the model checkpoints.
Downloads · 30 days
0
Access
Public
Updated Nov 14, 2025
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.pt1.5 GB · 100%
From the Hugging Face model README
We are introducing a very small model called haipai. It is trained on cnn/dm dataset. We are opensourcing both the training code and the model checkpoints.
Small-footprint seq2seq Transformer that completes sentences.
tokenizers).stage1_final.pt: checkpoint with model weights and config.stage1_best.pt: checkpoint of the best model.stage1_tokenizer.json: 32k BPE tokenizer shared across stages.stage1_infer.py: CLI for greedy reconstructions.Shared Subword Embedding (32k) →
Encoder (4 layers) →
Decoder (4 layers) →
Factorized output projection → vocab logits
embed_dim) and are linearly projected to the model dimension.Stage 1 reconstructs text; feed it any summary to see what the autoencoder learned:
python -m src.stage1_infer \
--run-dir models \
--tokenizer-path models/stage1_tokenizer.json \
--config-checkpoint models/stage1_final.pt \
--input-text "US officials pledged immediate aid after the storm devastated the coastline."
You can also batch inputs from a file (--input-file path/to/texts.txt) or point to specific checkpoints with --checkpoints.
pip install torch tokenizers
The repo already contains the training/inference scripts; no extra setup is needed beyond installing dependencies.
If you use the model, please reference it as "Haipai-7M"