Allow one to six parallel llama.cpp build jobs

This commit is contained in:
Mikei386 committed 2026-10-06 07:10:49 +02:00
1 parent d8aa890ec6
commit b9cf08ea7e
4 files changed
+13 -5

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ class Runtime:
with self.lock:self.process=None
def start(self,revision,backend='CUDA',jobs=1):
if not isinstance(revision,str) or not re.fullmatch(r'(?:b[0-9]{3,8}|v[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}|[a-f0-9]{40})',revision):raise ValueError('Offizielles v-Release, b-Nightly oder vollständigen Commit-SHA wählen.')
if backend not in ('CUDA','CPU') or type(jobs)!=int or not 1<=jobs<=2:raise ValueError('CPU/CUDA und 1–2 Build-Jobs unterstützt.')
if backend not in ('CUDA','CPU') or type(jobs)!=int or not 1<=jobs<=6:raise ValueError('CPU/CUDA und 1–6 Build-Jobs unterstützt.')
with self.lock:
if self.busy:raise ValueError('Ein Build läuft bereits.')
p=self.prerequisites()