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

Update LLMs to support prompt logprobs use-case #1099

Merged
merged 7 commits into from
Jan 17, 2025
Merged

Conversation

gabrielmbmb
Copy link
Member

@gabrielmbmb gabrielmbmb commented Jan 16, 2025

Description

This PR updates OpenAILLM, InferenceEndpointsLLM and vLLM so they return the logprobs of the input prompt. This is useful for the use-case in which an already formatted message (instruction-response) is passed to an LLM to get the prompt logprobs to be later used for training a student model using KD from a teacher model.

Copy link

Documentation for this PR has been built. You can view it at: https://distilabel.argilla.io/pr-1099/

Copy link

codspeed-hq bot commented Jan 16, 2025

CodSpeed Performance Report

Merging #1099 will not alter performance

Comparing prompt-logprobs (7695acd) with develop (5257600)

Summary

✅ 1 untouched benchmarks

@gabrielmbmb gabrielmbmb marked this pull request as ready for review January 17, 2025 07:29
@gabrielmbmb gabrielmbmb self-assigned this Jan 17, 2025
@gabrielmbmb gabrielmbmb added the enhancement New feature or request label Jan 17, 2025
@gabrielmbmb gabrielmbmb added this to the 1.5.0 milestone Jan 17, 2025
@gabrielmbmb gabrielmbmb merged commit 74cc09e into develop Jan 17, 2025
8 checks passed
@gabrielmbmb gabrielmbmb deleted the prompt-logprobs branch January 17, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant