File size: 483 Bytes
f37688e
 
 
 
23402df
8de0610
23402df
 
 
f37688e
23402df
f37688e
 
23402df
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os

os.system('git clone https://github.com/modelscope/swift.git')
os.system('pip install ./swift["llm"]')
os.system('pip install evalscope[all]>=0.5.2')
os.system('pip install huggingface_hub trl accelerate peft transformers -U')
os.system('rm -rf /mnt/workspace/.cache/modelscope/hub/*')
os.system(f'rm -rf {os.path.expanduser("~")}/.cache/modelscope/hub/*')
os.system('pip install tf-keras')

from swift.ui.app import webui_main

if __name__ == '__main__':
    webui_main()