from modelscope.hub.api import HubApi | |
YOUR_ACCESS_TOKEN = 'f1775e28-a401-4ad3-9442-9903fbfb80dd' | |
api = HubApi() | |
api.login(YOUR_ACCESS_TOKEN) | |
api.push_model( | |
model_id="V1ncentS/RC-GPT", | |
model_dir="D:\复旦\金融风控LLM+KG\Baichuan\Baichuan2-13B-Chat" # 本地模型目录,要求目录中必须包含configuration.json | |
) | |