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

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.xdnf.cn/news/16267.html

相关文章:

  • 实验-OSPF
  • 智能Agent场景实战指南 Day 20:Agent多模态交互能力
  • Windows 系统中 CURL 命令使用指南及常见错误解析
  • ai存在意义的对话
  • Unity UI的未来之路:从UGUI到UI Toolkit的架构演进与特性剖析(3)
  • UFS 描述符、标志和属性(二)
  • Java进阶3:Java集合框架、ArrayList、LinkedList、HashSet、HashMap和他们的迭代器
  • 外企本土化布局对国内连接器企业影响几何?
  • IO密集型、CPU密集型、负载、负载均衡
  • 从零开发Java坦克大战:架构设计与难点突破 (上)
  • 使用Jmeter进行http接口性能测试
  • 车规级CANFD芯片在汽车车身控制方案中的应用解析
  • 【时时三省】(C语言基础)怎样定义和使用指向函数的指针变量
  • ubuntu的tar解压指令相关
  • 基于单片机智能交通灯设计
  • Mac电脑使用IDEA启动服务后,报service异常
  • AI总结视频以及谷歌浏览器插件安装步骤
  • 【硬件-笔试面试题】硬件/电子工程师,笔试面试题-20,(知识点:热阻的概念,散热)
  • 实时云渲染将UE像素流嵌入业务系统,实现二维管理系统与数字孪生三维可视化程序的无缝交互
  • 嵌入式学习-(李宏毅)机器学习(2)-day29
  • 图片查重从设计到实现(2)Milvus安装准备etcd介绍、应用场景及Docker安装配置
  • SkyWalking异步采集spring gateway日志
  • jax study notes[19]
  • 【C++】简单学——list类
  • uniapp写app做测试手机通知栏展示内容
  • 暑期算法训练.7
  • VR全景制作的流程?VR全景制作可以用在哪些领域?
  • 最短路算法
  • 美林数据用大模型重构电能质量评估,让隐蔽合规问题无所遁形
  • es 和 lucene 的区别