diff --git a/content/.obsidian/appearance.json b/content/.obsidian/appearance.json index 6669ce38..612e4f7b 100644 --- a/content/.obsidian/appearance.json +++ b/content/.obsidian/appearance.json @@ -1,8 +1,8 @@ { "accentColor": "", "theme": "system", - "monospaceFontFamily": "Monaco,Ubuntu Mono", - "interfaceFontFamily": "Monaco,Ubuntu", + "monospaceFontFamily": "Menlo,Monaco,Ubuntu Mono", + "interfaceFontFamily": "Menlo,Monaco,Ubuntu", "baseFontSize": 16, "cssTheme": "", "enabledCssSnippets": [ diff --git a/content/_index.md b/content/_index.md index 8a37cf97..dce05113 100644 --- a/content/_index.md +++ b/content/_index.md @@ -2,6 +2,7 @@ ## AI +- [动手学深度学习](ai/d2l.md) - [llama](ai/llama.md) ## 数据结构与算法 diff --git a/content/ai/_index.md b/content/ai/_index.md index 251680f4..4eb80f26 100644 --- a/content/ai/_index.md +++ b/content/ai/_index.md @@ -2,4 +2,6 @@ # AI +[动手学深度学习](d2l.md) + [llama](llama.md) diff --git a/content/ai/d2l.md b/content/ai/d2l.md new file mode 100644 index 00000000..ebb7ba9e --- /dev/null +++ b/content/ai/d2l.md @@ -0,0 +1,59 @@ +[🏠 首页](../_index.md) / [AI](_index.md) / 动手学深度学习 + +# 动手学深度学习 + +# 环境准备 + +备注:开发机器为 MacOS M1 Pro + +## python + + + +### miniconda + +```bash +wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh + +sh Miniconda3-latest-MacOSX-arm64.sh -b +``` + +### jupyter + +### PyTorch 框架 + +```bash +pip install torch==1.12.0 +pip install torchvision==0.13.0 +``` + +### d2l 包 + +```bash +pip install d2l==0.17.6 +``` + +### D2L Notebook + +```bash +wget https://zh-v2.d2l.ai/d2l-zh.zip +unzip d2l-zh.zip +rm d2l-zh.zip +cd mxnet +``` + +## 开始 + +```bash +# 前提时安装了 zsh,否则使用 bash +./miniconda3/bin/conda init zsh + +source ~/.zshrc + +conda create --name d2l python3.12.4 -y + +conda activate d2l +``` + +--- +[» llama](llama.md) diff --git a/content/ai/llama.md b/content/ai/llama.md index a3818d2f..ec2fddcd 100644 --- a/content/ai/llama.md +++ b/content/ai/llama.md @@ -54,3 +54,6 @@ curl http://localhost:11434/api/generate -d '{ "stream": false }' ``` + +--- +[« 动手学深度学习](d2l.md)