log.txt
运行 Anaconda3 安装脚本
bash /home/dell3090-1/Downloads/Anaconda3-2023.09-0-Linux-x86_64.sh
yes # 在脚本运行期间,可能需要确认是否同意某些条款,yes 命令可用于自动确认
bash /home/dell3090-1/Downloads/Anaconda3-2023.09-0-Linux-x86_64.sh
一系列 conda config 命令:配置 Conda 的镜像源,使用清华大学镜像站
sudo gedit pip.conf
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/simpleitk
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
一系列关于创建和配置名为 Pytorch-cu121-1、Pytorch-cu118-1 的 Conda 环境,安装相关库的命令
conda create -n Pytorch-cu121-1 python=3.10
conda activate Pytorch-cu121-1
conda install cudatoolkit=12.1
conda create -n Pytorch-cu118-1 python=3.10
conda activate Pytorch-cu118-1
conda install cudatoolkit=11.8
conda install cudnn
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
conda activate Pytorch-cu118-1
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
conda activate Pytorch-cu118-1
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
conda activate Pytorch-cu118-1
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip3 install opencv_python
pip3 install scipy
pip3 install scikit-learn
pip3 install matplotlib
pip3 install pandas
pip3 install tqdm
一系列关于安装 JupyterLab、ipykernel、ipywidgets 等库,并在 Jupyter 中配置环境的命令
pip3 install jupyterlab
pip3 install ipykernel
python -m ipykernel install --user --name Pytorch-cu118-1 --display-name "Pytorch-cu118-1"
pip3 install ipywidgets widgetsnbextension pandas-profiling
jupyter nbextension enable --py widgetsnbextension
pip3 install ipywidgets widgetsnbextension pandas-profiling
conda activate Pytorch-cu118-1
pip3 install jupyterlab
pip3 install ipykernel
python -m ipykernel install --user --name Pytorch-cu118-1 --display-name "Pytorch-cu118-1"
pip3 install ipywidgets widgetsnbextension pandas-profiling
jupyter nbextension enable --py widgetsnbextension
jupyter lab # 启动 JupyterLab
一系列关于使用 taskset 运行 Python 脚本的命令,可能是在指定的 CPU 核心上运行 GPT 模型的脚本。
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-02.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-00.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-00.py
taskset -c 0,1,2,3 python GPT-2-4-005-01.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-001-23.py
taskset -c 0,1,2,3 python GPT-001-24.py
history
pip3 install ipywidgets widgetsnbextension pandas-profiling
jupyter nbextension enable --py widgetsnbextension
jupyter lab
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-02.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-00.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-00.py
taskset -c 0,1,2,3 python GPT-2-4-005-01.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-001-23.py
taskset -c 0,1,2,3 python GPT-001-24.py
taskset 的使用通常与需要对 CPU 资源进行精细控制的应用程序相关,比如在并行计算或实时系统中确保任务在特定核心上执行。