fix: Embeddings als base64, Modell-ID in der Antwort, Chat ohne Nachrichten abweisen (#1265, #1266, #1267)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -127,10 +127,10 @@ def block_c(emit):
|
||||
rs = last(600, [lambda: call(random.choice(modelle), stream=random.random() < .5, max_tokens=random.randint(30, 300)) for _ in range(10)])
|
||||
emit({"fall": "c_dauerlast", "anfragen": len(rs), "summe": summe(rs), "monitor": mon.end(), "ruhe": ruhe(), "log": logzahlen()})
|
||||
|
||||
def block_vergleich(emit):
|
||||
def block_vergleich(emit, fristen=(60, 0)):
|
||||
"""Dieselbe Mischlast je 600 s mit Schonfrist 60 (Standard) und 0, mit GPU-Auslastung."""
|
||||
modelle = ["bonsai", "darkidol", "ollama-gemma3-4b", "erebus", "cydonia"]
|
||||
for frist in (60, 0):
|
||||
for frist in fristen:
|
||||
restart("idle_secs = 600", f"evict_min_idle_secs = {frist}")
|
||||
smi = subprocess.Popen(["ssh", "-o", "BatchMode=yes", "srv04", "timeout 600 nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits -l 2"], stdout=subprocess.PIPE, text=True)
|
||||
werte = []
|
||||
@ -143,6 +143,10 @@ def block_vergleich(emit):
|
||||
"gpu_proben": len(werte), "anteil_proben_ohne_gpu_last": round(sum(w == 0 for w in werte) / max(len(werte), 1), 2),
|
||||
"monitor": mon.end(), "ruhe": ruhe(), "log": logzahlen()})
|
||||
|
||||
def block_nachmessung(emit):
|
||||
"""Nach #1269: gleiche Mischlast mit der neuen Standard-Schonfrist von 5 s."""
|
||||
block_vergleich(emit, (5,))
|
||||
|
||||
def block_g(emit):
|
||||
restart("idle_secs = 600", "maya_idle_secs = 600")
|
||||
mon = Monitor()
|
||||
|
||||
Reference in New Issue
Block a user