Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel impl supported for llama3.x #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,19 @@ bash setup.sh
```

## Small Demo
Run example:
Run example for the PyTorch implementation:

```
python examples/run_tidal_llama.py --top_k 256 --model_name gradientai/Llama-3-8B-Instruct-Gradient-1048k
```

Run example for the CUDA implementation:

```
cd scripts
bash test.sh
```

## Performance Evaluation
Run Needle-in-the-Haystack:

Expand Down Expand Up @@ -88,8 +95,8 @@ bash bench_efficiency_e2e.sh

## Future Plan
This repo mainly reproduces the results in our [paper](https://arxiv.org/abs/2410.05076). As TidalDecode is flexible in the choice of the token selection layer, we are developing a library to support the efficient deployment of our method with flexible model configurations that suit users' accuracy/efficiency requirements.
- [ ] Llama3 Model Support + GQA
- [ ] Independent top-k selection by head
- [x] Llama3 Model Support + GQA
- [x] Independent top-k selection by head

## Reference
```
Expand Down
2 changes: 1 addition & 1 deletion examples/run_tidal_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ def main(args):

args = parser.parse_args()

main(args)
main(args)
Loading