git 学术加速

有时候服务器不能直接访问 github,下载代码会很麻烦;安装库的时候,pip xx @git 就更难了

比如,这次我需要安装 unsloth,官方给出的脚本是:

pip install “unsloth[cu121-torch220] @ git+https://github.com/unslothai/unsloth.git”

unsloth repo 下载后,没有常见的 setup.py 文件,这要如何处理呢? 我没有找到合适的方法


看一些教程,发现 学术加速的方法:https://mirror.ghproxy.com

我可以在服务器上,这样下载 git:

git clone https://mirror.ghproxy.com/https://github.com/unslothai/unsloth.git


那么是否可以按这个模式 安装呢? 尝试了下,是可行的:

pip install “unsloth[cu121-torch211] @ git+https://mirror.ghproxy.com/https://github.com/unslothai/unsloth.git”


有时候会报下述错误,但再尝试一次就好了

error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.


2024-07-13(六)

相关推荐

  1. git 学术加速

    2024-07-14 07:02:03       25 阅读
  2. <span style='color:red;'>git</span><span style='color:red;'>学习</span>

    git学习

    2024-07-14 07:02:03      51 阅读
  3. <span style='color:red;'>Git</span><span style='color:red;'>学习</span>

    Git学习

    2024-07-14 07:02:03      47 阅读
  4. <span style='color:red;'>git</span><span style='color:red;'>学习</span>

    git学习

    2024-07-14 07:02:03      50 阅读
  5. 学习GIT

    2024-07-14 07:02:03       42 阅读
  6. <span style='color:red;'>Git</span><span style='color:red;'>学习</span>

    Git学习

    2024-07-14 07:02:03      37 阅读
  7. Git学习

    2024-07-14 07:02:03       31 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-14 07:02:03       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-14 07:02:03       72 阅读
  3. 在Django里面运行非项目文件

    2024-07-14 07:02:03       58 阅读
  4. Python语言-面向对象

    2024-07-14 07:02:03       69 阅读

热门阅读

  1. element-ui 表格固定头和固定列表格错位

    2024-07-14 07:02:03       18 阅读
  2. PlantUML 教程:绘制时序图

    2024-07-14 07:02:03       22 阅读
  3. 如何做到高级Kotlin强化实战?(三)

    2024-07-14 07:02:03       27 阅读
  4. GO语言中的接口(interface)

    2024-07-14 07:02:03       27 阅读
  5. QEMU源码全解析 —— CPU虚拟化(1)

    2024-07-14 07:02:03       26 阅读
  6. 木叶村村长的通讯录

    2024-07-14 07:02:03       24 阅读