fix: Add `"do_sample": true,` since this LFM model uses `"temperature": 0.1`

#7

So I used this model LiquidAI/LFM2.5-2.6B with p-e-w/heretic, and it gave me this error when trying to upload it on hugging face.

Which reproducibility information do you want to add? Full: Settings, package versions, and system information
Uploading merged model...
* Merging LoRA adapters into base model...
Error:
GenerationConfig is invalid:
- `temperature`: `do_sample` is not set to `True`. However, `temperature` is set to `0.1` -- this flag is only used in
sample-based generation modes. You should set `do_sample=True` or unset `temperature`.
If you're using a pretrained model, note that some of these attributes may be set through the model's
`generation_config.json` file.

after fix

Model uploaded to VINAY-UMRETHE/LFM2.5-2.6B-heretic.
Liquid AI org

You're right, thanks for this PR!

mlabonne changed pull request status to merged

Sign up or log in to comment