Repository navigation
Expand file tree
/
Copy pathKconfig.decode
More file actions
210 lines (166 loc) · 6.1 KB
/
Copy pathKconfig.decode
File metadata and controls
210 lines (166 loc) · 6.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# SPDX-License-Identifier: MIT
# Configuration for paper-memory-decode reproduction profiles.
#
# Selecting one of the decode-* defconfigs sets these values. After
# defconfig selection, plain `make` runs the configured profile via
# Makefile.decode.
menu "Paper-memory-decode reproduction"
config KNLP_REPRODUCE_DECODE
bool "Enable paper-memory-decode reproduction profile"
default n
help
Set by defconfig-decode, defconfig-decode-sat, and
defconfig-decode-full. When set, plain `make` runs the
configured reproduction profile.
if KNLP_REPRODUCE_DECODE
config KNLP_REPRODUCE_PROFILE
string "Reproduction profile name"
default "decode"
help
One of: decode, decode-sat, decode-full. Drives stage
selection in tools/reproduce/paper_memory_decode/run.py.
config KNLP_WORKTREE_ROOT
string "Parent directory for cloned companion repos"
default ".."
help
Companion repos (vllm, flashinfer, lmcache,
paper-memory-decode) are cloned into this directory.
Default is the parent of the knlp checkout.
config KNLP_RESULTS_ROOT
string "Results directory"
default "./results/decode"
config KNLP_BUILD_ROOT
string "Build/cache directory"
default "./build/decode"
# ── Companion repos ────────────────────────────────────────────
config KNLP_VLLM_REPO
string "vLLM repo URL"
default "https://github.com/mcgrof/vllm.git"
# CLI override for the vLLM git ref:
# make defconfig-<profile> VLLM_REF=my-branch
config KNLP_VLLM_REF_SET_BY_CLI
bool
default $(shell, scripts/check-cli-set-var.sh VLLM_REF)
config KNLP_VLLM_REF
string "vLLM git ref (branch, tag, or commit)"
default "$(VLLM_REF)" if KNLP_VLLM_REF_SET_BY_CLI
default "asymmetric-kv-plumbing"
config KNLP_VLLM_DIR
string "vLLM clone directory (relative to WORKTREE_ROOT)"
default "vllm"
config KNLP_FLASHINFER_REPO
string "FlashInfer repo URL"
default "https://github.com/mcgrof/flashinfer.git"
# CLI override for the FlashInfer git ref:
# make defconfig-<profile> FLASHINFER_REF=my-branch
config KNLP_FLASHINFER_REF_SET_BY_CLI
bool
default $(shell, scripts/check-cli-set-var.sh FLASHINFER_REF)
config KNLP_FLASHINFER_REF
string "FlashInfer git ref"
default "$(FLASHINFER_REF)" if KNLP_FLASHINFER_REF_SET_BY_CLI
default "asym-prefill-refactor-stage"
config KNLP_FLASHINFER_DIR
string "FlashInfer clone directory"
default "flashinfer"
config KNLP_LMCACHE_REPO
string "LMCache repo URL"
default "https://github.com/mcgrof/LMCache.git"
# CLI override detection for the LMCache git ref. Lets a one-off
# bench point at a feature branch without hand-editing .config:
# make defconfig-decode-serdes LMCACHE_REF=my-branch
# make
config KNLP_LMCACHE_REF_SET_BY_CLI
bool
default $(shell, scripts/check-cli-set-var.sh LMCACHE_REF)
config KNLP_LMCACHE_REF
string "LMCache git ref"
default "$(LMCACHE_REF)" if KNLP_LMCACHE_REF_SET_BY_CLI
default "serde-multi-output-extensions" if KNLP_REPRODUCE_PROFILE = "decode-serdes"
default "asymmetric-kv-codec"
config KNLP_LMCACHE_DIR
string "LMCache clone directory"
default "lmcache"
config KNLP_PAPER_REPO
string "Paper repo URL"
default "https://github.com/mcgrof/paper-memory-decode.git"
config KNLP_PAPER_REF
string "Paper git ref"
default "main"
config KNLP_PAPER_DIR
string "Paper clone directory"
default "paper-memory-decode"
# ── Models / datasets ──────────────────────────────────────────
config KNLP_MODEL_QWEN25_7B
string "Qwen2.5-7B HF model id"
default "Qwen/Qwen2.5-7B-Instruct"
config KNLP_DATASET_WIKITEXT
string "WikiText dataset name"
default "wikitext"
config KNLP_DATASET_GSM8K
string "GSM8K dataset name"
default "gsm8k"
# ── Telemetry ──────────────────────────────────────────────────
config KNLP_ENABLE_WANDB
bool "Mirror metrics to Weights & Biases"
default n
help
When enabled, metrics also stream to W&B. Local JSONL is
always canonical. Reads WANDB_API_KEY from environment.
config KNLP_WANDB_PROJECT
string "W&B project name"
depends on KNLP_ENABLE_WANDB
default "knlp-memory-decode"
config KNLP_WANDB_ENTITY
string "W&B entity (leave blank for default)"
depends on KNLP_ENABLE_WANDB
default ""
config KNLP_WANDB_MODE
string "W&B mode (online, offline, disabled)"
depends on KNLP_ENABLE_WANDB
default "online"
config KNLP_ENABLE_TRACKERIO
bool "Mirror metrics to trackerio"
default n
config KNLP_TRACKERIO_PROJECT
string "trackerio project name"
depends on KNLP_ENABLE_TRACKERIO
default "knlp-memory-decode"
config KNLP_TRACKERIO_URL
string "trackerio base URL"
depends on KNLP_ENABLE_TRACKERIO
default ""
# ── Run policy ─────────────────────────────────────────────────
config KNLP_UPLOAD_ARTIFACTS
bool "Upload artifacts (manifest, plots, report) to W&B/trackerio"
default n
depends on KNLP_ENABLE_WANDB || KNLP_ENABLE_TRACKERIO
config KNLP_ALLOW_HARDWARE_SKIPS
bool "Allow stages to skip when required hardware is missing"
default y
help
When set, stages emit a structured skip entry instead of
failing when their required hardware (e.g. B200, MI300X) is
not present. Skips are recorded in skips.json and surfaced
in the run report.
config KNLP_FAIL_ON_DIRTY_GIT
bool "Fail if any companion repo has uncommitted changes"
default y
config KNLP_REQUIRE_PINNED_REFS
bool "Require all companion-repo refs to be pinned commit SHAs"
default n
help
When set, refs must be 40-char commit SHAs (not branch names).
Useful for archival reproduction; relax for development.
config KNLP_PARALLEL_GPUS
string "GPU parallelism (auto, off, or fixed integer)"
default "auto"
help
When the host has multiple GPUs, the orchestrator can shard
independent stages across them with CUDA_VISIBLE_DEVICES.
This is embarrassingly parallel; not tensor parallel.
config KNLP_MAX_PARALLEL_GPU_JOBS
int "Maximum concurrent GPU jobs"
default 8
endif # KNLP_REPRODUCE_DECODE
endmenu