已开启
docs(svd_quant): 修正路径变量多余美元符 #255
不喜欢雨天ༀ创建于 26 天前
docs(svd_quant): 修正路径变量多余美元符 #255
已开启
共 2 个文件变更+8-8
| @@ -131,7 +131,7 @@ svd_quant/ # SVDQuant components | |||
| 131 | ```bash | 131 | ```bash |
| 132 | source $ASCEND_HOME_PATH/set_env.sh | 132 | source $ASCEND_HOME_PATH/set_env.sh |
| 133 | path="amct" | 133 | path="amct" |
| 134 | -cd $path$/amct_ops | 134 | +cd "$path/amct_ops" |
| 135 | bash ops_build.sh --soc ascend950 svd_quant | 135 | bash ops_build.sh --soc ascend950 svd_quant |
| 136 | ./output/CANN-custom_ops--linux.aarch64.run --install-path=$ASCEND_HOME_PATH/opp | 136 | ./output/CANN-custom_ops--linux.aarch64.run --install-path=$ASCEND_HOME_PATH/opp |
| 137 | source $ASCEND_HOME_PATH/opp/vendors/customize/bin/set_env.bash | 137 | source $ASCEND_HOME_PATH/opp/vendors/customize/bin/set_env.bash |
| @@ -140,7 +140,7 @@ source $ASCEND_HOME_PATH/opp/vendors/customize/bin/set_env.bash | |||
| 140 | ### 2. PyTorch算子安装指南 | 140 | ### 2. PyTorch算子安装指南 |
| 141 | 141 | ||
| 142 | ```bash | 142 | ```bash |
| 143 | -cd $path$/amct_ops | 143 | +cd "$path/amct_ops" |
| 144 | pip install ./dist/amct-*.whl --force-reinstall --no-deps | 144 | pip install ./dist/amct-*.whl --force-reinstall --no-deps |
| 145 | ``` | 145 | ``` |
| 146 | 146 | ||
| @@ -205,14 +205,14 @@ svd_quant_out = torch.ops.amct.svd_quant(x, w_quant, scale, dp, up) | |||
| 205 | ## 测试方法 | 205 | ## 测试方法 |
| 206 | 206 | ||
| 207 | ```bash | 207 | ```bash |
| 208 | -cd $path$/tests/amct_ops | 208 | +cd "$path/tests/amct_ops" |
| 209 | pytest test_svd_quant.py | 209 | pytest test_svd_quant.py |
| 210 | ``` | 210 | ``` |
| 211 | 211 | ||
| 212 | 也可以先安装 wheel 后再执行测试: | 212 | 也可以先安装 wheel 后再执行测试: |
| 213 | 213 | ||
| 214 | ```bash | 214 | ```bash |
| 215 | -cd $path$/amct_ops | 215 | +cd "$path/amct_ops" |
| 216 | pip install dist/amct-1.0-*.whl | 216 | pip install dist/amct-1.0-*.whl |
| 217 | pytest test_svd_quant.py | 217 | pytest test_svd_quant.py |
| 218 | ``` | 218 | ``` |
| @@ -131,7 +131,7 @@ svd_quant/ # SVDQuant components | |||
| 131 | ```bash | 131 | ```bash |
| 132 | source $ASCEND_HOME_PATH/set_env.sh | 132 | source $ASCEND_HOME_PATH/set_env.sh |
| 133 | path="amct" | 133 | path="amct" |
| 134 | -cd $path$/amct_ops | 134 | +cd "$path/amct_ops" |
| 135 | bash ops_build.sh --soc ascend950 svd_quant | 135 | bash ops_build.sh --soc ascend950 svd_quant |
| 136 | ./output/CANN-custom_ops--linux.aarch64.run --install-path=$ASCEND_HOME_PATH/opp | 136 | ./output/CANN-custom_ops--linux.aarch64.run --install-path=$ASCEND_HOME_PATH/opp |
| 137 | source $ASCEND_HOME_PATH/opp/vendors/customize/bin/set_env.bash | 137 | source $ASCEND_HOME_PATH/opp/vendors/customize/bin/set_env.bash |
| @@ -140,7 +140,7 @@ source $ASCEND_HOME_PATH/opp/vendors/customize/bin/set_env.bash | |||
| 140 | ### 2. PyTorch Operator Installation | 140 | ### 2. PyTorch Operator Installation |
| 141 | 141 | ||
| 142 | ```bash | 142 | ```bash |
| 143 | -cd $path$/amct_ops | 143 | +cd "$path/amct_ops" |
| 144 | pip install ./dist/amct-*.whl --force-reinstall --no-deps | 144 | pip install ./dist/amct-*.whl --force-reinstall --no-deps |
| 145 | ``` | 145 | ``` |
| 146 | 146 | ||
| @@ -205,14 +205,14 @@ Accuracy verification is performed through the following conditions: | |||
| 205 | ## Test Method | 205 | ## Test Method |
| 206 | 206 | ||
| 207 | ```bash | 207 | ```bash |
| 208 | -cd $path$/tests/amct_ops | 208 | +cd "$path/tests/amct_ops" |
| 209 | pytest test_svd_quant.py | 209 | pytest test_svd_quant.py |
| 210 | ``` | 210 | ``` |
| 211 | 211 | ||
| 212 | Can also install wheel first then run tests: | 212 | Can also install wheel first then run tests: |
| 213 | 213 | ||
| 214 | ```bash | 214 | ```bash |
| 215 | -cd $path$/amct_ops | 215 | +cd "$path/amct_ops" |
| 216 | pip install dist/amct-1.0-*.whl | 216 | pip install dist/amct-1.0-*.whl |
| 217 | pytest test_svd_quant.py | 217 | pytest test_svd_quant.py |
| 218 | ``` | 218 | ``` |