惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
J
Java Code Geeks
Martin Fowler
Martin Fowler
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
博客园 - 【当耐特】
Y
Y Combinator Blog
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
G
Google Developers Blog
博客园 - 三生石上(FineUI控件)
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
博客园 - 司徒正美

博客园 - 河在谈

华为云挂载其它硬盘 copaw安装使用,ollama ubuntu24.04 安装 cuda 13.2 群辉采用Virtual Machine Manager安装ImmortalWrt Excel 宏 日期选择 ollama下载模型并运行 docker镜像离线导出、导入 构建一个huggingface的python虚拟环境,并下载模型 ESXi-6.7.0 安装黑群辉 7.1.1 群辉备份数据至通过rsync 备份至linux服务器 学位论文中 公式的插入,格式调整、编号以及引用 php-fpm配置redis存session 专利线框图绘制和导出,从Blender到3ds max 显卡掉卡收集日志给服务器供应商 photoshop 批量导出每个图层为独立图像 thinkcmfx 修改菜单不生效 mathtype中嵌入数学公式导致行距变大的解决方法 ubuntu 采用.run文件安装的cuda,升级版本,安装cudnn docker 容器,将网络更改为默认bridge网络 CentOS系统实现PPT转图片
ubuntu24.04 LiteLLM的安装配置
河在谈 · 2026-03-28 · via 博客园 - 河在谈

1、安装docker

2、  docker-compose.yml

services:
  litellm:
    image: docker.litellm.ai/berriai/litellm:main-stable
    volumes:
      - ./config.yaml:/app/config.yaml
    ports:
      - "4000:4000"
    command:
      - "--config=/app/config.yaml"
      - "--port=4000"
    extra_hosts:
      - "host.docker.internal:host-gateway"

3、config.yaml

model_list:
  - model_name: qwen3.5:35b-a3b-bf16
    litellm_params:
      model: ollama/qwen3.5:35b-a3b-bf16
      api_base: http://172.24.193.66:11434 
  - model_name: qwen3-coder-next:q8_0
    litellm_params:
      model: ollama/qwen3-coder-next:q8_0
      api_base: http://172.24.193.67:11434 
  - model_name: nemotron-cascade-2
    litellm_params:
      model: ollama/nemotron-cascade-2
      api_base: http://172.24.193.68:11434

# 设置访问密钥
general_settings:
  master_key: sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

4、测试

curl -X POST http://localhost:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \ 
-d '{"model":"ollama/qwen3.5:35b-a3b-bf16","messages":[{"role":"user","content":"你好"}]}'

posted @ 2026-03-28 13:17  河在谈  阅读(109)  评论()    收藏  举报