Skip to content

Conversation

@gabrielmbmb
Copy link
Contributor

@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.

@github-actions
Copy link

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

@codspeed-hq
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
@Atry
Copy link

Atry commented Feb 14, 2025

This PR looks very nice!

However, it seems that logprobs do not appear in TextGeneration or other tasks. Why?

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.

3 participants