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/oai parameters 1552 #1557

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

evalstate
Copy link
Contributor

Fix for issue #1552 (incorrect setting of presence/frequency (repetition) penalties for OAI models).
Also allowed temperature up to 2 in zod (some models allow it).

… now correctly uses (frequency penalty=parameters.repetition penalty) and (presence penalty=parameters.presence_penalty) for both chat and completion paths.
… now correctly uses (frequency penalty=parameters.repetition penalty) and (presence penalty=parameters.presence_penalty) for both chat and completion paths.
Copy link
Collaborator

@nsarrazin nsarrazin left a comment

Choose a reason for hiding this comment

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

Thanks!

@nsarrazin nsarrazin merged commit a53ca9b into huggingface:main Nov 11, 2024
3 checks passed
@evalstate evalstate deleted the fix/oai-parameters-1552 branch November 11, 2024 16:15
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.

2 participants