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

jina-embedding-v4 环境搭建全过程

Requirements

The following Python packages are required:

  • transformers>=4.52.0
  • torch>=2.6.0
  • peft>=0.15.2
  • torchvision
  • pillow

下载pytorch 根据自己的cuda版本 注意这里下的pytorch是2.7.1版本

pip install --default-timeout=3000 torch torchvision torchaudio --index-url https://mirrors.nju.edu.cn/pytorch/whl/cu126

下载flash-attn  在v2.7.4中 按照 python版本 cuda版本 torch版本下载

https://github.com/kingbri1/flash-attention/releases

我选择的是flash_attn-2.7.4.post1+cu124torch2.6.0cxx11abiFALSE-cp310-cp310-win_amd64.whl

下载trion 按照python版本

https://hf-mirror.com/madbuda/triton-windows-builds/tree/main

以下是生成的requirement.txt 按需取用

accelerate==1.9.0
asttokens==3.0.0
attrs==25.3.0
backcall==0.2.0
beautifulsoup4==4.13.4
bleach==6.2.0
certifi==2025.7.14
charset-normalizer==3.4.2
colorama==0.4.6
decorator==5.2.1
defusedxml==0.7.1
docopt==0.6.2
einops==0.8.1
executing==2.2.0
fastjsonschema==2.21.1
filelock==3.18.0
flash_attn @ file:///C:/Users/zheng/Desktop/text2image4jina/flash_attn-2.7.4.post1%2Bcu124torch2.6.0cxx11abiFALSE-cp310-cp310-win_amd64.whl#sha256=b226ab9ef427bbce76bc81fb02aabf722b3fd65296359addbba151f218ad2312
fsspec==2025.7.0
huggingface-hub==0.33.4
idna==3.10
ipython==8.12.3
jedi==0.19.2
Jinja2==3.1.6
joblib==1.5.1
jsonschema==4.25.0
jsonschema-specifications==2025.4.1
jupyter_client==8.6.3
jupyter_core==5.8.1
jupyterlab_pygments==0.3.0
MarkupSafe==3.0.2
matplotlib-inline==0.1.7
mistune==3.1.3
mpmath==1.3.0
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
networkx==3.4.2
numpy==2.2.6
packaging==25.0
pandocfilters==1.5.1
parso==0.8.4
peft==0.16.0
pickleshare==0.7.5
pillow==11.0.0
pipreqs==0.5.0
platformdirs==4.3.8
prompt_toolkit==3.0.51
psutil==7.0.0
pure_eval==0.2.3
Pygments==2.19.2
python-dateutil==2.9.0.post0
pywin32==311
PyYAML==6.0.2
pyzmq==27.0.0
referencing==0.36.2
regex==2024.11.6
requests==2.32.4
rpds-py==0.26.0
safetensors==0.5.3
scikit-learn==1.7.1
scipy==1.15.3
sentence-transformers==5.0.0
six==1.17.0
soupsieve==2.7
stack-data==0.6.3
sympy==1.14.0
threadpoolctl==3.6.0
tinycss2==1.4.0
tokenizers==0.21.2
torch==2.7.1+cu126
torchaudio==2.7.1+cu126
torchvision==0.22.1+cu126
tornado==6.5.1
tqdm==4.67.1
traitlets==5.14.3
transformers==4.53.3
triton @ file:///C:/Users/zheng/Desktop/text2image4jina/triton-3.0.0-cp310-cp310-win_amd64.whl#sha256=5f0ec17adbcbbe60bd9cb67c17d40a6624d9f010c6bcdad989338a7a4c1b352d
typing_extensions==4.14.1
urllib3==2.5.0
wcwidth==0.2.13
webencodings==0.5.1
yarg==0.1.9

http://www.dtcms.com/a/296306.html

相关文章:

  • 2025年“创新杯”(原钉钉杯) B题 详细建模思路
  • 牛客网刷题进阶挑战VL25——VL49
  • 【Linux网络编程】传输层协议 - UDP
  • 【数据结构初阶】--二叉树(二)
  • M²IV:面向大型视觉-语言模型中高效且细粒度的多模态上下文学习
  • BI 系统数据看板全解析:让数据可视化驱动业务决策
  • ESP32使用 vscode IDF 创建项目到烧录运行全过程
  • C++学习笔记(八:函数与变量)
  • 云原生架构下的服务器运维挑战与解决方案
  • 【CVPR 2025】即插即用,MobileMamba三阶段架构+Wavelet增强,颠覆轻量模型格局!
  • Qt Quick 3D渲染
  • 云端哨兵的智慧觉醒:Deepoc具身智能如何重塑工业无人机的“火眼金睛”
  • 5种最佳方法将iPhone语音备忘录传输到Mac
  • 清除浮动以及原理
  • 移动管家手机控车便捷性如何
  • 秋招Day18 - MyBatis - 基础
  • tensorflow安装(CPU版本)
  • 爬虫算法原理解析
  • Python爬虫实战:研究picloud相关技术
  • WebRTC指纹——深度分析(中篇)
  • qlib的Alpha158类定义
  • RHCE(4)
  • CDH yarn 重启后RM两个备
  • 2025.7.24 01背包与动态规划复习总结
  • 【前端】jQuery加载JSON文件并赋值方法
  • 字节的机器人模型 GR-3
  • Hyperledger Caliper 一键测试环境部署脚本
  • LeetCode|Day24|383. 赎金信|Python刷题笔记
  • Android安全存储:加密文件与SharedPreferences最佳实践
  • C++右值引用与移动语义详解