From f9b642c6465cbce1057d6380dd9a13d91f1b923a Mon Sep 17 00:00:00 2001 From: poneding Date: Tue, 9 Jul 2024 10:24:59 +0800 Subject: [PATCH] Update archives. --- content/.obsidian/appearance.json | 4 +-- content/_index.md | 1 + content/ai/_index.md | 2 ++ content/ai/d2l.md | 59 +++++++++++++++++++++++++++++++ content/ai/llama.md | 3 ++ 5 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 content/ai/d2l.md 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)