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

🐛 always set word embeddings #41

Merged
merged 3 commits into from
Feb 28, 2024
Merged

🐛 always set word embeddings #41

merged 3 commits into from
Feb 28, 2024

Conversation

joerunde
Copy link
Collaborator

@joerunde joerunde commented Feb 28, 2024

Motivation

A previous OOM fix #39 mistakenly left model.word_embeddings always unset when the prompt cache was disabled. This causes inference without a prompt cache to fail. Our tests always set up a prompt cache so they did not catch this case.

Modifications

Always invokes self._setup_prompt_encoder() in model.py again

Result

Inference without a prompt cache works

Copy link
Member

@njhill njhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @joerunde!

@ckadner ckadner merged commit ef7612b into main Feb 28, 2024
5 of 7 checks passed
@ckadner ckadner deleted the prompt-cache-bugfix branch February 29, 2024 03:43
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.

3 participants