unsloth/studio/backend/hub/utils
Tai An d0c8d550a6
fix(studio/hub): apply repo_id length limit per segment, not whole string (#6946) (#6953)
* fix(studio/hub): apply repo_id length limit per segment, not whole string

is_valid_repo_id() applied the 96-char limit to the full "namespace/repo_name"
string, so a repo with a valid (<=96 char) name but a long combined id was
falsely rejected. Match huggingface_hub.validate_repo_id by checking the length
per segment instead. Fixes #6946.

* Fix long repo id state filenames

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Etherll <61019402+Etherll@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-07-08 15:38:06 +03:00
..
__init__.py feat(studio): Hub + Download Manager (#5916) 2026-06-09 04:11:24 -07:00
dataset_cache.py feat(studio): Hub + Download Manager (#5916) 2026-06-09 04:11:24 -07:00
dataset_format.py feat(studio): Hub + Download Manager (#5916) 2026-06-09 04:11:24 -07:00
download_manifest.py feat(studio): Hub + Download Manager (#5916) 2026-06-09 04:11:24 -07:00
download_registry.py feat(studio): Hub + Download Manager (#5916) 2026-06-09 04:11:24 -07:00
gguf.py Studio: clean up empty leftover quant folders so they can be deleted (#6616) 2026-06-25 01:14:21 -07:00
gguf_plan.py studio: allow updating HF models through UI (#5388) 2026-07-01 01:54:57 +03:00
hf_cache_state.py Studio: free chat model VRAM at training start only when the GPU is tight (#6243) 2026-06-18 09:04:01 -07:00
hf_errors.py feat(studio): Hub + Download Manager (#5916) 2026-06-09 04:11:24 -07:00
inventory_scan.py studio: allow updating HF models through UI (#5388) 2026-07-01 01:54:57 +03:00
llm_assist.py feat(studio): Hub + Download Manager (#5916) 2026-06-09 04:11:24 -07:00
paths.py fix(studio/hub): apply repo_id length limit per segment, not whole string (#6946) (#6953) 2026-07-08 15:38:06 +03:00
snapshot_filters.py feat(studio): Hub + Download Manager (#5916) 2026-06-09 04:11:24 -07:00
state_dir.py fix(studio/hub): apply repo_id length limit per segment, not whole string (#6946) (#6953) 2026-07-08 15:38:06 +03:00