# Uni-Core Uni-Core 专为快速创建高性能 PyTorch 模型而构建,尤其是基于 Transfromer 的模型。详细信息可参考[README_ORIGIN.md](README_ORIGIN.md) # 安装 组件支持: * Python >= 3.7 ## 使用pip方式安装 从http://10.6.10.68:8000/customized/ 下载Uni-core安装包,选择对应torch、python版本的whl包 ```bash pip install unicore*.whl ``` ## 源码编译方式安装 确认环境中已安装torch,并安装fastpt工具。从[Index of /debug/fastpt/](http://10.6.10.68:8000/debug/fastpt/)中下载对应python版本的安装包,执行 ```bash pip install fastpt*.whl ``` 下载Uni-Core源码,并执行安装: ```bash # 代码下载之后,注意切换分支到develop或其它目标分支 git clone http://developer.hpccube.com/codes/OpenDAS/Uni-Core.git cd Uni-Core python setup.py install ``` # 验证 执行以下代码查询软件版本号,验证是否安装完成: `python -c "import unicore;print(unicore.__version__)"`