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 GPT-NeoX/Pythia support + benchmark results #4

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Conversation

tomaarsen
Copy link
Owner

Hello!

Pull Request overview

  • Add support for all GPT-NeoX/Pythia models.
  • Add benchmark results for Pythia
  • Add benchmarking script for Pythia

Details

As simple as

from attention_sinks import AutoModel

model = AutoModel.from_pretrained("EleutherAI/pythia-6.9b", device_map="auto")

Benchmarks

python benchmark/perplexity.py --model_name_or_path EleutherAI/pythia-6.9b-deduped --experiment attention_sinks --output_dir benchmark/outputs_pythia_6.9b
python benchmark/perplexity.py --model_name_or_path EleutherAI/pythia-6.9b-deduped --experiment transformers --output_dir benchmark/outputs_pythia_6.9b
python benchmark/perplexity.py --model_name_or_path EleutherAI/pythia-6.9b-deduped --experiment windowed --output_dir benchmark/outputs_pythia_6.9b

python benchmark/plot_perplexity.py --features perplexity vram --title "Log perplexity & VRAM usage of Pythia 6.9B as a function of input lengths" --output_dir benchmark/outputs_pythia_6.9b --log_perplexity_limit 4

pythia_6 8b_ppl_vram_plotted

  • Tom Aarsen

@tomaarsen tomaarsen merged commit 4be3831 into main Oct 3, 2023
@tomaarsen tomaarsen deleted the model/pythia branch October 3, 2023 14:58
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