modelscope/swift
1
1import os2 3os.system('git clone https://github.com/modelscope/swift.git')4os.system('pip install ./swift["llm"]')5os.system('pip install evalscope[all]>=0.5.2')6os.system('pip install huggingface_hub trl accelerate peft transformers -U')7os.system('rm -rf /mnt/workspace/.cache/modelscope/hub/*')8os.system(f'rm -rf {os.path.expanduser("~")}/.cache/modelscope/hub/*')9os.system('pip install tf-keras')10 11from swift.ui.app import webui_main12 13if __name__ == '__main__':14 webui_main()