周凯,个人博客

  • 前端
  • 嵌入式
  • 工具
  • 后端
  • 随笔
个人记录
  1. 首页
  2. AI
  3. ai部署
  4. 正文

gpt4all ubuntu部署

2024年 2月 3日 750点热度 0人点赞 0条评论

部署

  • 根据构建流程,先本地打包。gpt4all/gpt4all-bindings/python/README.md 在主 ·nomic-ai/gpt4all (github.com)

开发

  • 使用源代码自己构建包

    1. 克隆 GPT4All 并更改目录:
    git clone --recurse-submodules https://github.com/nomic-ai/gpt4all.git
    cd gpt4all/gpt4all-backend
    1. 构建后端。

    如果使用的是 Windows 并安装了 Visual Studio:

    cmake -B build
    cmake --build build --parallel --config RelWithDebInfo

    对于所有其他平台:

    cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
    cmake --build build --parallel

    RelWithDebInfo是一个很好的默认值,但您也可以根据情况使用 或。ReleaseDebug


    如果提示cmake版本过期

    • 去官网下载最新版本的cmake

    • Index of /files (cmake.org)

    • 执行.sh安装命令

      bash cmake-3.20.6-inux-x86_64.sh --skip-licence --prefix=/usr
      # 安装过程中遇到:
      # 第一个选择时,输入y!!!
      Do you accept the license? [yn]: 
      # 输入 y
      # 第二个选择时,输入n!!!
      By default the CMake will be installed in:
      "/usr/cmake-3.23.0-linux-x86_64"
      Do you want to include the subdirectory cmake-3.23.0-linux-x86_64?
      Saying no will install in: "/usr" [Yn]:
      # 输入 n
    • 查看cmake版本

      cmake --version
    1. 安装 Python 包:
    cd ../../gpt4all-bindings/python
    pip install -e .
    1. 根据文档编写相关代码:Generation - GPT4All Documentation
  • 文档:生成 - GPT4All 文档

子模块下载失败了:git submodule update --init --recursive

🎯 拓展阅读提示

本文涉及的内容已同步至公众号后台,我会在那里分享更多深度内容和实用技巧

→ 点击关注:一行梦境

公众号二维码
本作品采用 知识共享署名 4.0 国际许可协议 进行许可
标签: 暂无
最后更新:2024年 2月 3日

周凯

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2022-现在 周凯,个人博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

蒙ICP备18004897号