Skip to content

Commit

Permalink
logprobs for vllm >= 0.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
al.pankov committed Nov 12, 2024
1 parent a66986f commit b4c717a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions turbo_alignment/generators/vllm_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(
skip_special_tokens=custom_generation_settings.skip_special_tokens,
stop_token_ids=eos_token_id,
max_tokens=transformers_settings.max_new_tokens,
logprobs=transformers_settings.logprobs,
**beam_search_params,
)
self._lora_request = lora_request
Expand Down
1 change: 1 addition & 0 deletions turbo_alignment/settings/tf/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ class GeneratorTransformersSettings(ExtraFieldsNotAllowedBaseModel):
top_k: int = 50
temperature: float = 1.0
stop_strings: str | list[str] = '</s>'
logprobs: int = 1

0 comments on commit b4c717a

Please sign in to comment.