基于 Ollama 部署大语言模型 已完结

课程类别: 大模型
播放量: 806次
发布时间: 2025-02-07
基于 Ollama 部署大语言模型

课程介绍

本课程专为零基础学员打造,从基础到进阶,全面覆盖核心知识点,学完即可掌握相关技能。
评论 (2)

8 + 5 =

  1. avatar
    孟老师请帮我看下这是啥问题呀04-10 17:08回复

    多轮对话.py::test FAILED [100%]请输入聊天内容:
    多轮对话.py:4 (test)
    def test():
    client = Client(host='http://127.0.0.1:11434')

    # 存储聊天历史
    messages = []
    options = { 'temperature': 1 }

    while True:
    > user_input = input('请输入聊天内容: ')

    多轮对话.py:13:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    self =
    size = -1

    def read(self, size: int = -1) -> str:
    > raise OSError(
    "pytest: reading from stdin while output is captured! Consider using `-s`."
    )
    E OSError: pytest: reading from stdin while output is captured! Consider using `-s`.

    venv\Lib\site-packages\_pytest\capture.py:227: OSError


    ============================== 1 failed in 3.11s ==============================

    Process finished with exit code 1

    • avatar
      老孟04-11 18:55回复

      加下我 QQ 27722290,发给我你的文件,我看下。