OliveSensorAPI/scripts/upload_modelscope.py
2024-09-14 18:34:31 +08:00

12 lines
326 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from modelscope.hub.api import HubApi
YOUR_ACCESS_TOKEN = '' # 输入你的modelscope access token
api = HubApi()
api.login(YOUR_ACCESS_TOKEN)
api.push_model(
model_id="zealot5209/EmoLLM-Scientist", # your_name/model_id
model_dir="./merged" # 本地模型目录要求目录中必须包含configuration.json
)