Skip to content

Cache and gen#10

Closed
anshradh wants to merge 6 commits into
TransformerLensOrg:mainfrom
anshradh:cache_and_gen
Closed

Cache and gen#10
anshradh wants to merge 6 commits into
TransformerLensOrg:mainfrom
anshradh:cache_and_gen

Conversation

@anshradh

Copy link
Copy Markdown
Collaborator

No description provided.

@anshradh
anshradh marked this pull request as ready for review September 13, 2022 22:15
@anshradh

Copy link
Copy Markdown
Collaborator Author

This has working implementations of sampling (with various modifications to logits, i.e. temperature, top-k, top-p, etc.) and greedy decoding, both with and without caching past keys and values (cache offers 3-4x speedup). These are also all batched. Will put up a PR for beam search next

@anshradh anshradh closed this Sep 16, 2022
arthurdupe pushed a commit to ArthurConmy/TransformerLens that referenced this pull request Jul 30, 2023
Add greaterthan, ROC, position embeddings and more
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.

1 participant