# kacper-daftcode/vllm-moet — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `ai-models`
- Overall score: `3.4/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `f5c8453c6bc4` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-11-30T12:43:25Z
- Repository: https://github.com/kacper-daftcode/vllm-moet
- Radar entry: https://radar.alplab.co/#repo/kacper-daftcode/vllm-moet
- License: `Apache-2.0`
- CI workflows: `.github/workflows`
- Tags: `vllm`, `moe`, `sm120`, `cuda-kernels`, `inference`, `deepseek`

## Summary

Kernel-side vLLM patches, Dockerfiles and launchers that serve frontier MoE models (DeepSeek-V4.1-Flash, Qwen3.8, Ripple-65B, Inkling-2, Kimi-K3.x) on sm_120 RTX 5090/PRO 6000 and B300 GPUs, including a CPU-expert hybrid that computes non-resident experts on the host inside the captured CUDA graph claiming bit-identical output.

## Implementation Check

The mechanisms the README describes are implemented: tools/dsv41_5090/cpu_moe/cpu_moe_b12x.cpp is a full AVX-512 CPU expert kernel with an independent scalar reference and GPU-parity harness; Dockerfile.sm120-dsv41-nightly carries ~49 anchored patcher steps with build-time import/sha256 checks; measured tok/s and GSM8K/HumanEval numbers in README are operator records not reproducible here.

## When to Use

When you must run DeepSeek-V4.1-Flash or the listed models on consumer/workstation sm_120 hardware the official images don't serve, and you can meet the exact requirements (4x RTX 5090 + ~450 GB host RAM for the hybrid, or 4x RTX PRO 6000). Not for general fleets, other GPU archs, or anyone unwilling to pin nightly bases and long builds.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 5.0/5 |
| usability | 2.0/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 3.0/5 |

## Code Evidence

tools/dsv41_5090/cpu_moe/cpu_moe_b12x.cpp (dense W4A8 AVX-512 kernel + scalar reference + test_cpu_moe_b12x.py and gpu_parity_b12x_* sets); Dockerfile.sm120-dsv41-nightly steps 1-49 each verify patches by grep anchors and cubins by sha256; .github/workflows/bench-lint.yml enforces patch/FILES.txt/SOURCE.txt consistency, bench integrity unittests (bench/tests/test_integrity.py: release gates, provenance, binding tamper checks), rendered-table drift check and docs_lint on every push.

## Issues Found

kernels/cubins-sm120/*.cubin ship as prebuilt binaries (sha256-pinned with in-repo generators and a claimed cubit round-trip, but still binary trust); docker/sm120/seccomp-io_uring.json widens the container syscall surface (io_uring_setup/enter/register) for the NVMe tiers, gated behind opt-in knobs; docker/b300/run-k3.sh notes API keys land on the container command line; Dockerfile builds clone DeepGEMM at a pinned SHA and pip installs (pybind11/wheel unpinned) — all fetch remote code at build time, pinned but present.

## Key Risks

Nothing was executed in this review; CI covers bookkeeping only, GPU/op tests are operator-driven (bench/README.md), so the throughput and quality claims (e.g. 145 tok/s decode, 0-mismatch identity over 19K calls) rest on the maintainer's committed records. Top author share 90d = 1.0, 4 contributors: bus factor. Builds pin exact nightly image digests and fork SHAs, so they are reproducible but rot quickly against upstream.

## Reviewed Files

- `README.md`
- `AGENTS.md`
- `CHANGELOG.md`
- `NOTICE`
- `patch/SOURCE.txt`
- `.github/workflows/bench-lint.yml`
- `tools/dsv41_5090/README.md`
- `tools/dsv41_5090/cpu_moe/cpu_moe_b12x.cpp`
- `docs/moet-hybrid.md`
- `Dockerfile.sm120-dsv41-nightly`
- `bench/tests/test_integrity.py`
