Skip to content

Commit

Permalink
发布博客,时间:2024/11/08 14:43:13
Browse files Browse the repository at this point in the history
  • Loading branch information
whp98 committed Nov 8, 2024
1 parent 402411e commit 4174be6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions docs/AI相关/Docker中跑Ollama.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html

https://docs.docker.com/engine/containers/resource_constraints/#gpu

4. 安装vscode

5. 安装vscode docker 插件

## 二、准备docker-compose文件
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# ubuntu docker使用nvidia显卡跑ai
# ubuntu docker使用nvidia显卡跑comfyui


## 参考文档

https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html


## 安装


### apt安装nvidia-container-toolkit
```shell
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
Expand Down Expand Up @@ -89,8 +86,9 @@ services:
- "host.docker.internal:host-gateway"
environment:
- no_proxy=localhost,127.0.0.1,host.docker.internal
- https_proxy=http://host.docker.internal:20003
- http_proxy=http://host.docker.internal:20003
# 可替换为自己的代理地址
- https_proxy=http://host.docker.internal:7890
- http_proxy=http://host.docker.internal:7890
runtime: nvidia
deploy:
resources:
Expand Down
2 changes: 1 addition & 1 deletion docs/AI相关/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AI相关
- [ubuntu docker使用nvidia显卡跑comfyui](./docker使用nvidia显卡跑comfyui.md)
- [Docker中跑Ollama](./Docker中跑Ollama.md)
- [ubuntu docker使用nvidia显卡跑ai](./docker使用nvidia显卡跑ai.md)
- [LLM-API参数解读](./LLM-API参数解读.md)
- [Ollama安装和使用](./ollama安装和使用.md)

0 comments on commit 4174be6

Please sign in to comment.