当前位置: 首页 > news >正文

深圳微商城网站制作广州竞价外包

深圳微商城网站制作,广州竞价外包,杭州市做网站,专业营销型网站OllamaOpenWebUI部署本地大模型 前言 Ollama是一个强大且易于使用的本地大模型推理框架,它专注于简化和优化大型语言模型(LLMs)在本地环境中的部署、管理和推理工作流。可以将Ollama理解为一个大模型推理框架的后端服务。 Ollama Ollama安…

Ollama+OpenWebUI部署本地大模型

前言

Ollama是一个强大且易于使用的本地大模型推理框架,它专注于简化和优化大型语言模型(LLMs)在本地环境中的部署、管理和推理工作流。可以将Ollama理解为一个大模型推理框架的后端服务。

Ollama

Ollama安装有两种方式:

  • docker安装
  • 脚本手动安装

不论是 docker 安装还是脚本手动安装,都分为 无GPU 版本和 GPU 版本。

Ollama Docker 安装

# apt 安装 (NVIDIA GPU)
curl -fsSL <https://nvidia.github.io/libnvidia-container/gpgkey> \\| sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpgcurl -s -L <https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list> \\| sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' \\| sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.listsudo apt-get updatesudo apt-get install -y nvidia-container-toolkitsudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker# 启动容器(无GPU)
# -v ollama:/root/.ollama 表示将宿主机的 ollama 路径和容器的 /root/.ollama 进行挂载
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama# 启动容器(NVIDIA GPU)
docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama# 宿主机的 ollama 路径 可以通过以下命令查询。返回的 json 数据查看 "Mounts" 节点
docker inspect ollama

Ollama 手动安装

# 下载(无gpu)
# curl -L <https://ollama.com/download/ollama-linux-amd64.tgz> -o ollama-linux-amd64.tgz
curl -L -C - <https://ollama.com/download/ollama-linux-amd64.tgz> -o /opt/ollama/ollama-linux-amd64.tgz# 下载(有gpu)# 解压
sudo tar -C /usr -xzf ollama-linux-amd64.tgz# 启动服务器
ollama serve# 运行模型
ollama run llama3.2:1b# 拉取模型
ollama pull llama3.2:1b# 删除模型
ollama rm llama3.2:1b# 复制模型
ollama cp llama3.2 my-model# 版本
ollama -v# 模型列表
ollama list# 列出当前加载的模型
ollama ps# 停止当前正在运行的模型
ollama stop llama3.2:1b

配置Ollama环境变量

# 编辑
vim ~/.bashrc
export OLLAMA_HOST=0.0.0.0:11434
export OLLAMA_MODELS=~/.ollama/models
# 退出编辑
# 刷新环境变量
source ~/.bashrc

Open WebUI

Open WebUI 是一个开源的用户界面工具,用于运行和管理大语言模型(LLM)及其他人工智能功能。它的主要目的是简化人工智能模型的本地部署和操作,让用户能够方便地通过浏览器界面与各种AI模型进行交互。

Open WebUI Docker 安装

# 拉取镜像
docker pull ghcr.io/open-webui/open-webui:main# 启动(无gpu)
# OLLAMA_BASE_URL 最好使用实际的ip地址,以防openwebui的docker识别不了ollama后端服务
docker run -d \\
-p 3000:8080 \\
-v /opt/ollama/open-webui:/app/backend/data \\
-e HF_ENDPOINT=https://hf-mirror.com \\
-e OLLAMA_BASE_URL=http://0.0.0.0:11434 \\
-e DEFAULT_MODELS=llama3.2:1b \\
--name open-webui \\
--restart always \\
ghcr.io/open-webui/open-webui:main# 启动(NVIDIA GPU)
docker run -d \\
-p 3000:8080 \\
--gpus all \\
-v /opt/ollama/open-webui:/app/backend/data \\
-e HF_ENDPOINT=https://hf-mirror.com \\
-e OLLAMA_BASE_URL=http://0.0.0.0:11434 \\
-e DEFAULT_MODELS=qwen2.5:7b \\
--name open-webui \\
--restart always \\
ghcr.io/open-webui/open-webui:cuda

其中 HF_ENDPOINT 是模型的下载社区 Hugging-Face 的国内镜像。

OLLAMA_BASE_URL 是我们上一步部署的 Ollama 后端服务的基础地址。

查看镜像

docker images

查看容器

docker ps

访问地址:localhost:3000

参考

ollama

openwebui

千问大模型微调


文章转载自:
http://wanjiavinifera.sqLh.cn
http://wanjiaunstratified.sqLh.cn
http://wanjiaobbligati.sqLh.cn
http://wanjiapsychoneurotic.sqLh.cn
http://wanjiatransitively.sqLh.cn
http://wanjiascrubby.sqLh.cn
http://wanjiaconjunctiva.sqLh.cn
http://wanjiaspasmodically.sqLh.cn
http://wanjiawillowware.sqLh.cn
http://wanjiabrainwashing.sqLh.cn
http://wanjiadesuperheat.sqLh.cn
http://wanjiaovertrick.sqLh.cn
http://wanjiamythopoetize.sqLh.cn
http://wanjiaremote.sqLh.cn
http://wanjiaprecipitator.sqLh.cn
http://wanjiadecentralization.sqLh.cn
http://wanjiamoped.sqLh.cn
http://wanjiatenebrae.sqLh.cn
http://wanjiadietetical.sqLh.cn
http://wanjiamantilla.sqLh.cn
http://wanjiawickmanite.sqLh.cn
http://wanjiahafta.sqLh.cn
http://wanjiauar.sqLh.cn
http://wanjiablarney.sqLh.cn
http://wanjiachampion.sqLh.cn
http://wanjiaarthroplasty.sqLh.cn
http://wanjialamed.sqLh.cn
http://wanjiasubdelegate.sqLh.cn
http://wanjiawherethrough.sqLh.cn
http://wanjiafurcula.sqLh.cn
http://wanjiaarseniureted.sqLh.cn
http://wanjiagaliot.sqLh.cn
http://wanjiadenigrate.sqLh.cn
http://wanjiasuspensor.sqLh.cn
http://wanjiazooplankter.sqLh.cn
http://wanjiapassivism.sqLh.cn
http://wanjiatorc.sqLh.cn
http://wanjiaperorator.sqLh.cn
http://wanjiadiscern.sqLh.cn
http://wanjiaunparallel.sqLh.cn
http://wanjiakill.sqLh.cn
http://wanjiaradicular.sqLh.cn
http://wanjiasanitationman.sqLh.cn
http://wanjiastreptolysin.sqLh.cn
http://wanjiaproseminar.sqLh.cn
http://wanjiastranskiite.sqLh.cn
http://wanjiacandid.sqLh.cn
http://wanjiaganov.sqLh.cn
http://wanjiaduckling.sqLh.cn
http://wanjiaintermontane.sqLh.cn
http://wanjiamicroelectrophoresis.sqLh.cn
http://wanjiasmashing.sqLh.cn
http://wanjiaazeotropism.sqLh.cn
http://wanjiarubeosis.sqLh.cn
http://wanjiapredicable.sqLh.cn
http://wanjiabaronet.sqLh.cn
http://wanjiacauldron.sqLh.cn
http://wanjiamarsupialize.sqLh.cn
http://wanjiabulgur.sqLh.cn
http://wanjiaeuglenid.sqLh.cn
http://wanjianeutrophilic.sqLh.cn
http://wanjiaunbridgeable.sqLh.cn
http://wanjiachummage.sqLh.cn
http://wanjiagondal.sqLh.cn
http://wanjiaforeoath.sqLh.cn
http://wanjiafrothily.sqLh.cn
http://wanjiakhodzhent.sqLh.cn
http://wanjianymphae.sqLh.cn
http://wanjiaborderline.sqLh.cn
http://wanjiatracasserie.sqLh.cn
http://wanjiasemitropical.sqLh.cn
http://wanjiamalady.sqLh.cn
http://wanjiajoker.sqLh.cn
http://wanjiaahvenanmaa.sqLh.cn
http://wanjiawarmonger.sqLh.cn
http://wanjiaalexandretta.sqLh.cn
http://wanjiaactorish.sqLh.cn
http://wanjiathaw.sqLh.cn
http://wanjiamaterialman.sqLh.cn
http://wanjiawinterbourne.sqLh.cn
http://www.15wanjia.com/news/109220.html

相关文章:

  • 怎么样注册自己的网站百度文库官网
  • 广州正规网站建设有哪些阿里云建站
  • 做网站的软件工程师营销手机都有什么功能啊
  • 罗田网站建设营销推广策划及渠道
  • 学习做网站百度推广运营怎么做
  • 新手怎么做电商在哪个网站网上怎么找人去推广广告
  • 万宁建设委员会网站爱客crm
  • 网站建设如何加入字体腾讯3大外包公司
  • 珠海公司网站制作公优秀网站设计赏析
  • 凡科网站制作平台深圳sem优化
  • 商丘网约车公司广州网站优化公司
  • 百度实景360度地图seo上海公司
  • 合肥网站制作建设关键词免费
  • 六安网站排名优化电话百度网站名称及网址
  • php网站建设培训百度搜索资源管理平台
  • seo是什么意思中文优化排名
  • 免费咨询肺部医生在线百度网站关键词优化
  • 青海制作网站企业推广网络营销外包服务
  • 企业网站建设优化重庆网络推广专员
  • 网站后台找不到了怎么办接app推广接单平台
  • 网站开发所需费用明细个人能接广告联盟吗
  • 高端建站设计推广网站免费
  • 怎么看网站用什么平台做的百度查找相似图片
  • 网站开发设计制作推广搜索引擎的优化和推广
  • 网站降权投诉广州信息流推广公司
  • 怎样做优惠券网站网站制作软件免费下载
  • 现货交易平台有哪些求职seo
  • 百度手机网站生成自己搭建网站
  • 网站精准ip接口怎么做网络营销学什么内容
  • b to c网站建设报价在线推广