We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a22ec59 commit affd90bCopy full SHA for affd90b
xtuner_config/upload_modelscope.py
@@ -0,0 +1,10 @@
1
+from modelscope.hub.api import HubApi
2
+
3
+YOUR_ACCESS_TOKEN = '请从ModelScope个人中心->访问令牌获取'
4
5
+api = HubApi()
6
+api.login(YOUR_ACCESS_TOKEN)
7
+api.push_model(
8
+ model_id="yourname/your_model_id",
9
+ model_dir="my_model_dir" # 本地模型目录,要求目录中必须包含configuration.json
10
+)
0 commit comments