mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-05 14:45:28 +00:00
UI: Fix gpu-layers being ignored (closes #6973)
This commit is contained in:
parent
c375b69413
commit
3fa1a899ae
4 changed files with 4 additions and 4 deletions
|
|
@ -67,7 +67,7 @@ def get_model_metadata(model):
|
|||
elif k.endswith('rope.scaling.factor'):
|
||||
model_settings['compress_pos_emb'] = metadata[k]
|
||||
elif k.endswith('block_count'):
|
||||
model_settings['n_gpu_layers'] = metadata[k] + 1
|
||||
model_settings['gpu_layers'] = metadata[k] + 1
|
||||
|
||||
if 'tokenizer.chat_template' in metadata:
|
||||
template = metadata['tokenizer.chat_template']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue