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 self.max_tokens in anthropic_llms.py #1848

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

lozhn
Copy link
Contributor

@lozhn lozhn commented May 16, 2024

Fix bug where self.max_tokens was not set.
The AnthropicChatLM uses everywhere self.max_tokens while in constructor is sets self.max_token. It doesn't call issues on smaller responses but I caught it while asking for bigger (>1000tokens) response.

Fix bug where `self.max_tokens` was not set
@lozhn
Copy link
Contributor Author

lozhn commented May 16, 2024

As far as I can see the tests are broken in main, not caused by my patch

Copy link
Contributor

@haileyschoelkopf haileyschoelkopf left a comment

Choose a reason for hiding this comment

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

Thank you!

@haileyschoelkopf haileyschoelkopf merged commit 793469e into EleutherAI:main Jun 12, 2024
4 of 8 checks passed
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