mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Add missing exllamav2 samplers
This commit is contained in:
parent
cd41f8912b
commit
58c6001be9
@ -96,7 +96,12 @@ class Exllamav2Model:
|
|||||||
settings.temperature = state['temperature']
|
settings.temperature = state['temperature']
|
||||||
settings.top_k = state['top_k']
|
settings.top_k = state['top_k']
|
||||||
settings.top_p = state['top_p']
|
settings.top_p = state['top_p']
|
||||||
|
settings.min_p = state['min_p']
|
||||||
|
settings.tfs = state['tfs']
|
||||||
settings.typical = state['typical_p']
|
settings.typical = state['typical_p']
|
||||||
|
settings.mirostat = state['mirostat_mode'] == 2
|
||||||
|
settings.mirostat_tau = state['mirostat_tau']
|
||||||
|
settings.mirostat_eta = state['mirostat_eta']
|
||||||
settings.token_repetition_penalty = state['repetition_penalty']
|
settings.token_repetition_penalty = state['repetition_penalty']
|
||||||
settings.token_repetition_range = -1 if state['repetition_penalty_range'] <= 0 else state['repetition_penalty_range']
|
settings.token_repetition_range = -1 if state['repetition_penalty_range'] <= 0 else state['repetition_penalty_range']
|
||||||
if state['ban_eos_token']:
|
if state['ban_eos_token']:
|
||||||
|
@ -235,11 +235,16 @@ loaders_samplers = {
|
|||||||
'ExLlamav2': {
|
'ExLlamav2': {
|
||||||
'temperature',
|
'temperature',
|
||||||
'top_p',
|
'top_p',
|
||||||
|
'min_p',
|
||||||
'top_k',
|
'top_k',
|
||||||
'typical_p',
|
'typical_p',
|
||||||
|
'tfs',
|
||||||
'repetition_penalty',
|
'repetition_penalty',
|
||||||
'repetition_penalty_range',
|
'repetition_penalty_range',
|
||||||
'seed',
|
'seed',
|
||||||
|
'mirostat_mode',
|
||||||
|
'mirostat_tau',
|
||||||
|
'mirostat_eta',
|
||||||
'ban_eos_token',
|
'ban_eos_token',
|
||||||
'add_bos_token',
|
'add_bos_token',
|
||||||
'custom_token_bans',
|
'custom_token_bans',
|
||||||
|
Loading…
Reference in New Issue
Block a user