DeepEP: an efficient expert-parallel communication library
This report summarizes scanner evidence for deepseek-ai/DeepEP, a Cuda project with 10,262 GitHub stars. SynthScan examined 11,626 lines of code across 82 source files, recording 90 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 8.5 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 54 finding(s).
Are imports declared and package/API names verified? 29 finding(s).
Are wrappers, guards, and repeated structures necessary? 22 finding(s).
Which changes need focused human review? 90 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 90 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deep_ep/__init__.py | 4 | CODE | |
| LOW | deep_ep/__init__.py | 60 | CODE | |
| LOW | deep_ep/__init__.py | 61 | CODE | |
| LOW | deep_ep/__init__.py | 61 | CODE | |
| LOW | deep_ep/__init__.py | 61 | CODE | |
| LOW | deep_ep/__init__.py | 62 | CODE | |
| LOW | deep_ep/__init__.py | 63 | CODE | |
| LOW | deep_ep/__init__.py | 64 | CODE | |
| LOW | deep_ep/__init__.py | 64 | CODE | |
| LOW | deep_ep/__init__.py | 65 | CODE | |
| LOW | deep_ep/__init__.py | 66 | CODE | |
| LOW | deep_ep/__init__.py | 66 | CODE | |
| LOW | deep_ep/__init__.py | 67 | CODE | |
| LOW | deep_ep/__init__.py | 69 | CODE | |
| LOW | deep_ep/__init__.py | 69 | CODE | |
| LOW | deep_ep/__init__.py | 72 | CODE | |
| LOW | deep_ep/__init__.py | 72 | CODE | |
| LOW | deep_ep/__init__.py | 72 | CODE | |
| LOW | deep_ep/__init__.py | 72 | CODE | |
| LOW | deep_ep/comm/__init__.py | 1 | CODE | |
| LOW | deep_ep/comm/__init__.py | 2 | CODE | |
| LOW | deep_ep/comm/__init__.py | 2 | CODE | |
| LOW | deep_ep/comm/__init__.py | 2 | CODE | |
| LOW | deep_ep/comm/__init__.py | 2 | CODE | |
| LOW | deep_ep/comm/__init__.py | 2 | CODE | |
| LOW | deep_ep/comm/__init__.py | 9 | CODE | |
| LOW | deep_ep/utils/envs.py | 12 | CODE | |
| LOW | deep_ep/utils/__init__.py | 3 | CODE | |
| LOW | third-party/tilelang_ops/__init__.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | format.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | csrc/python_api.cpp | 1 | #include <pybind11/pybind11.h> | COMMENT |
| LOW | csrc/kernels/pp/pp_send_recv.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/kernels/engram/engram.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/kernels/ep/dispatch.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/kernels/ep/prefetch_weights.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/kernels/ep/reduce_grads.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/kernels/ep/combine.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/kernels/ep/api.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/kernels/comm/context.cpp | 1 | #include <cstring> | COMMENT |
| LOW | csrc/kernels/comm/symmetric.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/kernels/bucket/reduce_scatter.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/kernels/bucket/all_gather.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/buffers/engram.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/buffers/pp.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/buffers/ep.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/buffers/bucket.hpp | 1 | #pragma once | COMMENT |
| LOW | csrc/buffers/bucket.hpp | 21 | #include <deep_ep/layout/bucket/workspace.cuh> | COMMENT |
| LOW | csrc/comm/api.hpp | 1 | #pragma once | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deep_ep/utils/envs.py | 146 | CODE | |
| LOW | deep_ep/utils/testing.py | 113 | CODE | |
| LOW | deep_ep/utils/find_pkgs.py | 9 | CODE | |
| LOW | tests/engram/test_engram.py | 14 | CODE | |
| LOW | tests/ep/test_prefetch_weights.py | 114 | CODE | |
| LOW | tests/ep/test_ep.py | 22 | CODE | |
| LOW | tests/ep/test_ep.py | 61 | CODE | |
| LOW | tests/utils/test_gate.py | 7 | CODE | |
| LOW | tests/bucket/test_mixed.py | 91 | CODE | |
| LOW | tests/bucket/test_mixed.py | 157 | CODE | |
| LOW | tests/bucket/test_perf.py | 76 | CODE | |
| LOW | tests/bucket/test_perf.py | 110 | CODE | |
| LOW | tests/bucket/test_perf.py | 218 | CODE | |
| LOW | tests/bucket/test_all_gather.py | 18 | CODE | |
| LOW | third-party/tilelang_ops/stochastic_rounding.py | 24 | CODE | |
| LOW | third-party/tilelang_ops/stochastic_rounding.py | 29 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deep_ep/buffers/engram.py | 18 | def _accept_legacy_storage_size(init): | CODE |
| LOW | deep_ep/buffers/ep.py | 846 | def lb_get_theoretical_num_sms(self) -> int: | CODE |
| LOW | deep_ep/comm/handle.py | 98 | def destroy_all_managed_nccl_comm() -> None: | CODE |
| LOW | deep_ep/utils/envs.py | 184 | def check_torch_deterministic() -> None: | CODE |
| LOW | deep_ep/utils/envs.py | 238 | def check_fast_rdma_atomic_support(nic_name: str = 'mlx5_0') -> bool: | CODE |
| LOW | deep_ep/utils/gate.py | 116 | def get_precise_unbalanced_scores(num_tokens: int, num_experts: int, num_ranks: int, num_topk: int, ratio: float): | CODE |
| LOW | deep_ep/utils/gate.py | 148 | def map_unbalanced_ratio_to_factor(num_tokens: int, num_experts: int, num_ranks: int, num_topk: int, ratio: float) -> fl | CODE |
| LOW | deep_ep/utils/gate.py | 167 | def get_random_unbalanced_scores(num_tokens: int, num_experts: int, num_ranks: int, num_topk: int, ratio: float): | CODE |
| LOW | deep_ep/utils/refs.py | 126 | def generate_pre_combine_data(src_token_global_idx: torch.Tensor, | CODE |
| LOW | tests/ep/test_ep.py | 302 | def get_unique_and_valid_dst_count(dst_idx: torch.Tensor, | CODE |
| LOW | tests/ep/test_reduce_grads.py | 49 | def redundant_expert_grad_key(rank_idx: int, redundant_expert_idx: int, num_redundant_experts: int) -> int: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | deep_ep/comm/handle.py | 73 | # Create a new communicator | COMMENT |
| MEDIUM | deep_ep/utils/gate.py | 20 | # Create the mask | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | deep_ep/__init__.py | 15 | except ImportError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deep_ep/utils/envs.py | 232 | except Exception as e: | CODE |
| LOW | deep_ep/utils/envs.py | 256 | except Exception: | CODE |
| LOW | deep_ep/utils/envs.py | 281 | except Exception as e: | CODE |
| LOW | tests/bucket/test_mixed.py | 152 | except Exception as error: | CODE |
| LOW | tests/bucket/test_reduce_scatter.py | 30 | except Exception as ex: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deep_ep/buffers/ep.py | 242 | CODE | |
| LOW | deep_ep/buffers/ep.py | 562 | CODE | |
| LOW | deep_ep/buffers/ep.py | 770 | CODE | |
| LOW | deep_ep/utils/refs.py | 243 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | format.sh | 2 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | format.sh | 179 | # Check if there are any uncommitted changes after all formatting steps. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deep_ep/comm/__init__.py | 12 | __all__ = [ | CODE |