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

added logit bias for huggingface #495

Merged
merged 3 commits into from
Jul 27, 2023

Conversation

Tyrest
Copy link
Contributor

@Tyrest Tyrest commented Jul 27, 2023

Added logit bias for huggingface_pipeline models which can be enabled by settings logit_bias to True in the model config (just like openai)

src/autolabel/models/hf_pipeline.py Outdated Show resolved Hide resolved
src/autolabel/models/hf_pipeline.py Outdated Show resolved Hide resolved
src/autolabel/models/hf_pipeline.py Outdated Show resolved Hide resolved
src/autolabel/models/hf_pipeline.py Outdated Show resolved Hide resolved
Copy link
Contributor

@DhruvaBansal00 DhruvaBansal00 left a comment

Choose a reason for hiding this comment

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

Lgtm :)

@Tyrest Tyrest merged commit 194e3d6 into main Jul 27, 2023
2 checks passed
@Tyrest Tyrest deleted the added-sequence-biasing-for-huggingface-pipeline branch July 27, 2023 23:54
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