eewer commited on
Commit
58cf8f4
·
verified ·
1 Parent(s): 82179eb

b300 megatron+sglang env manifest, freezes, build/restore scripts

Browse files
b300/build_sglang_b300.sh ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # SGLang serving venv for b300 eval. Kept separate from .b300-runtime: SGLang
3
+ # pins its own torch and would fight the Megatron stack.
4
+ # kernels==0.14.1 is pinned -- 0.15.2+ breaks the sglang import (found on b200).
5
+ set -uo pipefail
6
+ B=/KRAFTON/WORKSPACE/wbl-workspace/posttraining-2606
7
+ V=$B/.b300-sglang
8
+ LOG=$B/logs/sglang-build.log
9
+ mkdir -p $B/logs
10
+ log(){ echo "[$(date '+%F %H:%M:%S')] $*" | tee -a "$LOG"; }
11
+ [ -x $V/bin/python ] || $B/.b300-runtime/bin/python -m venv $V >>"$LOG" 2>&1
12
+ log "venv: $($V/bin/python --version 2>&1)"
13
+ $V/bin/python -m pip install -q --upgrade pip >>"$LOG" 2>&1
14
+ log "installing sglang"
15
+ $V/bin/python -m pip install --no-cache-dir "sglang[all]" >>"$LOG" 2>&1
16
+ log "sglang rc=$?"
17
+ $V/bin/python -m pip install --no-cache-dir "kernels==0.14.1" >>"$LOG" 2>&1
18
+ log "kernels pin rc=$?"
19
+ log "=== model support check ==="
20
+ $V/bin/python - <<'PY' 2>&1 | tee -a "$LOG"
21
+ try:
22
+ import sglang; print(" sglang", sglang.__version__)
23
+ from sglang.srt.models.registry import ModelRegistry
24
+ for arch in ["NemotronHForCausalLM","Qwen3MoeForCausalLM","Qwen3_5MoeForCausalLM"]:
25
+ try:
26
+ cls = ModelRegistry.resolve_model_cls([arch])
27
+ print(f" OK {arch} -> {cls}")
28
+ except Exception as e:
29
+ print(f" MISS {arch}: {type(e).__name__}: {str(e)[:70]}")
30
+ except Exception as e:
31
+ print(" sglang import FAILED:", type(e).__name__, str(e)[:120])
32
+ PY
33
+ log "SGLANG BUILD DONE"
b300/fix2.sh ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Second repair. --no-deps left torch 2.12.0 without a matching NCCL
3
+ # (undefined symbol: ncclCommResume). Install torch WITH its dependency set from
4
+ # the cu130 index so the whole nvidia stack is consistent, then re-verify.
5
+ set -uo pipefail
6
+ RT=/KRAFTON/WORKSPACE/wbl-workspace/posttraining-2606/.b300-runtime
7
+ PY=$RT/bin/python
8
+ LOG=$RT/restore.log
9
+ log(){ echo "[$(date '+%F %H:%M:%S')] FIX2 $*" | tee -a "$LOG"; }
10
+ log "reinstalling torch 2.12.0+cu130 WITH deps"
11
+ $PY -m pip install --no-cache-dir --force-reinstall \
12
+ torch==2.12.0 --index-url https://download.pytorch.org/whl/cu130 >>"$LOG" 2>&1
13
+ log "torch rc=$?"
14
+ log "=== verification ==="
15
+ $PY - <<'PY' 2>&1 | tee -a "$LOG"
16
+ import importlib
17
+ for m in ["torch","transformer_engine","megatron.core","megatron.bridge","transformers","mamba_ssm","causal_conv1d"]:
18
+ try:
19
+ mod=importlib.import_module(m)
20
+ print(f" OK {m:20s} {getattr(mod,'__version__','')}")
21
+ except Exception as e:
22
+ print(f" MISS {m:20s} {type(e).__name__}: {str(e)[:70]}")
23
+ PY
24
+ log "FIX2 DONE"
b300/fix3.sh ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # TE 2.14.0 wants cublasLtGroupedMatrixLayoutInit_internal, absent even from the
3
+ # newest nvidia-cublas 13.1.1.3. The known-good b300 stack (jihuny) runs TE
4
+ # 2.14.1, so match it. --no-deps keeps the torch 2.12.0+cu130 pin intact, which
5
+ # a plain install has already disturbed twice.
6
+ set -uo pipefail
7
+ RT=/KRAFTON/WORKSPACE/wbl-workspace/posttraining-2606/.b300-runtime
8
+ PY=$RT/bin/python; LOG=$RT/restore.log
9
+ log(){ echo "[$(date '+%F %H:%M:%S')] FIX3 $*" | tee -a "$LOG"; }
10
+ log "upgrading transformer-engine 2.14.0 -> 2.14.1"
11
+ $PY -m pip install --no-cache-dir --no-deps --upgrade \
12
+ transformer_engine==2.14.1 transformer_engine_cu13==2.14.1 transformer_engine_torch==2.14.1 >>"$LOG" 2>&1
13
+ log "te rc=$?"
14
+ log "=== verification ==="
15
+ $PY - <<'PY' 2>&1 | tee -a "$LOG"
16
+ import importlib
17
+ for m in ["torch","transformer_engine","megatron.core","megatron.bridge","transformers","mamba_ssm","causal_conv1d"]:
18
+ try:
19
+ mod=importlib.import_module(m); print(f" OK {m:20s} {getattr(mod,'__version__','')}")
20
+ except Exception as e: print(f" MISS {m:20s} {type(e).__name__}: {str(e)[:70]}")
21
+ PY
22
+ log "FIX3 DONE"
b300/fix_b300_env.sh ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Repair pass. Two faults from the first run:
3
+ # 1. torch==2.12.0 was installed, then silently downgraded to 2.11.0 by a later
4
+ # install in the chain. TE 2.14.0 needs cuBLASLt 13.1+ for
5
+ # cublasLtGroupedMatrixLayoutInit_internal, which 2.11.0 does not ship, so
6
+ # TE and everything importing it died with an undefined-symbol OSError.
7
+ # 2. megatron-bridge never landed (absent from pip list).
8
+ # Fix: install megatron-bridge first, then pin torch LAST so nothing can move it,
9
+ # and verify the exact symbol resolves rather than trusting pip's exit code.
10
+ set -uo pipefail
11
+ RT=/KRAFTON/WORKSPACE/wbl-workspace/posttraining-2606/.b300-runtime
12
+ PY=$RT/bin/python
13
+ LOG=$RT/restore.log
14
+ log(){ echo "[$(date '+%F %H:%M:%S')] FIX $*" | tee -a "$LOG"; }
15
+
16
+ log "installing megatron-bridge (before the torch pin)"
17
+ $PY -m pip install --no-cache-dir megatron-bridge >>"$LOG" 2>&1
18
+ log "megatron-bridge pip rc=$?"
19
+
20
+ log "pinning torch 2.12.0+cu130 LAST so nothing downgrades it"
21
+ $PY -m pip install --no-cache-dir --force-reinstall --no-deps \
22
+ torch==2.12.0 --index-url https://download.pytorch.org/whl/cu130 >>"$LOG" 2>&1
23
+ log "torch rc=$?"
24
+ # --no-deps keeps the pin, so cuBLAS must be brought up explicitly.
25
+ $PY -m pip install --no-cache-dir "nvidia-cublas>=13.1.0.3" >>"$LOG" 2>&1
26
+ log "cublas rc=$?"
27
+
28
+ log "=== verification ==="
29
+ $PY - <<'PY' 2>&1 | tee -a "$LOG"
30
+ import importlib
31
+ for m in ["torch","transformer_engine","megatron.core","megatron.bridge","transformers","mamba_ssm","causal_conv1d"]:
32
+ try:
33
+ mod = importlib.import_module(m)
34
+ print(f" OK {m:20s} {getattr(mod,'__version__','')}")
35
+ except Exception as e:
36
+ print(f" MISS {m:20s} {type(e).__name__}: {str(e)[:80]}")
37
+ PY
38
+ log "FIX PASS DONE"
b300/gpu_gate.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ print(" device ", torch.cuda.get_device_name(0))
3
+ print(" capability ", torch.cuda.get_device_capability(0))
4
+ print(" arch_list ", torch.cuda.get_arch_list())
5
+ a = torch.randn(4096, 4096, device="cuda", dtype=torch.bfloat16)
6
+ b = torch.randn(4096, 4096, device="cuda", dtype=torch.bfloat16)
7
+ print(" matmul ok ", torch.matmul(a, b).float().abs().mean().item() > 0)
8
+ import transformer_engine.pytorch as te
9
+ lin = te.Linear(1024, 1024, params_dtype=torch.bfloat16).cuda()
10
+ print(" TE Linear ", tuple(lin(torch.randn(8, 1024, device="cuda", dtype=torch.bfloat16)).shape))
11
+ from mamba_ssm.ops.selective_scan_interface import selective_scan_fn
12
+ import causal_conv1d
13
+ from causal_conv1d import causal_conv1d_fn
14
+ x = torch.randn(2, 64, 128, device="cuda", dtype=torch.bfloat16)
15
+ w = torch.randn(64, 4, device="cuda", dtype=torch.bfloat16)
16
+ print(" causal_conv1d CUDA op", tuple(causal_conv1d_fn(x, w).shape))
17
+ print("GPU_GATE_PASS")
b300/manifest.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cluster": "b300",
3
+ "gpu": "NVIDIA B300 SXM6 AC",
4
+ "compute_capability": "10.3",
5
+ "driver": "580.126.09",
6
+ "python": "3.12.13",
7
+ "megatron_runtime": "/KRAFTON/WORKSPACE/wbl-workspace/posttraining-2606/.b300-runtime",
8
+ "sglang_venv": "/KRAFTON/WORKSPACE/wbl-workspace/posttraining-2606/.b300-sglang",
9
+ "pins": {
10
+ "torch": "2.12.0+cu130",
11
+ "torchvision": "0.27.0+cu130",
12
+ "nvidia-cublas": "13.6.1.10",
13
+ "transformer_engine": "2.14.1",
14
+ "megatron-core": "0.18.2",
15
+ "megatron-bridge": "0.5.1",
16
+ "transformers": "5.8.1",
17
+ "mamba_ssm": "2.3.2.post1",
18
+ "causal_conv1d": "1.6.2.post1",
19
+ "flash_attn": "2.7.4.post1",
20
+ "sglang": "0.5.16",
21
+ "kernels": "0.14.1"
22
+ },
23
+ "gotchas": [
24
+ "nvidia-cublas MUST be 13.6.1.10. torch 2.12.0 caps it at <=13.1.1.3, but TE 2.14.1 needs cublasLtGroupedMatrixLayoutInit_internal which 13.1.1.3 lacks; install past the cap with --no-deps.",
25
+ "torchvision must be 0.27.x to match torch 2.12; 0.28 raises 'operator torchvision::nms does not exist'.",
26
+ "megatron-core 0.13.1 lacks megatron.core.distributed.fsdp that megatron-bridge 0.5.1 imports; upgrade core to 0.18.2.",
27
+ "Never use pip --no-deps to (re)install torch itself: it skips NCCL and yields 'undefined symbol: ncclCommResume'.",
28
+ "hub 1.23 Xet downloader fails here with 'Reqwest error: builder error'; set HF_HUB_DISABLE_XET=1.",
29
+ "arch_list has no sm_103 yet all CUDA ops run on the B300: sm_100 cubins are binary compatible with sm_103.",
30
+ "sglang 0.5.16 resolves NemotronHForCausalLM natively; Qwen3.5-MoE still needs a git build."
31
+ ]
32
+ }
b300/pip-freeze-megatron.txt ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ absl-py==2.5.0
2
+ accelerate==1.14.0
3
+ aiobotocore==3.9.0
4
+ aiohappyeyeballs==2.7.1
5
+ aiohttp==3.14.1
6
+ aiohttp-cors==0.8.1
7
+ aioitertools==0.13.0
8
+ aiosignal==1.4.0
9
+ alembic==1.19.0
10
+ altair==6.2.2
11
+ aniso8601==10.0.1
12
+ annotated-doc==0.0.4
13
+ annotated-types==0.7.0
14
+ anthropic==0.116.0
15
+ antlr4-python3-runtime==4.9.3
16
+ anyio==4.14.2
17
+ apache-tvm-ffi==0.1.13.post2
18
+ asciinema==2.4.0
19
+ asttokens==3.0.2
20
+ attrs==26.1.0
21
+ av==18.0.0
22
+ bitarray==3.10.0
23
+ bitstring==4.4.0
24
+ blessed==1.47.0
25
+ blinker==1.9.0
26
+ boto3==1.43.49
27
+ botocore==1.43.49
28
+ braceexpand==0.1.7
29
+ bracex==3.0.1
30
+ cachetools==7.1.4
31
+ causal_conv1d==1.6.2.post1
32
+ certifi==2026.6.17
33
+ cffi==2.1.0
34
+ charset-normalizer==3.4.9
35
+ click==8.4.2
36
+ cloudpickle==3.1.2
37
+ cmake==4.4.0
38
+ colorful==0.5.8
39
+ comet_ml==3.58.4
40
+ configobj==5.0.9
41
+ contourpy==1.3.3
42
+ cryptography==49.0.0
43
+ cuda-bindings==13.0.3
44
+ cuda-core==1.0.1
45
+ cuda-pathfinder==1.2.2
46
+ cuda-python==13.3.1
47
+ cuda-tile==1.5.0
48
+ cuda-toolkit==13.0.2
49
+ cycler==0.12.1
50
+ databricks-sdk==0.124.0
51
+ datasets==5.0.0
52
+ decorator==5.3.1
53
+ defusedxml==0.7.1
54
+ deprecation==2.1.0
55
+ diffusers==0.39.0
56
+ dill==0.4.1
57
+ distlib==0.4.3
58
+ distro==1.9.0
59
+ docker==7.2.0
60
+ docstring_parser==0.18.0
61
+ dulwich==1.2.12
62
+ ebmlite==3.4.1
63
+ editor==1.8.0
64
+ einops==0.8.2
65
+ everett==3.1.0
66
+ executing==2.2.1
67
+ fastapi==0.139.0
68
+ fastuuid==0.14.0
69
+ filelock==3.29.0
70
+ filetype==1.2.0
71
+ fla-core==0.5.2
72
+ flash-linear-attention==0.5.2
73
+ flash_attn==2.7.4.post1
74
+ flashinfer-cubin==0.6.8.post1
75
+ flashinfer-python==0.6.8.post1
76
+ Flask==3.1.3
77
+ flask-cors==6.0.5
78
+ Flask-RESTful==0.3.10
79
+ fonttools==4.63.0
80
+ frozenlist==1.8.0
81
+ fsspec==2026.4.0
82
+ ftfy==6.3.1
83
+ gitdb==4.0.12
84
+ GitPython==3.1.52
85
+ google-api-core==2.31.0
86
+ google-auth==2.56.0
87
+ googleapis-common-protos==1.75.0
88
+ graphene==3.4.3
89
+ graphql-core==3.2.11
90
+ graphql-relay==3.2.0
91
+ greenlet==3.5.3
92
+ grpcio==1.82.1
93
+ grpcio-tools==1.81.1
94
+ gunicorn==26.0.0
95
+ h11==0.16.0
96
+ h2==4.3.0
97
+ hf-xet==1.5.1
98
+ hpack==4.2.0
99
+ httpcore==1.0.9
100
+ httptools==0.8.0
101
+ httpx==0.28.1
102
+ httpx-sse==0.4.3
103
+ huey==3.3.4
104
+ huggingface_hub==1.23.0
105
+ hydra-core==1.3.2
106
+ hyperframe==6.1.0
107
+ idna==3.18
108
+ importlib_metadata==8.9.0
109
+ inquirer==3.4.1
110
+ ipython==9.15.0
111
+ ipython_pygments_lexers==1.1.1
112
+ itsdangerous==2.2.0
113
+ jedi==0.20.0
114
+ Jinja2==3.1.6
115
+ jinxed==2.1.0
116
+ jiter==0.16.0
117
+ jmespath==1.1.0
118
+ joblib==1.5.3
119
+ jsonschema==4.26.0
120
+ jsonschema-specifications==2025.9.1
121
+ kiwisolver==1.5.0
122
+ lark==1.3.1
123
+ litellm==1.92.0
124
+ Mako==1.4.1
125
+ mamba_ssm==2.3.2.post1
126
+ Markdown==3.10.2
127
+ markdown-it-py==4.2.0
128
+ MarkupSafe==3.0.3
129
+ matplotlib==3.11.1
130
+ matplotlib-inline==0.2.2
131
+ mcp==1.28.1
132
+ mdurl==0.1.2
133
+ megatron-bridge==0.5.1
134
+ megatron-core==0.18.2
135
+ megatron-energon==6.0.1
136
+ mistral_common==1.11.7
137
+ ml_dtypes==0.5.4
138
+ mlflow==3.15.1
139
+ mlflow-skinny==3.15.1
140
+ mlflow-tracing==3.15.1
141
+ mpmath==1.3.0
142
+ msgpack==1.2.1
143
+ multi-storage-client==1.0.1
144
+ multidict==6.7.1
145
+ multiprocess==0.70.19
146
+ narwhals==2.24.0
147
+ networkx==3.6.1
148
+ ninja==1.13.0
149
+ numpy==1.26.4
150
+ nvdlfw_inspect==0.2.2
151
+ nvidia-cublas==13.6.1.10
152
+ nvidia-cuda-cupti==13.0.85
153
+ nvidia-cuda-nvdisasm==13.3.73
154
+ nvidia-cuda-nvrtc==13.0.88
155
+ nvidia-cuda-runtime==13.0.96
156
+ nvidia-cudnn-cu13==9.20.0.48
157
+ nvidia-cudnn-frontend==1.26.0
158
+ nvidia-cufft==12.0.0.61
159
+ nvidia-cufile==1.15.1.6
160
+ nvidia-curand==10.4.0.35
161
+ nvidia-cusolver==12.0.4.66
162
+ nvidia-cusparse==12.6.3.3
163
+ nvidia-cusparselt-cu13==0.8.1
164
+ nvidia-cutlass-dsl==4.7.0
165
+ nvidia-cutlass-dsl-libs-base==4.7.0
166
+ nvidia-cutlass-dsl-libs-core==4.7.0
167
+ nvidia-cutlass-dsl-libs-cu12==4.7.0
168
+ nvidia-ml-py==13.610.43
169
+ nvidia-modelopt==0.42.0
170
+ nvidia-nccl-cu13==2.29.7
171
+ nvidia-nvjitlink==13.0.88
172
+ nvidia-nvshmem-cu13==3.4.5
173
+ nvidia-nvtx==13.0.85
174
+ nvidia-resiliency-ext==0.6.0
175
+ nvtx==0.2.15
176
+ omegaconf==2.3.1
177
+ onnx==1.22.0
178
+ onnx-ir==0.2.1
179
+ onnxscript==0.7.1
180
+ open_clip_torch==3.3.0
181
+ openai==2.45.0
182
+ opencensus==0.11.4
183
+ opencensus-context==0.1.3
184
+ opentelemetry-api==1.43.0
185
+ opentelemetry-exporter-prometheus==0.64b0
186
+ opentelemetry-proto==1.43.0
187
+ opentelemetry-sdk==1.43.0
188
+ opentelemetry-semantic-conventions==0.64b0
189
+ optree==0.19.1
190
+ orjson==3.11.9
191
+ packaging==26.2
192
+ pandas==2.3.3
193
+ parso==0.8.7
194
+ peft==0.20.0
195
+ pexpect==4.9.0
196
+ pillow==12.3.0
197
+ platformdirs==4.10.0
198
+ postgrest==2.31.0
199
+ prettytable==3.18.0
200
+ prometheus_client==0.25.0
201
+ prompt_toolkit==3.0.52
202
+ propcache==0.5.2
203
+ proto-plus==1.28.1
204
+ protobuf==6.33.6
205
+ psutil==7.2.2
206
+ psycopg2-binary==2.9.12
207
+ ptyprocess==0.7.0
208
+ PuLP==3.3.2
209
+ pure_eval==0.2.3
210
+ py-spy==0.4.2
211
+ pyarrow==24.0.0
212
+ pyasn1==0.6.4
213
+ pyasn1_modules==0.4.2
214
+ pycountry==26.2.16
215
+ pycparser==3.0
216
+ pydantic==2.13.4
217
+ pydantic-extra-types==2.11.1
218
+ pydantic-settings==2.14.2
219
+ pydantic_core==2.46.4
220
+ pydeck==0.9.3
221
+ Pygments==2.20.0
222
+ PyJWT==2.13.0
223
+ pylatexenc==2.10
224
+ pyparsing==3.3.2
225
+ python-box==6.1.0
226
+ python-dateutil==2.9.0.post0
227
+ python-discovery==1.4.4
228
+ python-dotenv==1.2.2
229
+ python-multipart==0.0.32
230
+ pytz==2026.3.post1
231
+ PyYAML==6.0.3
232
+ pyzmq==27.1.0
233
+ qwen-vl-utils==0.0.14
234
+ ray==2.54.0
235
+ readchar==4.2.2
236
+ realtime==2.31.0
237
+ referencing==0.37.0
238
+ regex==2026.7.10
239
+ requests==2.34.2
240
+ requests-toolbelt==1.0.0
241
+ rich==15.0.0
242
+ rpds-py==2026.6.3
243
+ ruamel.yaml==0.19.1
244
+ runs==1.3.0
245
+ s3fs==2026.4.0
246
+ s3transfer==0.19.1
247
+ safetensors==0.8.0
248
+ scikit-learn==1.9.0
249
+ scipy==1.14.1
250
+ semantic-version==2.10.0
251
+ sentencepiece==0.2.2
252
+ sentry-sdk==2.65.0
253
+ setproctitle==1.3.7
254
+ setuptools==78.1.0
255
+ sglang-router @ https://github.com/zhuzilin/sgl-router/releases/download/v0.3.2-5f8d397/sglang_router-0.3.2-cp38-abi3-manylinux_2_28_x86_64.whl#sha256=3936cce75df76ba8df27c28ab34f378da361561e6c5261557ee4742bbfa9f2b9
256
+ shellingham==1.5.4
257
+ simplejson==4.1.1
258
+ six==1.17.0
259
+ skops==0.14.0
260
+ smart_open==8.0.1
261
+ smmap==5.0.3
262
+ sniffio==1.3.1
263
+ sortedcontainers==2.4.0
264
+ soundfile==0.14.0
265
+ SQLAlchemy==2.0.51
266
+ sqlparse==0.5.5
267
+ sse-starlette==3.4.5
268
+ stack-data==0.6.3
269
+ starlette==1.3.1
270
+ storage3==2.31.0
271
+ streamlit==1.59.2
272
+ StrEnum==0.4.15
273
+ supabase==2.31.0
274
+ supabase-auth==2.31.0
275
+ supabase-functions==2.31.0
276
+ sympy==1.14.0
277
+ tabulate==0.10.0
278
+ tenacity==9.1.4
279
+ tensorboard==2.21.0
280
+ tensorboard-data-server==0.7.2
281
+ tensorstore==0.1.85
282
+ terminal-bench @ file:///KRAFTON/WORKSPACE/wbl-workspace/posttraining-2606/.b300-runtime/src/terminal-bench
283
+ threadpoolctl==3.6.0
284
+ tibs==0.5.7
285
+ tiktoken==0.13.0
286
+ timm==1.0.28
287
+ tokenizers==0.22.2
288
+ toml==0.10.2
289
+ torch==2.12.0+cu130
290
+ torchvision==0.27.0+cu130
291
+ tqdm==4.68.4
292
+ traitlets==5.15.1
293
+ transformer_engine==2.14.1
294
+ transformer_engine_cu13==2.14.1
295
+ transformer_engine_torch==2.14.1
296
+ transformers==5.8.1
297
+ triton==3.7.0
298
+ typer==0.27.0
299
+ typing-inspection==0.4.2
300
+ typing_extensions==4.15.0
301
+ tzdata==2025.3
302
+ urllib3==2.7.0
303
+ uvicorn==0.51.0
304
+ virtualenv==21.6.1
305
+ wandb==0.28.0
306
+ watchdog==6.0.0
307
+ wcmatch==10.2.1
308
+ wcwidth==0.8.2
309
+ webdataset==1.0.2
310
+ websockets==15.0.1
311
+ Werkzeug==3.1.8
312
+ wheel==0.47.0
313
+ wrapt==2.2.2
314
+ wurlitzer==3.1.1
315
+ xattr==1.3.0
316
+ xmod==1.10.0
317
+ xxhash==3.8.1
318
+ yarl==1.24.2
319
+ zipp==4.1.0
b300/pip-freeze-sglang.txt ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ addict==2.4.0
2
+ aiohappyeyeballs==2.7.1
3
+ aiohttp==3.14.3
4
+ aiosignal==1.4.0
5
+ airportsdata==20260803
6
+ annotated-doc==0.0.5
7
+ annotated-types==0.8.0
8
+ anthropic==0.120.2
9
+ antlr4-python3-runtime==4.9.3
10
+ anyio==4.14.2
11
+ apache-tvm-ffi==0.1.11
12
+ asttokens==3.0.2
13
+ attrs==26.1.0
14
+ av==16.1.0
15
+ blobfile==3.0.0
16
+ build==1.5.0
17
+ cache_dit==1.3.0
18
+ certifi==2026.7.22
19
+ cffi==2.1.1
20
+ charset-normalizer==3.4.9
21
+ click==8.4.2
22
+ cloudpickle==3.1.2
23
+ compressed-tensors==0.17.1
24
+ cuda-bindings==13.3.1
25
+ cuda-core==1.0.1
26
+ cuda-pathfinder==1.6.0
27
+ cuda-python==13.3.1
28
+ cuda-tile==1.5.0
29
+ cuda-toolkit==13.0.2
30
+ datasets==5.0.1
31
+ decorator==5.3.1
32
+ diffusers==0.37.0
33
+ dill==0.4.1
34
+ diskcache==5.6.3
35
+ distro==1.9.0
36
+ docstring_parser==0.18.0
37
+ easydict==1.13
38
+ einops==0.8.2
39
+ executing==2.2.1
40
+ fastapi==0.141.1
41
+ filecheck==1.0.3
42
+ filelock==3.32.2
43
+ flash-attn-4==4.0.0b19
44
+ flashinfer-python==0.6.14
45
+ frozenlist==1.8.0
46
+ fsspec==2026.6.0
47
+ gguf==0.19.0
48
+ googleapis-common-protos==1.75.0
49
+ granian==2.8.0
50
+ grpcio==1.83.0
51
+ grpcio-health-checking==1.81.1
52
+ grpcio-reflection==1.81.1
53
+ h11==0.16.0
54
+ helion==0.2.6
55
+ hf-xet==1.6.0
56
+ httpcore==1.0.9
57
+ httpx==0.28.1
58
+ huggingface_hub==1.26.0
59
+ humanize==4.16.0
60
+ humming-kernels==0.1.10
61
+ idna==3.18
62
+ imageio==2.36.0
63
+ imageio-ffmpeg==0.5.1
64
+ importlib_metadata==9.0.0
65
+ interegular==0.3.3
66
+ ipython==9.16.1
67
+ ipython_pygments_lexers==1.1.1
68
+ jedi==0.20.0
69
+ Jinja2==3.1.6
70
+ jiter==0.16.0
71
+ jsonschema==4.26.0
72
+ jsonschema-specifications==2025.9.1
73
+ kernels==0.14.1
74
+ kernels-data==0.16.0
75
+ lark==1.3.1
76
+ lazy-loader==0.5
77
+ llguidance==1.7.6
78
+ llvmlite==0.47.0
79
+ loguru==0.7.3
80
+ lxml==6.1.1
81
+ markdown-it-py==4.2.0
82
+ MarkupSafe==3.0.3
83
+ matplotlib-inline==0.2.2
84
+ mdurl==0.1.2
85
+ mistral_common==1.11.7
86
+ ml_dtypes==0.5.4
87
+ modelscope==1.39.1
88
+ modelscope-hub==0.2.0
89
+ moviepy==2.2.1
90
+ mpmath==1.3.0
91
+ msgpack==1.2.1
92
+ msgspec==0.21.1
93
+ multidict==6.7.1
94
+ multiprocess==0.70.19
95
+ nest-asyncio==1.6.0
96
+ networkx==3.6.1
97
+ ninja==1.13.0
98
+ numba==0.65.1
99
+ numpy==2.3.5
100
+ nvidia-cublas==13.1.0.3
101
+ nvidia-cuda-cccl==13.3.3.4.1
102
+ nvidia-cuda-crt==13.3.73
103
+ nvidia-cuda-cupti==13.0.85
104
+ nvidia-cuda-nvcc==13.3.73
105
+ nvidia-cuda-nvdisasm==13.3.73
106
+ nvidia-cuda-nvrtc==13.0.88
107
+ nvidia-cuda-runtime==13.0.96
108
+ nvidia-cudnn-cu13==9.19.0.56
109
+ nvidia-cudnn-frontend==1.26.0
110
+ nvidia-cufft==12.0.0.61
111
+ nvidia-cufile==1.15.1.6
112
+ nvidia-curand==10.4.0.35
113
+ nvidia-cusolver==12.0.4.66
114
+ nvidia-cusparse==12.6.3.3
115
+ nvidia-cusparselt-cu13==0.8.0
116
+ nvidia-cutlass-dsl==4.6.0
117
+ nvidia-cutlass-dsl-libs-base==4.6.0
118
+ nvidia-cutlass-dsl-libs-core==4.6.0
119
+ nvidia-cutlass-dsl-libs-cu12==4.6.0
120
+ nvidia-cutlass-dsl-libs-cu13==4.6.0
121
+ nvidia-mathdx==25.6.0
122
+ nvidia-ml-py==13.610.43
123
+ nvidia-modelopt==0.45.0
124
+ nvidia-nccl-cu13==2.28.9
125
+ nvidia-nvjitlink==13.0.88
126
+ nvidia-nvshmem-cu13==3.4.5
127
+ nvidia-nvtx==13.0.85
128
+ nvidia-nvvm==13.3.73
129
+ omegaconf==2.3.1
130
+ openai==2.6.1
131
+ openai-harmony==0.0.4
132
+ opencv-python-headless==4.10.0.84
133
+ opentelemetry-api==1.44.0
134
+ opentelemetry-exporter-otlp==1.44.0
135
+ opentelemetry-exporter-otlp-proto-common==1.44.0
136
+ opentelemetry-exporter-otlp-proto-grpc==1.44.0
137
+ opentelemetry-exporter-otlp-proto-http==1.44.0
138
+ opentelemetry-proto==1.44.0
139
+ opentelemetry-sdk==1.44.0
140
+ opentelemetry-semantic-conventions==0.65b0
141
+ orjson==3.11.9
142
+ outlines==0.1.11
143
+ outlines_core==0.1.26
144
+ packaging==26.3
145
+ pandas==3.0.5
146
+ parso==0.8.7
147
+ partial-json-parser==0.2.1.1.post7
148
+ pexpect==4.9.0
149
+ pillow==11.3.0
150
+ proglog==0.1.12
151
+ prometheus_client==0.26.0
152
+ prompt_toolkit==3.0.53
153
+ propcache==0.5.2
154
+ protobuf==6.33.6
155
+ psutil==7.2.2
156
+ ptyprocess==0.7.0
157
+ PuLP==3.3.2
158
+ pure_eval==0.2.3
159
+ py-spy==0.4.2
160
+ pyarrow==25.0.0
161
+ pybase64==1.4.3
162
+ pycountry==26.2.16
163
+ pycparser==3.0
164
+ pycryptodomex==3.23.0
165
+ pydantic==2.13.4
166
+ pydantic-extra-types==2.11.1
167
+ pydantic_core==2.46.4
168
+ pyelftools==0.33
169
+ Pygments==2.20.0
170
+ pyproject_hooks==1.2.0
171
+ python-dateutil==2.9.0.post0
172
+ python-dotenv==1.2.2
173
+ python-multipart==0.0.32
174
+ PyYAML==6.0.1
175
+ pyzmq==27.1.0
176
+ quack-kernels==0.6.1
177
+ referencing==0.37.0
178
+ regex==2026.7.19
179
+ remote-pdb==2.1.0
180
+ requests==2.34.2
181
+ rich==15.0.0
182
+ rpds-py==2026.6.3
183
+ runai-model-streamer==0.16.1
184
+ safetensors==0.8.0
185
+ scikit-image==0.25.2
186
+ scipy==1.18.0
187
+ sentencepiece==0.2.2
188
+ setproctitle==1.3.7
189
+ setuptools==81.0.0
190
+ sgl-deep-gemm==0.1.4.post1
191
+ sglang==0.5.16
192
+ sglang-kernel==0.4.5
193
+ shellingham==1.5.4
194
+ six==1.17.0
195
+ smg-grpc-proto==0.4.14
196
+ smg-grpc-servicer==0.8.0
197
+ sniffio==1.3.1
198
+ soundfile==0.13.1
199
+ st_attn==0.0.7
200
+ stack-data==0.6.3
201
+ starlette==1.4.1
202
+ sympy==1.14.0
203
+ tabulate==0.10.0
204
+ tifffile==2026.7.31
205
+ tiktoken==0.13.0
206
+ tilelang==0.1.11
207
+ timm==1.0.16
208
+ tokenizers==0.22.2
209
+ tokenspeed-mla==0.1.8
210
+ tokenspeed-triton==3.8.10.post20260721
211
+ tomlkit==0.15.1
212
+ torch==2.11.0
213
+ torch_c_dlpack_ext==0.1.5
214
+ torch_memory_saver==0.0.9.post1
215
+ torchao==0.17.0
216
+ torchaudio==2.11.0
217
+ torchcodec==0.11.1
218
+ torchvision==0.26.0
219
+ tqdm==4.70.0
220
+ traitlets==5.16.1
221
+ transformers==5.12.1
222
+ trimesh==5.0.0
223
+ triton==3.6.0
224
+ typer==0.27.1
225
+ typing-inspection==0.4.2
226
+ typing_extensions==4.16.0
227
+ urllib3==2.7.0
228
+ uvicorn==0.52.1
229
+ uvloop==0.22.1
230
+ vsa==0.0.4
231
+ watchfiles==1.2.0
232
+ wcwidth==0.8.2
233
+ websockets==17.0.1
234
+ xatlas==0.0.11
235
+ xgrammar==0.2.1
236
+ xxhash==3.8.1
237
+ yarl==1.24.5
238
+ z3-solver==4.15.4.0
239
+ zipp==4.1.0
240
+ zstandard==0.25.0
b300/restore_b300_env.sh ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Restore the b300 megatron runtime in place.
3
+ #
4
+ # .b300-runtime is ours and writable: python 3.12.13, already carrying
5
+ # transformer_engine_torch 2.14.0, flash_attn and the nvidia CUDA libs. What the
6
+ # cluster rebuild lost is torch, transformers, megatron-bridge and mamba.
7
+ #
8
+ # Versions are pinned to the combination already proven to work on b300 in
9
+ # usrs/jihuny/krafton-lm/.venv/krafton-megatron-venv (read-only reference):
10
+ # torch 2.12.0+cu130, TE 2.14.1, transformers 5.3.0,
11
+ # mamba_ssm 2.3.2.post1, causal_conv1d 1.6.2.post1, python 3.12.13
12
+ set -uo pipefail
13
+ RT=/KRAFTON/WORKSPACE/wbl-workspace/posttraining-2606/.b300-runtime
14
+ PY=$RT/bin/python
15
+ LOG=$RT/restore.log
16
+ log(){ echo "[$(date '+%F %H:%M:%S')] $*" | tee -a "$LOG"; }
17
+
18
+ log "python: $($PY --version 2>&1)"
19
+ log "installing torch 2.12.0+cu130"
20
+ $PY -m pip install --no-cache-dir torch==2.12.0 --index-url https://download.pytorch.org/whl/cu130 >>"$LOG" 2>&1
21
+ log "torch rc=$? -> $($PY -c 'import torch;print(torch.__version__, torch.version.cuda)' 2>&1 | tail -1)"
22
+
23
+ log "installing transformers + megatron-bridge"
24
+ $PY -m pip install --no-cache-dir "transformers==5.3.0" >>"$LOG" 2>&1
25
+ $PY -m pip install --no-cache-dir megatron-bridge >>"$LOG" 2>&1
26
+ log "megatron-bridge -> $($PY -c 'import megatron.bridge as b;print(getattr(b,"__version__","installed"))' 2>&1 | tail -1)"
27
+
28
+ log "installing mamba-ssm / causal-conv1d (prebuilt wheel first)"
29
+ $PY -m pip install --no-cache-dir --no-build-isolation \
30
+ "causal-conv1d==1.6.2.post1" "mamba-ssm==2.3.2.post1" >>"$LOG" 2>&1
31
+ rc=$?
32
+ log "mamba pip rc=$rc"
33
+ if [ $rc -ne 0 ]; then
34
+ log "pip failed; reusing the b300-native builds already present on this cluster"
35
+ JV=/KRAFTON/WORKSPACE/wbl-workspace/usrs/jihuny/krafton-lm/.venv/krafton-megatron-venv/lib/python3.12/site-packages
36
+ SP=$RT/lib/python3.12/site-packages
37
+ for item in mamba_ssm causal_conv1d mamba_ssm-*.dist-info causal_conv1d-*.dist-info \
38
+ selective_scan_cuda*.so causal_conv1d_cuda*.so; do
39
+ cp -rn $JV/$item "$SP"/ 2>/dev/null && log " copied $item"
40
+ done
41
+ fi
42
+ log "=== final import check (CPU; GPU op verified separately on a compute node) ==="
43
+ $PY - <<'PY' 2>&1 | tee -a "$LOG"
44
+ import importlib
45
+ for m in ["torch","transformer_engine","megatron.core","megatron.bridge","transformers","mamba_ssm","causal_conv1d","flash_attn"]:
46
+ try:
47
+ mod=importlib.import_module(m)
48
+ print(f" OK {m:20s} {getattr(mod,'__version__','')}")
49
+ except Exception as e:
50
+ print(f" MISS {m:20s} {type(e).__name__}: {str(e)[:70]}")
51
+ PY
52
+ log "RESTORE STAGE DONE"