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

[移植] tgi 编译

这里写自定义目录标题

  • 报错

报错

Collecting numpy==1.26.4 (from -r requirements_cuda.txt (line 21))
  Downloading numpy-1.26.4.tar.gz (15.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 15.0 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install backend dependencies did not run successfully.
  │ exit code: 1
  ╰─> [63 lines of output]
      Collecting patchelf>=0.11.0
        Downloading patchelf-0.17.2.1.tar.gz (167 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Collecting ninja>=1.8.2
        Downloading ninja-1.11.1.1.tar.gz (132 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Building wheels for collected packages: patchelf, ninja
        Building wheel for patchelf (pyproject.toml): started
        Building wheel for patchelf (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Building wheel for patchelf (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [9 lines of output]
            Traceback (most recent call last):
              File "/tmp/pip-build-env-mtjgz_n7/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 639, in setup
                cmkr = cmaker.CMaker(cmake_executable)
              File "/tmp/pip-build-env-mtjgz_n7/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 145, in __init__
                self.cmake_version = get_cmake_version(self.cmake_executable)
              File "/tmp/pip-build-env-mtjgz_n7/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 102, in get_cmake_version
                raise SKBuildError(msg) from err
      
            Problem with the CMake installation, aborting build. CMake executable is cmake
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for patchelf
        Building wheel for ninja (pyproject.toml): started
        Building wheel for ninja (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Building wheel for ninja (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [13 lines of output]
            /tmp/pip-build-env-58pxmg2f/overlay/lib/python3.10/site-packages/setuptools_scm/git.py:312: UserWarning: git archive did not support describe output
              warnings.warn("git archive did not support describe output")
            /tmp/pip-build-env-58pxmg2f/overlay/lib/python3.10/site-packages/setuptools_scm/git.py:331: UserWarning: unprocessed git archival found (no export subst applied)
              warnings.warn("unprocessed git archival found (no export subst applied)")
            Traceback (most recent call last):
              File "/tmp/pip-build-env-58pxmg2f/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 639, in setup
                cmkr = cmaker.CMaker(cmake_executable)
              File "/tmp/pip-build-env-58pxmg2f/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 145, in __init__
                self.cmake_version = get_cmake_version(self.cmake_executable)
              File "/tmp/pip-build-env-58pxmg2f/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 102, in get_cmake_version
                raise SKBuildError(msg) from err
      
            Problem with the CMake installation, aborting build. CMake executable is cmake
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for ninja
      Failed to build patchelf ninja
      ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (patchelf, ninja)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install backend dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
make[1]: *** [Makefile:26: install-server] Error 1
make[1]: Leaving directory '/app/text-generation-inference/server'
make: *** [Makefile:2: install-server] Error 2
bash: text-generation-launcher: command not found

apt install patchelf ninja-build
apt install gfortran

  • apt cmake libopenblas-dev
  • sudo apt-get install libjpeg-dev
    sudo apt-get install patchelf ninja-build gfortran cmake libopenblas-dev libjpeg-dev

http://www.kler.cn/news/353528.html

相关文章:

  • element-ui的树形结构样式调整,添加线条和边框样式
  • Git中从dev分支恢复master分支
  • 爬虫逆向学习(十二):一个案例入门补环境
  • perl文件测试操作符及其意义
  • 线性代数知识学习
  • JAVA 中的 String 类
  • 【C++笔记】类和对象(上)
  • Java 小游戏《超级马里奥》
  • 【网页设计】CSS Part2
  • [Linux] Linux 模拟实现 Shell
  • 案例分析:Modbus设备如何通过MQTT网关连接阿里云IoT
  • 《数据结构》学习系列——树(中)
  • MySQL 的数据类型
  • [权威出版|稳定检索]2024年信息控制、电气与智慧交通国际会议(ICEIT 2024)
  • 【深入学习Redis丨第八篇】详解Redis数据持久化机制
  • 2025推荐选题|微信小程序实现经济新闻资讯
  • 双目标定的原理
  • bash之变量和参数
  • BWA 的基本介绍和主要算法
  • 【工欲善其事】巧用 PowerShell 自动清除复制 PDF 文本时夹杂的换行符号