Downloads · 30 days
0
anonx3247/llm-trm-compressor-reasoning-finetune
llm-trm-compressor-reasoning-finetune is a machine learning model from anonx3247. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch.
Sparse MLA-inspired Dimensional Encoder-Decoder For LLM-TRM Architecture Finetuned on Reasoning Traces from OpenHermes
Downloads · 30 days
0
Access
Public
Updated Jan 14, 2026
Repo size
8.4 MB
Likes
0
Public
Click a slice to open those files.
.pt2.1 MB · 100%
From the Hugging Face model README
Sparse MLA-inspired Dimensional Encoder-Decoder For LLM-TRM Architecture Finetuned on Reasoning Traces from OpenHermes
| Metric | Value |
|---|---|
| MSE Loss | 0.146239 |
| Cosine Similarity | 0.8810 |
| Relative Error | 0.4612 |
| Variance Ratio | 0.6192 |
import torch
from huggingface_hub import hf_hub_download
from src.models.compression import DimensionCompressor
# Download and load
checkpoint_path = hf_hub_download(repo_id="anonx3247/llm-trm-compressor-reasoning-finetune", filename="compressor.pt")
checkpoint = torch.load(checkpoint_path, map_location="cpu")
# Initialize compressor
compressor = DimensionCompressor(
d_model=2048,
d_compressed=256,
)
compressor.load_state_dict(checkpoint["compressor"])
# Use
hidden_states = ... # [B, L, 2048]
compressed = compressor(hidden_states) # [B, L, 256]
reconstructed = compressor.decompress(compressed) # [B, L, 2048]
This compressor is part of the LLM-TRM project for integrating Tiny Recursive Models with language models.