Star-Attention
Efficient LLM Inference over Long Sequences
File Explorer
Download Latest Version (.zip)- __init__.py
- gather_results_babilong.py
- metrics.py
- prepare_data.py
- prompts.py
- README.md
- template.py
- README.md
- star_attn_acc_ruler_babilong.png
- star_attn_phase1.png
- star_attn_phase2.png
- download_paulgraham_essay.py
- download_qa_dataset.sh
- PaulGrahamEssays_URLs.txt
- common_words_extraction.py
- constants.py
- freq_words_extraction.py
- niah.py
- qa.py
- utils.py
- variable_tracking.py
- __init__.py
- prepare.py
- template.py
- tokenizer.py
- constants.py
- evaluate.py
- __init__.py
- download_data.sh
- gather_results_ruler.py
- README.md
- synthetic_inference_config.yaml
- synthetic_task_config.yaml
- download_hf_model.py
- README.md
- time_inference.py
- __init__.py
- ring_flash_attn.py
- ring_flash_attn_varlen.py
- utils.py
- __init__.py
- star_flash_attn.py
- star_flash_attn_varlen.py
- utils.py
- __init__.py
- modeling_flash_attention_utils.py
- modeling_llama.py
- .gitignore
- launch.sh
- LICENSE
- model.py
- README.md
- requirements.txt
- run_babilong.py
- run_ruler.py
- run_star_attn_inference.py
# Installation Guide
1. Get the code
git clone https://github.com/NVIDIA/Star-Attention
Downloads the entire project code from GitHub to your computer.
cd Star-Attention
Moves into the project folder you just downloaded.
2. Python
Easy RecommendedPrerequisites
$ pip install -r requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
