mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 14:17:28 +00:00
Remove CTransformers support (#5807)
This commit is contained in:
parent
13fe38eb27
commit
d423021a48
12 changed files with 10 additions and 163 deletions
|
|
@ -330,7 +330,7 @@ def update_truncation_length(current_length, state):
|
|||
if 'loader' in state:
|
||||
if state['loader'].lower().startswith('exllama'):
|
||||
return state['max_seq_len']
|
||||
elif state['loader'] in ['llama.cpp', 'llamacpp_HF', 'ctransformers']:
|
||||
elif state['loader'] in ['llama.cpp', 'llamacpp_HF']:
|
||||
return state['n_ctx']
|
||||
|
||||
return current_length
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue