Skip to content

Commit

Permalink
Fix type annotation on logprobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ProbablyFaiz committed Aug 26, 2024
1 parent b68fa00 commit de5cdff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rl/llm/engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class InferenceOutput(BaseModel):
prompt: InferenceInput
text: str

logprobs: list[dict[str, float]] | None = None
logprobs: list[dict[int, float]] | None = None
metadata: dict[str, Any] = Field(default_factory=dict)


Expand Down

0 comments on commit de5cdff

Please sign in to comment.