xformers icon indicating copy to clipboard operation
xformers copied to clipboard

Hackable and optimized Transformers building blocks, supporting a composable construction.

Results 158 xformers issues
Sort by recently updated
recently updated
newest added

# ❓ Questions and Help I just found fused kernels in sequence parallel got poor performance in real model training. Here is a snapshot of nsys timeline of a ColumnParallelLinear...

# 🚀 Feature A MLP implementation that efficiently avoid computing for masked tokens. ## Motivation The motivation is that if padding is quite unequal too much MLP computation is wasted...

# 🚀 Feature When `seqlen` is not fixed, `triton.autotune` is triggered for every unseen value of `seqlen` for tiled matmul kernel and matmul kernel. It makes the training extremely slow...

# ❓ Questions and Help I try to use torch to reproduce the result of memory_efficient_attention by following [api docs](https://facebookresearch.github.io/xformers/components/ops.html).But didn't successful, It maybe cause from my negligence or bug?...

# ❓ Questions and Help Building **xformers** from source extremely slows down my computer ... freezing almost everything. How much memory does **xformers** need to be built from source?

# ❓ Questions and Help run https://github.com/facebookresearch/xformers/blob/main/xformers/benchmarks/benchmark_transformer.py but more slower. my env: pytorch 2.2.1,cuda 12.1.1 ![runtime](https://github.com/facebookresearch/xformers/assets/154602578/dc1a52ce-e8df-4fc0-804f-935370fc6537) ![runtime](https://github.com/facebookresearch/xformers/assets/154602578/21013712-a9da-4c4a-9cc4-1fcf0e075697) ![mem](https://github.com/facebookresearch/xformers/assets/154602578/9cc3c3d6-b192-45aa-bd7c-a1964fad2ba5)

Currently, importing `xformers.ops` will implicitly initializes CUDA context. This has an unpleasant effect that we cannot use the "fork" multi-processing method. The line of code that initializes CUDA context is...

# 🐛 Bug ## Command ## To Reproduce Steps to reproduce the behavior: 1. 2. 3. ## Expected behavior ## Environment Please copy and paste the output from the environment...

I'm really not used to using command prompt and I'm guessing this is an issue with torch but i even reinstalled it and im still getting this error. Any ideas?...

# 🐛 Bug I put up some screenshots that I think it is important: ![image](https://github.com/ROCm/xformers/assets/69568351/2d1f9e2a-ca41-43aa-9769-358deb4a3fdd) ![image](https://github.com/ROCm/xformers/assets/69568351/9d225ac4-cc26-44a7-bfb1-54cf92dbbaa7) ![image](https://github.com/ROCm/xformers/assets/69568351/dfee6de9-f514-4a86-844b-649698e4f719) ![image](https://github.com/ROCm/xformers/assets/69568351/ba35e3cf-4e32-4d58-9a6a-76e27618271b) ![image](https://github.com/ROCm/xformers/assets/69568351/1d02c94e-1d29-4436-95a8-519f531c1320) ![image](https://github.com/ROCm/xformers/assets/69568351/8b9691f7-c98c-4267-9a2e-99fa876693c6) ![image](https://github.com/ROCm/xformers/assets/69568351/eac734ca-c208-49ae-9980-932bd2dce177) And ![image](https://github.com/ROCm/xformers/assets/69568351/d31ca164-52f0-4de6-9f97-3d4815e72549) ![image](https://github.com/ROCm/xformers/assets/69568351/8fa2d4a9-b60a-4cf0-aa3a-ca9fd79d8b95) ![image](https://github.com/ROCm/xformers/assets/69568351/9eb1538e-9d75-414d-9976-d6003737ee1b) ![image](https://github.com/ROCm/xformers/assets/69568351/7b88ff37-aefb-41ca-a553-b35d5830965b) ![image](https://github.com/ROCm/xformers/assets/69568351/685c96c9-18ad-47aa-9f7f-9dae90ed9b09) ![image](https://github.com/ROCm/xformers/assets/69568351/323af33e-4e06-4ffa-9646-e7fdbdeb9908) ![image](https://github.com/ROCm/xformers/assets/69568351/5ecbcdb4-69fc-4015-b96c-e4f55df3cea0) ##...