Skip to content

Commit

Permalink
Update archives.
Browse files Browse the repository at this point in the history
  • Loading branch information
poneding committed Jul 9, 2024
1 parent 3997eb3 commit f9b642c
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/.obsidian/appearance.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
1 change: 1 addition & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## AI

- [动手学深度学习](ai/d2l.md)
- [llama](ai/llama.md)

## 数据结构与算法
Expand Down
2 changes: 2 additions & 0 deletions content/ai/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

# AI

[动手学深度学习](d2l.md)

[llama](llama.md)
59 changes: 59 additions & 0 deletions content/ai/d2l.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[🏠 首页](../_index.md) / [AI](_index.md) / 动手学深度学习

# 动手学深度学习

# 环境准备

备注:开发机器为 MacOS M1 Pro

## python

<https://www.python.org/ftp/python/3.12.4/python-3.12.4-macos11.pkg>

### 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)
3 changes: 3 additions & 0 deletions content/ai/llama.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ curl http://localhost:11434/api/generate -d '{
"stream": false
}'
```

---
[« 动手学深度学习](d2l.md)

0 comments on commit f9b642c

Please sign in to comment.