Avihu commited on
Commit
1ce06f8
·
verified ·
1 Parent(s): 3383cff

update generation config defaults

Browse files

`early_stopping` prevents hallucinations when using beam search
`suppress_tokens` ensures the audio token will not be predicted.

Files changed (1) hide show
  1. generation_config.json +3 -1
generation_config.json CHANGED
@@ -4,5 +4,7 @@
4
  "eos_token_id": 0,
5
  "pad_token_id": 0,
6
  "transformers_version": "4.52.0.dev0",
7
- "use_cache": true
 
 
8
  }
 
4
  "eos_token_id": 0,
5
  "pad_token_id": 0,
6
  "transformers_version": "4.52.0.dev0",
7
+ "use_cache": true,
8
+ "early_stopping": true,
9
+ "suppress_tokens": [49159]
10
  }