百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
X

xformers

> 编程语言
开源

可装配并优化变形金刚石构件,支持可堆肥施工.

10.5K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

可装配并优化变形金刚石构件,支持可堆肥施工.

< br/> (韩语) < br/> (韩语)

□ xFormers - 加速变形器研究的工具箱

x 格式为 :

  • ** 可自定义的构件**: 独立/定制的构件,不用锅炉板码即可使用. 构件有域-不可知性,xFormers被研究者用于视觉,NLP等.
  • ** 研究第一**:xFormers包含出血后断层组件,PyTorch等主流库尚不具备.
  • 考虑到效率**: 由于迭代速度重要,组件尽可能快并具有内存效率. xFormers包含自己的CUDA内核,但相关时会发送到其他库.

□ 正在安装 xFormers

  • (建议d, linux & win) 安装有pip的最新稳定: 需要 [PyTorch 2.1.0. (ZZURL0Z)

(原始内容存档于2019-09-29) (英语). ```bash

[linux & win] cuda 12.6 version

pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu126

[linux & win] cuda 12.8 version

pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu128

[linux & win] cuda 13.0 version

pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu130

[linux only] (EXPERIMENTAL) rocm 7.1 version

pip3 install -U xformers --index-url https://download.pytorch.org/whl/rocm7.1

bash

* ** 发展二进制**:

ZZ1ZZ

* ** 从来源输入**: 如果您想用另一个版本的 PyTorch (包括夜间释放)

(原始内容存档于2019-09-29). ```bash
# (Optional) Makes the build much faster
pip install ninja
# Set TORCH_CUDA_ARCH_LIST if running and building on different GPU types
# NOTE: pytorch must already be installed!
pip install -v --no-build-isolation -U git+https://github.com/facebookresearch/xformers.git@main#egg=xformers
# (this can take dozens of minutes)

□ 基准

** 记忆效率高的MHA**

Setup:F16上的A100,前向+后向通过的总时间

请注意,这只是通过调用[`xfors.ops.memory-efficient atent'](https://facebookresearch.gith)来引起注意,而不是近似

Issues· 374 开放

查看全部 Issues在 GitHub 打开
  • #1343

    支持可微的软注意力掩码(浮点掩码在 [0,1] 中,而不是在对数空间中)

    更新于 2026年9月28日
  • #990

    对 BlockDiagonalMask 或 BlockDiagonalCausalMask 的自定义

    更新于 2026年9月28日
  • #934

    ValueError: 查询/键/值应该都具有相同的 dtype,

    更新于 2026年9月27日
  • #664

    无法更新到 PyTorch 1.13.1+cu117

    更新于 2026年9月11日
  • #1405

    Unsloth for Windows 用于微调。

    更新于 2026年8月14日
  • #1395

    Blackwell 支持

    更新于 2026年8月12日
  • #1399

    模块 'xformers.ops' 没有属性 'memory_efficient_attention'

    更新于 2026年6月23日
  • #1369

    添加条形长文字注意边界基准( 一个命令 + 公尺)

    更新于 2026年5月17日
  • #1342

    xFormers 50 系列显卡兼容性问题

    更新于 2026年4月25日
  • #1392

    来自 CUTLASS GQA 操作的 NaNs

    更新于 2026年4月7日

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月29日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言