Views
No views yet
| Field | Description |
|---|---|
predictor_config | Explicit predictor architecture and inference parameters |
state_dict | Trained predictor weights in FP32 |
sample_prototypes | BF16 prototypes used for nearest-sample matching |
density_config_overrides | Optional density-specific dynamic budget ranges |
1git clone https://github.com/xiongsiheng/DHSA
2cd DHSA
3
4hf download sxiong/DHSA-Qwen2.5-3B-Instruct-BF16 \
5 --local-dir checkpoints/DHSA-Qwen2.5-3B-Instruct-BF161CUDA_VISIBLE_DEVICES=0 python run_ruler.py \
2 --model_name Qwen/Qwen2.5-3B-Instruct \
3 --data_dir data/RULER \
4 --sparsity-mask DHSA_learned_topK_static \
5 --predictor-checkpoint checkpoints/DHSA-Qwen2.5-3B-Instruct-BF16/predictor_static.pt \
6 --density 0.125 \
7 --q-block-size 128 \
8 --k-block-size 32 \
9 --save_dir results_ruler@inproceedings{xionglong,
title={Long-Context Modeling with Dynamic Hierarchical Sparse Attention for Memory-Constrained LLM Inference},
author={Xiong, Siheng and Zou, Joe and Fekri, Faramarz and Cho, Yae Jee},
booktitle={Forty-third International Conference on Machine Learning}
}