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

Add BTLM support + benchmark results #29

Merged
merged 2 commits into from
Nov 16, 2023
Merged

Add BTLM support + benchmark results #29

merged 2 commits into from
Nov 16, 2023

Conversation

tomaarsen
Copy link
Owner

Hello!

Pull Request overview

  • Add support for all BTLM models.
  • Add benchmark results for BTLM-3B-8k-base
  • Add benchmarking script for BTLM-3B-8k-base

Details

As simple as

from attention_sinks import AutoModel

model = AutoModel.from_pretrained("cerebras/btlm-3b-8k-base", device_map="auto", trust_remote_code=True)

Benchmarks

python benchmark/perplexity.py --model_name_or_path cerebras/btlm-3b-8k-base --experiment attention_sinks --output_dir benchmark/outputs_btlm_3b_8k_base_2k_win --trust_remote_code --num_tokens 16384 --window_size 2048
python benchmark/perplexity.py --model_name_or_path cerebras/btlm-3b-8k-base --experiment transformers --output_dir benchmark/outputs_btlm_3b_8k_base_2k_win --trust_remote_code --num_tokens 16384
python benchmark/perplexity.py --model_name_or_path cerebras/btlm-3b-8k-base --experiment windowed --output_dir benchmark/outputs_btlm_3b_8k_base_2k_win --trust_remote_code --num_tokens 16384 --window_size 2048

python benchmark/plot_perplexity.py --features perplexity vram --title "Log perplexity & VRAM usage of BTLM-3B-8k-base\nas a function of input lengths" --output_dir benchmark/outputs_btlm_3b_8k_base_2k_win --log_perplexity_limit 4

btlm_3b_8k_base_ppl_vram_plotted

  • Tom Aarsen

@tomaarsen tomaarsen merged commit 3831563 into main Nov 16, 2023
@tomaarsen tomaarsen deleted the model/btlm branch November 16, 2023 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant