unsloth/studio/backend/routes
Daniel Han-Chen 09ca2b27d3 Fix/adjust diffusion: drop accelerate preflight + datasets upload validator for PR #5754
Re-fix the round-34 CI regression: the round-34 attempt gated the
accelerate preflight on enable_model_cpu_offload, but the parameter
defaults to True so tests that did not explicitly opt out still
hit the missing-accelerate path. Removed the accelerate preflight
entirely; transformers' PyTorch backend already pulls accelerate
as a hard dep on every supported install path, so the duplicate
find_spec guard is redundant in practice and the missing-package
case will still surface a clean ModuleNotFoundError from the
offload code itself if the user somehow lands there without it.

Round 34 P1 cross-block: extend the seed.py multipart filename
validators (round 33) to /api/datasets/upload. Both routes echo
the filename back to the client and persist it, so per the
asymmetric-fix rule the validators must match. Now rejects
control characters and embedded HF tokens in file.filename in
both upload entry points.

86 targeted backend tests pass.
2026-05-25 17:41:14 +00:00
..
data_recipe Fix/adjust diffusion: round 33 P1 batch for PR #5754 2026-05-25 16:57:28 +00:00
.gitkeep root studio folder 2026-02-02 09:13:49 +00:00
__init__.py Studio: persist chat history in backend storage (#5272) 2026-05-22 06:18:05 -07:00
auth.py studio: proxy-aware login rate-limit; allow google favicons in CSP (#5489) 2026-05-18 00:02:15 -07:00
chat_history.py Studio: persist chat history in backend storage (#5272) 2026-05-22 06:18:05 -07:00
datasets.py Fix/adjust diffusion: drop accelerate preflight + datasets upload validator for PR #5754 2026-05-25 17:41:14 +00:00
export.py Fix/adjust diffusion: round 30 follow-up P1 batch for PR #5754 2026-05-25 15:30:58 +00:00
inference.py Fix/adjust diffusion: round 31 P1 batch for PR #5754 2026-05-25 15:58:34 +00:00
models.py Fix/adjust diffusion: round 28 P1 + P2 batch for PR #5754 2026-05-25 14:21:37 +00:00
providers.py Studio: per-session cost calculator + /api/providers/pricing endpoint (#5690) 2026-05-22 06:03:43 -07:00
training.py Fix/adjust diffusion: round 30 follow-up P1 batch for PR #5754 2026-05-25 15:30:58 +00:00
training_history.py Studio: Dark theme refactor, right sidebar redesign, and chat UI polish (#5150) 2026-05-07 14:33:31 +04:00