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-Llama-3.1-8B-Instruct-NF4 \
5 --local-dir checkpoints/DHSA-Llama-3.1-8B-Instruct-NF41CUDA_VISIBLE_DEVICES=0 python run_ruler.py \
2 --model_name meta-llama/Llama-3.1-8B-Instruct \
3 --use_quant \
4 --data_dir data/RULER \
5 --sparsity-mask DHSA_learned_topK_static \
6 --predictor-checkpoint checkpoints/DHSA-Llama-3.1-8B-Instruct-NF4/predictor_static.pt \
7 --density 0.125 \
8 --q-block-size 128 \
9 --k-block-size 32 \
10 --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}
}