Skip to content

Commit 825f977

Browse files
authored
Merge pull request #176 from FluffyAIcode/AgentMemory/agent-gan-safe-default-0716
fix(agents): fit default GAN cycle to worker memory
2 parents 0bf8c23 + 4fcee89 commit 825f977

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

docs/ops/distributed-prefill-kv-network.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ Run two logical agents through real multi-round model inference:
308308

309309
```bash
310310
bash scripts/run_agent_gan_demo.sh \
311-
--rounds 2 \
311+
--rounds 1 \
312312
--output-tokens 64 \
313313
--report /tmp/kakeya-agent-gan-demo.json
314314
```
@@ -320,6 +320,10 @@ persisted reports contain only output length/hash and metrics. The report
320320
separates inference-only KV hit rate from whole-workload hit rate including
321321
warmup, plus per-agent and aggregate token throughput/latency.
322322

323+
One Generator/Critic cycle is the safe default for the current 16GB allens
324+
Gemma worker. Additional rounds grow agent histories and may exceed the strict
325+
remote-prefill timeout; increase worker memory/timeout before enabling them.
326+
323327
## Rollback
324328

325329
The cache is an optimization; inference correctness does not depend on it.

scripts/agent_gan_inference_demo.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,13 @@ def main() -> int:
6868
parser.add_argument("--dashboard", default="http://127.0.0.1:8090")
6969
parser.add_argument("--api-key-file", default="~/.kakeya/network_api_key")
7070
parser.add_argument("--tokenizer-id", required=True)
71-
parser.add_argument("--rounds", type=int, default=2)
71+
parser.add_argument(
72+
"--rounds",
73+
type=int,
74+
default=1,
75+
help="Generator/Critic cycles. The 16GB Gemma worker supports one "
76+
"reliably; larger values require more worker memory or timeout.",
77+
)
7278
parser.add_argument("--output-tokens", type=int, default=64)
7379
parser.add_argument("--report", default="/tmp/kakeya-agent-gan-demo.json")
7480
parser.add_argument("--skip-ensure", action="store_true")

0 commit comments

Comments
 (0)