Mooncake/mooncake-integration/ollama/scripts
zbtrs2 897a11bd34 ollama-kvcache: add benchmarks and orchestration scripts
agent_swarm drives the core scenario: several agents share a long repo
context and differ only in a short instruction. It runs the workload with
sharing off (baseline) and on, erasing llama's own per-slot cache between
runs so the comparison isolates cross-process reuse, and reports honest
end-to-end TTFT, recomputed prefill tokens, hit rate and throughput.
smoke_e2e is a minimal two-agent cross-GPU reuse check; microbench_store
and microbench_striped measure raw and striped store bandwidth;
run_matrix sweeps a config and plot renders the figures.

scripts/env.sh keeps every toolchain, cache and runtime directory under
an out-of-tree state root so the source stays clean and nothing is
written under /. The setup_* scripts install a local Go toolchain, a
venv with mooncake-transfer-engine, a CUDA build of llama.cpp and the
GGUF models; the *_start/stop and demo scripts bring the stack up and
down, scoped to this integration's own ports and paths.
2026-06-29 02:13:48 +08:00
..
bridged_start.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
demo.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
env.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
gen_protos.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
llama_start.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
master_start.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
master_stop.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
proxy_start.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
setup_go.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
setup_llama.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
setup_models.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
setup_py.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
stack_down.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00
stack_up.sh ollama-kvcache: add benchmarks and orchestration scripts 2026-06-29 02:13:48 +08:00