23 lines
378 B
Markdown
23 lines
378 B
Markdown
# pytorch study
|
|
|
|
## BASE ENV
|
|
```shell
|
|
conda create -n pt python=3.10 -y
|
|
|
|
conda activate pt
|
|
```
|
|
|
|
## MAC
|
|
```shell
|
|
# 安装 pytorch v1.12版本已经正式支持了用于mac m1芯片gpu加速的mps后端
|
|
conda install pytorch::pytorch torchvision torchaudio -c pytorch -y
|
|
|
|
pip install numpy
|
|
pip install pandas
|
|
pip install matplotlib
|
|
```
|
|
|
|
## gpt4free
|
|
```
|
|
pip install -U g4f[all]
|
|
``` |