Repository navigation
feat(sync): modelscope 点号转义目录自动补原名软链 - #161
Merged
Merged
Conversation
modelscope escapes '.' in model names to '___' in cache dirs; business jobs that reference the original name path (e.g. gy001 Eco-Tech/Qwen3.5-27B-w8a8-mtp) miss the weights. After a successful modelscope download, create a relative symlink <original> -> <escaped> next to every escaped dir found under the cache (idempotent; real non-symlink entity at the original path is preserved with a WARN, never overwritten). resolve https://github.com/opensourceways/backlog/issues/2647
KadenZhang3321
force-pushed
the
feat/modelscope-dot-escape-symlink
branch
from
November 27, 2026 03:44
b7efa2f to
f615f47
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolve https://github.com/opensourceways/backlog/issues/2647
问题
modelscope SDK 把模型名里的
.转义成___落缓存目录(如Eco-Tech/Qwen3.5-27B-w8a8-mtp→Qwen3___5-27B-w8a8-mtp)。业务 job 若按原名直引路径(/root/.cache/modelscope/hub/models/Eco-Tech/Qwen3.5-27B-w8a8-mtp)会找不到权重。gy001 盘上历史上靠人工补软链(2026-03-27 那批Qwen3.5-* -> Qwen3___5-*即人工产物),新下载无人补就会踩坑。改动
download-json-models.sh:modelscope 下载成功后(未指定local_dir且名字含.),在缓存目录下 find 所有<org>/<转义名>实体目录,旁侧ln -sfn补原名→转义名的相对软链:/root/.cache、同步机/mnt/sfs_turbo)都成立;ln -sfn原地覆盖同目标链接;$cache/models/<org>/<san>(1.37 经典)与$cache/hub/models/<org>/<san>(legacy_materialize 目标),audit 的三种路径模式深度都在 maxdepth 4 内。测试
bash -n✓;存量
Eco-Tech/Qwen3.5-27B-w8a8-mtp:软链已人工确认存在(b9bf4a57 新盘);但发现业务 a2b4 模板挂的是 az5 别名盘(d561f410),models: add download requests for vllm-ascend-recipes (A3 x4, A2 x1) #151 数据落在 nvbench 盘(b9bf4a57),az5 上只有 8K stub——正在另行把 34G 同步到 az5 并补链(见 PR 评论),这是 ADR-0028 半迁移态的落点错位,与本 PR 的软链自动化是两个问题。ok=1分支有一行相邻改动,后合入者 trivial 解冲突。