标书生成与审查

This commit is contained in:
zyp
2026-11-14 22:48:33 +08:00
parent fc3420ef31
commit 0dc48ad092
57 changed files with 5067 additions and 13011 deletions
+13
View File
@@ -0,0 +1,13 @@
"""Budgets for durable bid work, independent of interactive chat latency."""
# The socket may spend up to 60s waiting for the next chunk; keep that bounded
# tail, local validation and DB saves strictly inside the 600s execution lease.
STEP_SECONDS = 510
LEASE_SECONDS = 600
RECOVERY_SECONDS = 60
def request_seconds(tokens):
# Observed three-GPU throughput is 14-15 tokens/s. Reserve prefill and
# slower decoding, while leaving a margin before the durable lease expires.
return min(480, max(120, 30 + tokens / 12))