VINAY-UMRETHE commited on
Commit
efa3300
·
verified ·
1 Parent(s): a4e00e8

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

Browse files

So I used this model `LiquidAI/LFM2.5-2.6B` with [p-e-w/heretic](https://github.com/p-e-w/heretic), and it gave me this error when trying to upload it on hugging face.

```bash
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

```bash
Model uploaded to VINAY-UMRETHE/LFM2.5-2.6B-heretic.
```

Files changed (1) hide show
  1. generation_config.json +1 -0
generation_config.json CHANGED
@@ -8,6 +8,7 @@
8
  "output_hidden_states": false,
9
  "pad_token_id": 124893,
10
  "temperature": 0.1,
 
11
  "top_k": 50,
12
  "repetition_penalty": 1.1,
13
  "transformers_version": "5.2.0",
 
8
  "output_hidden_states": false,
9
  "pad_token_id": 124893,
10
  "temperature": 0.1,
11
+ "do_sample": true,
12
  "top_k": 50,
13
  "repetition_penalty": 1.1,
14
  "transformers_version": "5.2.0",