Downloads · 30 days
0
Xiaolong-Han/History-to-Adapter
History-to-Adapter is a text generation model from Xiaolong-Han. Use it when you need the model to write or continue text. It is set up for pytorch. The card lists the license as apache-2.0.
This repository hosts the six main H2A checkpoints for personalized long-form generation on LongLaMP. H2A learns a shared history-to-weight mapping across users: it compresses a variable-length user history into fixed…
Downloads · 30 days
0
Access
Public
Updated Aug 3, 2026
Repo size
3.4 GB
Likes
0
Public
Click a slice to open those files.
.pt3.4 GB · 100%
From the Hugging Face model README
This repository hosts the six main H2A checkpoints for personalized long-form generation on LongLaMP. H2A learns a shared history-to-weight mapping across users: it compresses a variable-length user history into fixed memory tokens and generates location-specific LoRA weights for Qwen/Qwen2.5-3B-Instruct.
The training and evaluation code is available at xiaolonghan2000/History-to-Adapter.
| LongLaMP task | Split | File |
|---|---|---|
| Abstract Generation | User | checkpoints/abstract_generation_user_best_rougeL.pt |
| Abstract Generation | Temporal | checkpoints/abstract_generation_temporal_best_rougeL.pt |
| Product Review | User | checkpoints/product_review_user_best_rougeL.pt |
| Product Review | Temporal | checkpoints/product_review_temporal_best_rougeL.pt |
| Topic Writing | User | checkpoints/topic_writing_user_best_rougeL.pt |
| Topic Writing | Temporal | checkpoints/topic_writing_temporal_best_rougeL.pt |
Each checkpoint contains the trained H2A History Encoder, Adapter Decoder, projection heads, and checkpoint metadata. The frozen base-model and embedding-model weights are not included.
Download a single checkpoint with the Hugging Face CLI:
hf download Xiaolong-Han/History-to-Adapter \
checkpoints/topic_writing_user_best_rougeL.pt \
--local-dir .
Download all six checkpoints:
hf download Xiaolong-Han/History-to-Adapter \
--include "checkpoints/*.pt" \
--local-dir .
Clone the H2A source repository, precompute the corresponding LongLaMP history embeddings, and pass the downloaded file to evaluate.py. For example:
python precompute_embeddings.py \
--config configs/topic_writing_user.yaml \
--splits test \
--device cuda
python evaluate.py \
--config configs/topic_writing_user.yaml \
--checkpoint checkpoints/topic_writing_user_best_rougeL.pt \
--split test \
--device cuda
Full installation, configuration, and reproduction instructions are provided in the GitHub README.
Qwen/Qwen2.5-3B-InstructQwen/Qwen3-Embedding-4Bq_proj, v_projThese checkpoints are tied to the H2A architecture and matching task configurations in the public source repository; they are not standalone Transformers or PEFT checkpoints.