Skip to content

Extension for GenerationArgs class #13

@damian1996

Description

@damian1996
class GenerationArgs(BaseModel):
    use_vllm: Optional[bool] = Field(
        None, description='Whether VLLM was used for inference'
    )
    temperature: Optional[float] = Field(None, description='Sampling temperature')
    top_p: Optional[float] = Field(None, description='Nucleus sampling parameter')
    top_k: Optional[float] = Field(None, description='Top-k sampling parameter')
    max_tokens: Optional[Annotated[int, Field(ge=1)]] = Field(
        None, description='Maximum number of tokens to generate'
    )
    stop_sequences: Optional[List[str]] = Field(
        [], description='Sequences that stop generation'
    )

We should consider a extension of GenerationArgs. In my opinion there are missing fields like for example seed, frequency_penalty, presence_penalty, logprobs, top_logprobs, logit_bias.

We also should consider changing of use_vllm because there can be used other providers like sglang or ollama.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions