mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 17:44:38 +00:00
cap auto threads at 32 due to diminishing returns
This commit is contained in:
parent
0c7f8a1d43
commit
fe11073ce6
1 changed files with 3 additions and 0 deletions
|
@ -384,6 +384,9 @@ def get_default_threads():
|
|||
processor = platform.processor()
|
||||
if 'Intel' in processor:
|
||||
default_threads = (8 if default_threads > 8 else default_threads) #this helps avoid e-cores.
|
||||
if default_threads > 32:
|
||||
print(f"Auto CPU Threads capped at 32 (instead of {default_threads}). You can override this by passing an explicit number of --threads.")
|
||||
default_threads = 32
|
||||
return default_threads
|
||||
|
||||
def pick_existant_file(ntoption,nonntoption):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue