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

Fix up the mammoth max length issue. #335

Merged
merged 4 commits into from
Oct 20, 2023
Merged

Fix up the mammoth max length issue. #335

merged 4 commits into from
Oct 20, 2023

Conversation

sam-scale
Copy link
Contributor

No description provided.

if "mistral" in model_name:
max_num_batched_tokens = 8000
max_model_len = 8000
max_num_batched_tokens: Optional[int] = 2560 # vLLM's default
Copy link
Collaborator

Choose a reason for hiding this comment

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

When is max_num_batched_tokens None?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Never, it's because of the typing of the override dict _VLLM_MODEL_LENGTH_OVERRIDES: Dict[str, Dict[str, Optional[int]]]

I can try a better solution

@sam-scale sam-scale merged commit 49eb538 into main Oct 20, 2023
5 checks passed
@sam-scale sam-scale deleted the ss/mammoth branch October 20, 2023 18:40
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

2 participants