unsloth/scripts
Daniel Han 1341718c2c
Scan baseline: re-review the twelve unsloth-zoo sites 2026.10.11 moved (#16264)
`pip scan-packages :: hf-stack` now fails on PRs whose closure resolves
unsloth-zoo 2026.10.11, for example #16258:

```
Summary: 5 CRITICAL, 7 HIGH, 172 MEDIUM
  12 of the 184 finding(s) above are at a site already reviewed in scripts/scan_packages_baseline.json. What differs from the reviewed entry:
    HIGH      unsloth-zoo  unsloth_zoo/compiler.py              same matched code, file digest outside the pin
    CRITICAL  unsloth-zoo  unsloth_zoo/device_type.py           same matched code, file digest outside the pin
    ...
```

All twelve are the same kind: the scanner's matched code is
byte-identical to a reviewed entry (the same `evidence_hash`), and only
the pinned `file_sha256` moved because other lines in the file changed
in the release.

| File | Check | Reviewed `evidence_hash` matches |
|---|---|---|
| `unsloth_zoo/device_type.py` | env + network | yes |
| `unsloth_zoo/llama_cpp.py` | env + network | yes |
| `unsloth_zoo/triton_kernels_compat.py` | downloads and executes remote
code | yes |
| `unsloth_zoo/vision_utils.py` | env + network | yes |
| `unsloth_zoo/vision_utils.py` | cloud metadata + network | yes |
| `unsloth_zoo/compiler.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/vllm_gdn_replayssm.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/vllm_utils.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/mlx/decision.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/mlx/loader.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/mlx/speculative.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/temporary_patches/moe_utils.py` | obfuscation + exec/eval
| yes |

## Change

As in #16114, each new entry sits next to the reviewed one it matches,
pinned at the 2026.10.11 file digest. Nothing is removed, so shards that
still resolve older zoo releases are unaffected. I did not regenerate
the whole file with `--write-baseline`, since a single-package scan
would drop every other package's entries. The diff is 108 added lines
and no removed ones.

## Verification

- `scripts/scan_packages.py unsloth-zoo==2026.10.11` on main gives `5
CRITICAL, 7 HIGH` with exit 1, matching the CI hf-stack run. On this
branch it exits 0 (`24 finding(s) suppressed by baseline`, 13 MEDIUM
left).
- The tests that read the scanner or its baseline, under
`tests/security` and the others that import it: 638 passed.
2026-10-31 02:45:19 -07:00
..
data Notebooks CI: refresh the Colab oracle snapshots to the current GPU runtime (#14182) 2026-10-18 22:06:18 -07:00
windows_sac_probe Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
av_shapes_baseline.json AV lint: record the sd.cpp missing-DLL probe test's python.exe copy (#16108) 2026-10-30 04:55:41 -07:00
build_ltx25_te_int8_convrot.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
build_prequant_checkpoint.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
build_segmenter_prequant_checkpoint.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
build_te_int8_convrot_checkpoint.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
build_te_prequant_checkpoint.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
build_whisper_cpp.sh Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
check_frontend_dep_removal.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
check_new_install_scripts.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
clef_train_bench.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
compare_engines.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
compile_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
convert_prequant_to_safetensors.py Studio: nvfp4 safetensors twins: converter 0-dim compare, refuse a twin the installed torchao cannot unflatten (#15977) 2026-10-29 09:35:56 -07:00
diffusion_bench.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
diffusion_quality.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
enforce_kwargs_spacing.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
exec_literals_baseline.json AsyncGRPOTrainer: optional SAO-style importance sampling mask (#13820) 2026-10-15 05:35:13 -07:00
fbcache_flux_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
fp8_overflow_check.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
image_speedmem_bench.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
install_gemma4_mlx.sh Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
install_qwen3_6_mlx.sh Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
install_rocm_wsl_strixhalo.sh Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
int8_linear_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
kv_cache_multiturn_benchmark.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
leverage_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
lint_av_shapes.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
lint_backend_python_floor.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
lint_duplicate_definitions.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
lint_exec_literals.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
lint_no_duplicate_ts_imports.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
lint_no_parallel_clamp.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
lint_risky_loaders.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
lint_workflow_triggers.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
lockfile_supply_chain_audit.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
make_dmg_background.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
notebook_to_python.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
notebook_validator.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
nvfp4_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
nvfp4_t211_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
online_tokenization_ab.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
p2p_integrity_probe.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
perf_levers_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
perf_verify.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
prequant_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
profile_startup.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
quant_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
risky_loaders_baseline.json fix(studio): list approved custom-code models in /v1/models (#15945) 2026-10-30 01:06:43 -07:00
run_ruff_format.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
scan_npm_packages.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
scan_npm_packages_baseline.json scan_packages: key baseline on matched-code hash so payloads in baselined files are not auto-suppressed (#6552) 2026-07-01 04:03:59 -07:00
scan_packages.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
scan_packages_baseline.json Scan baseline: re-review the twelve unsloth-zoo sites 2026.10.11 moved (#16264) 2026-10-31 02:45:19 -07:00
sd_cpp_smoke.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
sdpa_mask_backend_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
sparse_accum_probe.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
stamp_studio_release.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
sync_allow_scripts_pins.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
sync_shared_ps1_helpers.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
train_decision_from_lm.py Decision models: follow-up fixes after #12772, #12876, #12939 (#12949) 2026-10-07 09:06:56 -07:00
uninstall.ps1 Trim comments in the installer entry scripts (#15333) 2026-10-26 02:56:25 -07:00
uninstall.sh Trim comments in the installer entry scripts (#15333) 2026-10-26 02:56:25 -07:00
update_lemonade_pins.py Installers: hash-check the uv fallback script; fail closed on undigested Lemonade assets (#13189) 2026-10-09 20:12:59 -07:00
update_node_pins.py Studio: update managed Node to 24.22.1, apply new pins on every update path, and keep the pin current (#15423) 2026-10-27 08:00:40 -07:00
verify_comment_only_diff.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
verify_import_hoist.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
verify_prequant_backend.py Condense module docstrings, keeping the guarantees they state (#15594) 2026-10-27 23:15:28 -07:00
video_quality.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
virustotal_delta.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00
virustotal_scan.py Trim comments in the installers, scripts and CI config (#12969) 2026-10-26 02:55:18 -07:00