Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
g8a9 authored Sep 10, 2024
1 parent ab5c009 commit 4037a78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pip install simple-generation[all]
## Features

- generate with any model that can be loaded with `AutoModelForCausalLM` or `AutoModelForSeq2SeqLM`
- pre-tokenization and dynamic padding for speed
- batched inference for speed (`batch_size=256`)
- auto find the largest batch size fitting in your accelerator (`batch_size="auto"`, `starting_batch_size=512`)
- sorting inputs by length to reduce padding tokens and improve speed (`sort_prompts_by_length=True` in `__call__`)
Expand Down

0 comments on commit 4037a78

Please sign in to comment.