Skip to content

How to generate different outputs with same model? #2124

@NilsHellwig

Description

@NilsHellwig
tokenizer.batch_decode(
                model.generate(**inputs, max_new_tokens=max_new_tokens, use_cache=False),
            )[0]

I have a very simple problem: How can I generate a different output with the same model. temperature, top_k etc. don't change the LLM's output. Setting the seed doesn't work, I'm not setting any seeds atm. I'm using gemma-3-1b-it and SFTTrainer.

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