DiJiang
[ICML'24 Oral] The official code of "DiJiang: Efficient Large Language Models through Compact Kernelization", a novel DCT-based linear attention mechanism.
File Explorer
Download Latest Version (.zip)- dijiang.png
- dijiang_speed.png
- experiments1.png
- experiments2.png
- scheme.png
- config.json
- modeling_gpt_neox_dijiang.py
- special_tokens_map.json
- tokenizer.json
- tokenizer_config.json
- config.json
- modeling_gpt_neox_dijiang.py
- special_tokens_map.json
- tokenizer.json
- tokenizer_config.json
- config.json
- modeling_gpt_neox_dijiang.py
- special_tokens_map.json
- tokenizer.json
- tokenizer_config.json
- config.json
- modeling_gpt_neox_dijiang.py
- special_tokens_map.json
- tokenizer.json
- tokenizer_config.json
- config.json
- modeling_gpt_neox_dijiang.py
- special_tokens_map.json
- tokenizer.json
- tokenizer_config.json
- README.md
- requirements.txt
- run_dijiang.sh
- train_pythia.py
# Installation Guide
1. Get the code
git clone https://github.com/YuchuanTian/DiJiang
Downloads the entire project code from GitHub to your computer.
cd DiJiang
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).
python <μ€νν νμΌλͺ
>.py # READMEμμ μ νν μ€ν νμΌλͺ
μ νμΈνμΈμ
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
// repository documentation
Was this content helpful?
(0 ratings)
