Latent Text Compressor 64
Selected step-31,000 checkpoint: 12,555,776 parameters, six encoder layers, one decoder layer, width 256, 512-token context and 64 tokens per latent vector. Uses Branch Sigmoid FFN, RoPE and encoder depth residual attention.
Loading
Install latent-text-compressor with its CPU or CUDA extra. This explicit loading example also works before the automatic-default changes are pulled into your checkout:
from huggingface_hub import hf_hub_download
from latent_text.codec import Codec
path = hf_hub_download(
repo_id="awaisamin010/latent-text-compressor-64",
filename="model.pt",
revision="fced6bd27cb3934896b4178f4792543832d9ab57",
)
codec = Codec.load(path)
print(codec.reconstruct("Your text here."))
In updated checkouts, Codec.load() and CLI inference select this release by default.
No Hugging Face token is required to download this public model.
The download contains weights, model configuration and tokenizer, not training data, optimizer state, credentials or executable remote code.
Evaluation and limitations
Saved validation at step 31,000: short 1,000/1,000 exact (88,420/88,420 tokens, NLL 0.0000358617); packed 384/384 exact (196,538/196,538 tokens, NLL 0.0000419760). These are recorded training validation results, not a new independent test evaluation. Selection reused validation; one seed. Unseen text can reconstruct incorrectly. 64 tokens per vector is not a 64x byte reduction. Long text is processed in independent 512-token windows. Training corpus is derived from FineWeb-Edu with synthetic training examples. No source training documents are distributed here.
Encoder-only weights for a language model
encoder.pt contains 9,426,432 encoder parameters plus the model configuration,
tokenizer and matching decoder identity. It contains no reconstruction decoder,
optimizer or training examples. The full model.pt remains available for text
reconstruction. Both are inference artifacts rather than resumable training runs.
Integration code: ASquare010/complex_fnn. In an updated checkout:
from models.position_compressor.codec import Codec
encoder = Codec.load_encoder()
payload = encoder.encode("Previously completed text")
vectors = payload["chunks"][0]["vectors"]
A 512-token input produces eight ordered 256-feature vectors. For causal language model attention, every encoded chunk must be fully earlier than the prediction; the encoder uses bidirectional attention inside that chunk. Reconstruction scores do not establish that a downstream Transformer can use the vectors effectively.