Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Risky loader baseline: record the CPU backend dataprep loader from #15501 (#15549)

Daniel Han0e21bbfcfa16
diff --git a/scripts/risky_loaders_baseline.json b/scripts/risky_loaders_baseline.json
index 30ca4d0c922..3ee6cebb2a3 100644
--- a/scripts/risky_loaders_baseline.json
+++ b/scripts/risky_loaders_baseline.json
@@ -474,6 +474,14 @@
"count": 1,
"reason": "Loads unsloth/dataprep/ebooks.py from a fixed path derived from this package's __file__ on MLX to avoid importing torch through dataprep; never an ebook-provided or downloaded code path."
},
+ {
+ "file": "unsloth/_cpu_init.py",
+ "rule": "dynamic-import",
+ "sink": "spec_from_file_location",
+ "digest": "4aa05e0119cd9062",
+ "count": 1,
+ "reason": "Loads unsloth/dataprep/raw_text.py and ebooks.py on the CPU backend from a fixed path derived from this package's __file__, with only those two constant names passed and the helper deleted after import, to skip dataprep/__init__ (which needs a GPU device type); never a dataset-provided or downloaded code path."
+ },
{
"file": "unsloth/_gpu_init.py",
"rule": "dynamic-import",