首先,选择一个合适的系统。
⚠️硬件
- 搭载第 12 代英特尔®酷睿™或更高版本的处理器和至少 16GB 内存的个人电脑
⚠️操作系统
- Ubuntu 20.04
打开终端并且运行以下命令:
wget <https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh>
bash ./Miniconda3-latest-Linux-x86_64.sh
conda init
创建环境
创建一个 Python 3.9 环境,名称由您选择,例如 llm-tutorial
:
conda create -n llm-tutorial python=3.9
然后激活环境 llm-tutorial
:
安装 Jupyter
运行教程提供的笔记本 (即 .ipynb
文件) 需要 jupyter
库。在激活的 Python 3.9 环境下运行:
pip install jupyter
启动 Jupyter 服务
启动 jupyter 服务的推荐指令在个人电脑和服务器上略有不同。
在个人电脑上,只需在 shell 中运行以下命令:
jupyter notebook