Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions docs/TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -463,27 +463,6 @@
six test_actual_dense_and_attention_shards cases with NVIDIA's snapshot read
.weight of grouped projections, which have none. Close when they pass.

[ ] Resolve the CUDA illegal memory access of the GLM MLA replay tests with
cuBLAS 13.4.1.3, which uv.lock pins. After test_autotuned_shared_routed_graph
[2-True-False-False-1] and the replay cases [1-decode-2-True],
[1-decode-1-False], [1-decode-2-False], [1-prefill-65-True] and
[2-decode-1-True] in one process, [2-decode-2-True] raises
CUBLAS_STATUS_INTERNAL_ERROR in cublasGemmStridedBatchedEx, called by torch.bmm
in _bmm_out (ignition/components/linear.py), and the CUDA error then persists
in the process. Upstream main fails the same sequence with NVIDIA's snapshot
and the locked cuBLAS, and passes it with cuBLAS 13.6.1.10. Close when the
locked cuBLAS passes this sequence, or the operand layout that triggers the
error is found.

[ ] Explain the one TP4 preparation failure of glm-5.3-flash-nvfp4 at warmup 44
with cuBLAS 13.4.1.3, which the lock file pins. Six later preparation runs
with 13.4.1.3 passed every warmup, one of them at default tuning, and no
operand layout of the failing batched matrix multiplication was found
unusual. The failing call, torch.bmm in _bmm_out, is the call that fails in
the MLA replay sequence above with 13.4.1.3; whether it is the same defect
is not established. Close when the cause of both failures is found, or when
the locked cuBLAS no longer fails either.

[ ] Run the host offload isolation measurements for the memory tier and the
composite store with qualify/host_cache_isolation.py. Every threshold in
prefix-cache-offload.md section 4 must hold before derived host-store
Expand Down
14 changes: 14 additions & 0 deletions docs/model-preparation.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ uv sync --locked --extra prepare --extra test
cargo build --release --manifest-path flare-cli/Cargo.toml
```

`pyproject.toml` overrides the cuBLAS requirement of the locked CUDA 13.2
packages and pins `nvidia-cublas` 13.6.1.10, which publishes wheels for x86_64
and aarch64; the override applies to `uv` only. `cuda-toolkit` 13.2.2, which
PyTorch requires, depends on `nvidia-cublas==13.4.1.3.*`, so a direct
requirement conflicts with it. Preparation of every recipe uses this version;
native serving (`flare run`) does not load cuBLAS. cuBLAS 13.4.1.3 is not
supported for preparation: on SM120 its strided batched GEMM, called by the
BF16 `torch.bmm` in `ignition/components/linear.py`, has returned
`CUBLAS_STATUS_INTERNAL_ERROR` in GLM-5.3-Flash tests and in one TP4
preparation of `local-inference-lab/GLM-5.3-Flash-NVFP4`; the cause is not
established. Only x86_64 with SM120 is qualified with 13.6.1.10. SM103, SM121
and aarch64, and the numerical difference between the two versions, are not
qualified.

`ignition.runtime_patches` installs process-local fixes for PyTorch 2.14.1+cu132
and Triton 3.8.0. Preparation commands set dependency paths and GPU visibility
before installation. Spawned ranks, tuning replicas, b12x compiler workers, and
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ prepare = [
"rich>=13",
]

[tool.uv]
override-dependencies = ["nvidia-cublas==13.6.1.10"]

[[tool.uv.index]]
name = "pytorch-cu132"
url = "https://download.pytorch.org/whl/cu132"
Expand Down
13 changes: 8 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.