Repository navigation
Expand file tree
/
Copy pathKconfig.quant
More file actions
107 lines (86 loc) · 3.19 KB
/
Copy pathKconfig.quant
File metadata and controls
107 lines (86 loc) · 3.19 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
# SPDX-License-Identifier: MIT
# Configuration for the FP8 KV-cache failure-atlas validation profile.
#
# Selecting defconfig-quant-fp8-validate (the deterministic, hardware-light
# reproducibility lock) or defconfig-quant-fp8-atlas (the full GPU fleet)
# sets these values. After defconfig selection, plain `make` runs the
# configured profile via Makefile.quant (doctor -> run -> report).
#
# This is the HF-only fake-quant harness; it does NOT touch the serving
# stack (vLLM / FlashInfer / LMCache). That lives in the decode
# reproduction (make defconfig-decode) and stays by-reference here.
menu "FP8 KV-cache failure-atlas validation"
config KNLP_QUANT_FP8
bool "Enable FP8 KV-cache validation profile"
default n
help
Set by defconfig-quant-fp8-validate and
defconfig-quant-fp8-atlas. When set, plain `make` runs the
configured fake-quant validation profile via Makefile.quant.
if KNLP_QUANT_FP8
config KNLP_QUANT_FP8_PROFILE
string "Validation profile name"
default "validate"
help
One of: validate, smoke, atlas. "validate" runs every atlas
runner's --self-test (tiny in-process models, CPU, offline) as
a deterministic lock. "atlas" runs the real fake-quant fleet
(multi-seed CIs, long-context, preflight, recovery) on a GPU.
config KNLP_QUANT_FP8_PYTHON
string "Python interpreter for the runners"
default "~/envs/knlp-serdes/bin/python"
help
The repo-default python3 has a broken torch; the runners are
subprocessed under this interpreter. The orchestrator itself
is pure stdlib and runs under any Python.
config KNLP_QUANT_FP8_RESULTS_ROOT
string "Results directory"
default "./results/quant-fp8"
config KNLP_QUANT_FP8_MODELS
string "Models for the atlas profile"
default "core"
help
"core" (catastrophic anchor + V-residual + tolerant control +
partial-RoPE), "all" (every cached model), or a space-separated
list of short names. Unused by the validate profile.
config KNLP_QUANT_FP8_DATASET
string "Eval dataset (atlas profile)"
default "wikitext-103-raw-v1"
config KNLP_QUANT_FP8_SEQ_LEN
int "Prompt sequence length (atlas profile)"
default 1024
config KNLP_QUANT_FP8_NUM_PROMPTS
int "Prompts per seed (atlas multi-seed)"
default 16
config KNLP_QUANT_FP8_SEEDS
string "Seeds for multi-seed CIs (atlas profile)"
default "0 1 2"
config KNLP_QUANT_FP8_CONTEXTS
string "Long-context lengths (atlas profile)"
default "2048 8192 16384"
config KNLP_QUANT_FP8_DEVICE
string "Torch device (atlas profile)"
default "cuda:0"
config KNLP_QUANT_FP8_DTYPE
string "Model dtype (atlas profile)"
default "bfloat16"
config KNLP_QUANT_FP8_RUN_MULTISEED
bool "Run multi-seed CIs (atlas profile)"
default y
config KNLP_QUANT_FP8_RUN_LONGCTX
bool "Run long-context 2K/8K/16K (atlas profile)"
default y
config KNLP_QUANT_FP8_RUN_PREFLIGHT
bool "Run the preflight scanner (atlas profile)"
default y
config KNLP_QUANT_FP8_RUN_RECOVERY
bool "Run the recovery Pareto (atlas profile)"
default y
config KNLP_QUANT_FP8_ALLOW_HARDWARE_SKIPS
bool "Allow runners to skip when required hardware is missing"
default y
help
When set, a missing GPU or torch downgrades to a warning and the
runnable subset proceeds, instead of failing the doctor.
endif # KNLP_QUANT_FP8
endmenu