# examples **Repository Path**: hpdl-group/examples ## Basic Information - **Project Name**: examples - **Description**: YH-Torch使用方法以及样例 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-12-31 - **Last Updated**: 2024-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # YH-Torch examples #### 介绍 该仓库包含了YH-Torch使用方法以及样例 #### 安装教程 下载examples: ```bash git clone https://gitee.com/hpdl-group/examples.git ``` #### 使用说明 使用YH-Torch,需要满足两个条件 1. 计算节点加载有dsp驱动,可以通过`lsmode| grep mt`查看, 如果显示以下信息,则是已经存在dsp驱动 ``` shell mt 40960 0 ``` 2. 当前目录下存在有libftdnnmt.dat文件(后续版本将会去除这一条件,目前版本强制需求,否则无法使用),可以使用script/get_lib_file.py文件获取 ```shell # 在激活YH-Torch环境后运行 python script/get_lib_file.py --dst "image-classification/cifar" ``` 会在目标目录下生成一个libftdnnmt.dat的软链接 满足上述条件后,即可运行样例文件进行训练: ```shell cd image-classification/cifar python -u run_cifar.py -a "resnet50" ```