对poworinfer的教程做了少量的改进

This commit is contained in:
root 2024-07-08 10:35:47 +08:00
parent 6070710463
commit 3c3caa5d35

View File

@ -303,12 +303,12 @@ powerinfer目前仅针对MiniCPM-S-1B模型其他版本暂不支持敬请
cd PowerInfer cd PowerInfer
pip install -r requirements.txt # install Python helpers' dependencies pip install -r requirements.txt # install Python helpers' dependencies
``` ```
3. cpu版本powerinfer编译 3. cpu版本powerinfer编译,如果你的机器只有cpu或者只想使用cpu进行推理则运行以下命令
```bash ```bash
cmake -S . -B build cmake -S . -B build
cmake --build build --config Release cmake --build build --config Release
``` ```
4. gpu版本powerinfer编译 4. gpu版本powerinfer编译,如果你的机器有gpu则可以运行以下命令
```bash ```bash
cmake -S . -B build -DLLAMA_CUBLAS=ON cmake -S . -B build -DLLAMA_CUBLAS=ON
cmake --build build --config Release cmake --build build --config Release