-
Notifications
You must be signed in to change notification settings - Fork 380
Description
使用下面的流程同步模型时:
1、先创建模型仓库
2、创建镜像配置:
POST /{repo_type}/{namespace}/{name}/mirror
3、 API 触发同步:
POST /{repo_type}/{namespace}/{name}/mirror/sync
同步成功后通过git clone 拉取出问题:
git clone https://xxxxxxxxxx:xxxxxxxx@xxxx.xxxxx.com/models/xxxxxx/SmolLM2-135M-Instruct.git
Cloning into 'SmolLM2-135M-Instruct'...
remote: Enumerating objects: 57, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 57 (delta 0), reused 0 (delta 0), pack-reused 54 (from 1)
Receiving objects: 100% (57/57), 1.11 MiB | 6.63 MiB/s, done.
Resolving deltas: 100% (14/14), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout
这样就正常了,应该就是git默认的是main分支,但同步后只有master分支了导致的
git clone -b master https://xxxxxxxxxx:xxxxxxxx@xxxx.xxxxx.com/models/xxxxxx/SmolLM2-135M-Instruct.git
是不是同步后更新 Git 仓库的 HEAD逻辑存在问题啊,
这是一个bug吧,麻烦看一下呢?