2024-03-23 19:39:43 +08:00
|
|
|
|
|
|
|
|
|
from modelscope.hub.api import HubApi
|
|
|
|
|
|
2024-09-14 18:34:31 +08:00
|
|
|
|
YOUR_ACCESS_TOKEN = '' # 输入你的modelscope access token
|
2024-03-23 19:39:43 +08:00
|
|
|
|
|
|
|
|
|
api = HubApi()
|
|
|
|
|
api.login(YOUR_ACCESS_TOKEN)
|
|
|
|
|
api.push_model(
|
2024-09-14 18:34:31 +08:00
|
|
|
|
model_id="zealot5209/EmoLLM-Scientist", # your_name/model_id
|
|
|
|
|
model_dir="./merged" # 本地模型目录,要求目录中必须包含configuration.json
|
|
|
|
|
)
|