Machine Learning Engineering Open Book
This report summarizes scanner evidence for stas00/ml-engineering, a Python project with 19,445 GitHub stars. SynthScan examined 29,980 lines of code across 110 source files, recording 127 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 5.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? 61 finding(s).
Are imports declared and package/API names verified? 43 finding(s).
Are wrappers, guards, and repeated structures necessary? 40 finding(s).
Which changes need focused human review? 127 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 127 distinct pattern matches across 14 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 | training/fault-tolerance/slurm-status.py | 13 | CODE | |
| LOW | training/fault-tolerance/slurm-status.py | 14 | CODE | |
| LOW | training/fault-tolerance/slurm-status.py | 15 | CODE | |
| LOW | training/fault-tolerance/slurm-status.py | 16 | CODE | |
| LOW | training/fault-tolerance/slurm-status.py | 21 | CODE | |
| LOW | training/fault-tolerance/fs-watchdog.py | 16 | CODE | |
| LOW | network/benchmarks/torch-dist-bench.py | 106 | CODE | |
| LOW | network/benchmarks/torch-dist-bench.py | 122 | CODE | |
| LOW | storage/fio-json-extract.py | 13 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-ds-unpack.py | 21 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-ds-unpack.py | 22 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-ds-unpack.py | 24 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-ds-unpack.py | 25 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-ds-unpack.py | 26 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-ds-unpack.py | 27 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-ds-unpack.py | 28 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-ds-unpack.py | 29 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-ds-unpack.py | 30 | CODE | |
| LOW | debug/tiny-scripts/m4-ds-unpack.py | 24 | CODE | |
| LOW | debug/tiny-scripts/m4-ds-unpack.py | 26 | CODE | |
| LOW | debug/tiny-scripts/m4-ds-unpack.py | 27 | CODE | |
| LOW | debug/tiny-scripts/m4-ds-unpack.py | 28 | CODE | |
| LOW | debug/tiny-scripts/m4-ds-unpack.py | 29 | CODE | |
| LOW | debug/tiny-scripts/m4-ds-unpack.py | 30 | CODE | |
| LOW | debug/tiny-scripts/m4-ds-unpack.py | 31 | CODE | |
| LOW | debug/tiny-scripts/m4-ds-unpack.py | 32 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-synthetic-testing.py | 52 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-synthetic-testing.py | 53 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-synthetic-testing.py | 56 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-synthetic-testing.py | 58 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-synthetic-testing.py | 59 | CODE | |
| LOW | debug/tiny-scripts/cm4-synthetic-testing.py | 52 | CODE | |
| LOW | debug/tiny-scripts/cm4-synthetic-testing.py | 56 | CODE | |
| LOW | debug/tiny-scripts/cm4-synthetic-testing.py | 58 | CODE | |
| LOW | debug/tiny-scripts/cm4-synthetic-testing.py | 59 | CODE | |
| LOW | debug/tiny-scripts/mt5-make-tiny-model.py | 28 | CODE | |
| LOW | debug/tiny-scripts/mt5-make-tiny-model.py | 29 | CODE | |
| LOW | debug/tiny-scripts/mt5-make-tiny-model.py | 30 | CODE | |
| LOW | debug/tiny-scripts/mt5-make-tiny-model.py | 32 | CODE | |
| LOW | debug/tiny-scripts/mt5-make-tiny-model.py | 33 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | training/tools/printflock.py | 1 | # If you have ever done multi-gpu work and tried to `print` for debugging you quickly discovered | COMMENT |
| LOW | training/tools/multi-gpu-non-interleaved-print.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | training/checkpoints/torch-checkpoint-shrink.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | training/performance/benchmarks/numa/numa-set.sh | 1 | #!/usr/bin/bash | COMMENT |
| LOW | network/benchmarks/all_gather_object_vs_all_gather.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | storage/mmap-io-bench.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | testing/testing_utils.py | 1 | # I developed the bulk of this library while I worked at HF | COMMENT |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 101 | COMMENT | |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 721 | ) | COMMENT |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1501 | start = step | COMMENT |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 2281 | finish() | COMMENT |
| LOW | debug/underflow_overflow.py | 1 | # Copyright 2020 The HuggingFace Team. All rights reserved. | COMMENT |
| LOW | debug/tiny-scripts/openwebtext-10k.py | 1 | # coding=utf-8 | COMMENT |
| LOW | debug/tiny-scripts/general-pmd-ds-unpack.py | 1 | # unpack the desired datasets records into a filesystem-based subdir structure which can then be | COMMENT |
| LOW | debug/tiny-scripts/oscar-en-10k.py | 1 | # coding=utf-8 | COMMENT |
| LOW | debug/tiny-scripts/m4-ds-unpack.py | 1 | # unpack the desired datasets records into a filesystem-based subdir structure which can then be | COMMENT |
| LOW | debug/tiny-scripts/c4-en-10k.py | 1 | # coding=utf-8 | COMMENT |
| LOW | debug/tiny-scripts/fsmt-make-super-tiny-model.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | debug/tiny-scripts/mt5-make-tiny-model.py | 1 | #!/usr/bin/env python | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | training/emulate-multi-node.md | 149 | except Exception: | CODE |
| LOW | testing/testing_utils.py | 46 | except Exception: | CODE |
| LOW | testing/README.md | 797 | except Exception as e: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 286 | except Exception: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 296 | except Exception: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 308 | except Exception: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1132 | except Exception: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1552 | except Exception as e: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1565 | except Exception as e: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1575 | except Exception: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1591 | except Exception: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1602 | except Exception: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1613 | except Exception: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1622 | except Exception: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1651 | except Exception: | CODE |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1713 | except Exception as e: | CODE |
| LOW | debug/torch-distributed-gpu-test.py | 110 | except Exception: | CODE |
| LOW | debug/code/see-mem-usage.py | 22 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | training/fault-tolerance/README.md | 188 | The section on [Crontab Emulation](../../orchestration/slurm/users.md#crontab-emulation) discusses how to implement cron | CODE |
| MEDIUM | compute/cpu/README.md | 53 | footnote: A [Nebius agentic-RL writeup](https://nebius.com/blog/posts/in-agentic-rl-faster-tokens-are-not-enough) (2026- | CODE |
| MEDIUM | compute/accelerator/README.md | 920 | - [SN50](https://sambanova.ai/blog/introducing-the-sn50-rdu-purpose-built-for-agentic-inference) - fifth generation, ann | CODE |
| MEDIUM | compute/accelerator/README.md | 1025 | Crescent Island is an inference-oriented Xe3P GPU with customer sampling in H2-2026. Intel's card is 160GB LPDDR5X (ODMs | CODE |
| MEDIUM | compute/accelerator/benchmarks/mamf-finder.py | 2293 | # These two bounds are internal guardrails, not tuning dials, so they're not exposed on the CLI: | COMMENT |
| MEDIUM | orchestration/README.md | 25 | ## Other orchestration frameworks | COMMENT |
| MEDIUM | inference/README.md | 379 | It's the process of giving the pre-trained model additional information that wasn't available during its training. For e | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | training/model-parallelism/README.md | 172 | [ZeRO++](https://arxiv.org/abs/2306.10209) solves the 2nd limitation by introducing Hierarchical Weight Partition for Ze | CODE |
| HIGH | inference/README.md | 330 | One other much simpler solution for [input-grounded tasks](#input-grounded-tasks), is to use [ngram prompt lookup decodi | CODE |
| HIGH | inference/README.md | 330 | One other much simpler solution for [input-grounded tasks](#input-grounded-tasks), is to use [ngram prompt lookup decodi | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | training/tools/main_process_first.py | 76 | def main_process_by_path_first(path): | CODE |
| LOW | training/tools/main_process_first.py | 103 | def global_main_process_first(): | CODE |
| LOW | training/fault-tolerance/slurm-status.py | 44 | def send_email_alert_job_not_scheduled(job_name): | STRING |
| LOW | training/fault-tolerance/slurm-status.py | 63 | def check_running_on_jean_zay(): | STRING |
| LOW | training/fault-tolerance/fs-watchdog.py | 54 | def check_running_on_jean_zay(): | STRING |
| LOW | training/fault-tolerance/fs-watchdog.py | 114 | def analyse_partition_idrquota(partition_name, partition_flag, alert_bytes_threshold, alert_inodes_threshold): | STRING |
| LOW | network/benchmarks/torch-dist-bench.py | 350 | def latency_samples_per_trial(calls): | CODE |
| LOW | testing/testing_utils.py | 128 | def require_torch_non_multi_gpu(test_case): | CODE |
| LOW | testing/testing_utils.py | 203 | def require_bnb_non_decorator(): | CODE |
| LOW | testing/testing_utils.py | 308 | def parameterized_custom_name_func_join_params(func, param_num, param): | CODE |
| LOW | testing/testing_utils.py | 323 | def test_determinism_wrt_rank(self, num_workers, pad_dataset): | STRING |
| LOW | testing/testing_utils.py | 777 | def get_auto_remove_tmp_dir_str(self, *args, **kwargs): | CODE |
| LOW | testing/testing_utils.py | 954 | def pytest_terminal_summary_main(tr, id): | CODE |
| LOW | testing/README.md | 339 | def test_example_with_multi_gpu(): | CODE |
| LOW | testing/README.md | 581 | def test_something_involving_local_locations(self): | CODE |
| LOW | testing/README.md | 592 | def test_something_involving_stringified_locations(self): | CODE |
| LOW | debug/NicerTrace.py | 122 | def localtrace_trace_and_count(self, frame, why, arg): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | training/fault-tolerance/slurm-status.py | 118 | CODE | |
| LOW | training/performance/benchmarks/torch-compile-bench.py | 23 | CODE | |
| LOW | network/benchmarks/torch-dist-bench.py | 359 | CODE | |
| LOW | testing/testing_utils.py | 954 | CODE | |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1340 | CODE | |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 1758 | CODE | |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 2173 | CODE | |
| LOW | compute/accelerator/benchmarks/mamf-finder.py | 2210 | CODE | |
| LOW | compute/accelerator/benchmarks/mamf-finder-all-gpus.py | 221 | CODE | |
| LOW | debug/NicerTrace.py | 73 | CODE | |
| LOW | debug/underflow_overflow.py | 214 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-synthetic-testing.py | 124 | CODE | |
| LOW | debug/tiny-scripts/general-pmd-synthetic-testing.py | 134 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | network/benchmarks/torch-dist-bench.py | 125 | except ModuleNotFoundError: | CODE |
| HIGH | compute/accelerator/benchmarks/mamf-finder.py | 76 | except ModuleNotFoundError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | debug/tiny-scripts/cm4-synthetic-testing.py | 19 | # perl -le 'qx[touch texts_$_.null] for map {sprintf "%02d", $_} 0..38' | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | insights/when-to-upgrade-gpus/bench_decompose.py | 54 | # ----------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | insights/when-to-upgrade-gpus/benchmark.py | 41 | # ----------------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | storage/mmap-io-bench.py | 21 | # IMPORTANT: edit the paths to the target folders to reflect the actual NVME, Network fs (e.g. Lustre), and you can add | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | training/fault-tolerance/slurm-status.py | 28 | TO_ADDRS = ["bigscience@googlegroups.com", "foo@bar.com"] # wants a list | CODE |
| LOW | training/fault-tolerance/fs-watchdog.py | 22 | TO_ADDRS = ["bigscience@googlegroups.com", "foo@bar.com"] # wants a list | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | insights/when-to-upgrade-gpus/benchmark.py | 116 | def set_seed(seed: int) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | testing/testing_utils.py | 397 | # environment, so to make the test robust a combined entry of both streams is available | STRING |