Skip to content

[BUG]max_new_tokens do not work #1158

@Er-gou123

Description

@Er-gou123

Describe the bug

llm = OpenAILLM(
model="deepseek-reasoner",
base_url="https://api.deepseek.com/v1",
api_key="",
generation_kwargs={
"temperature": 0.7,
"max_new_tokens": 2048,
},
timeout=60,
max_retries=3,
)
the max_new_tokens is also 128(default)

output = llm.generate_outputs(inputs=inputs, max_new_tokens=1000)
it work in generate_outputs

To reproduce

No response

Expected behavior

No response

Screenshots

No response

Environment

  • Distilabel Version [e.g. 1.0.0]:
  • Python Version [e.g. 3.11]:

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions