Amazon EC2 部署Ollama + webUI

最近和同事闲聊,我们能不能内网自己部署一个LLM,于是便有了Ollama + webUI的尝试
在这里插入图片描述

对于Linux,使用一行命令即可

curl -fsSL https://ollama.com/install.sh | sh
ollama --help                     
Large language model runner

Usage:
  ollama [flags]
  ollama [command]

Available Commands:
  serve       Start ollama
  create      Create a model from a Modelfile
  show        Show information for a model
  run         Run a model
  pull        Pull a model from a registry
  push        Push a model to a registry
  list        List models
  ps          List running models
  cp          Copy a model
  rm          Remove a model
  help        Help about any command

Flags:
  -h, --help      help for ollama
  -v, --version   Show version information

docker run -d --gpus=all -p 11434:11434 --name ollama ollama/ollama

除了 Llama 3, Phi 3, Mistral, Gemma 2, and

docker run -d -p 3001:8080 --gpus all --add-host=host.docker.internal:host-gateway -e OLLAMA_BASE_URL=https://example.com  --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

[1] https://ollama.com/
[2] https://ollama.com/library
[3]https://ollama.com/blog/ollama-is-now-available-as-an-official-docker-image

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-15 19:18:01       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-15 19:18:01       72 阅读
  3. 在Django里面运行非项目文件

    2024-07-15 19:18:01       58 阅读
  4. Python语言-面向对象

    2024-07-15 19:18:01       69 阅读

热门阅读

  1. leensa注册码

    2024-07-15 19:18:01       26 阅读
  2. vue 导出excel乱码问题

    2024-07-15 19:18:01       15 阅读
  3. tomcat

    tomcat

    2024-07-15 19:18:01      19 阅读
  4. C++ STL中的std::remove_if 的用法详解

    2024-07-15 19:18:01       21 阅读
  5. iOS ------ ARC的工作原理

    2024-07-15 19:18:01       22 阅读
  6. Photoshop中的前景色和背景色

    2024-07-15 19:18:01       18 阅读