Code Monkey home page Code Monkey logo

Comments (7)

vladmandic avatar vladmandic commented on May 24, 2024

what does startup show on console for torch? and how did you install xformers? during which operation does this happen?

from automatic.

Saelfen avatar Saelfen commented on May 24, 2024

I had the error myself on the first installation, but it happened since I copied over the venv from the original A1111 fork. In my instance, it was fixed after wiping the venv and installing the requirements again.

from automatic.

rockiecxh avatar rockiecxh commented on May 24, 2024

Is it like the Mac M1 is not supported yet? I have the similar issue here.

memory_efficient_attention_forward

gradio call: NotImplementedError
╭────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────╮
│ /Users/rockie/Documents/git/automatic/modules/call_queue.py:59 in f │
│ │
│ 58 │ │ │ │ pr.enable() │
│ ❱ 59 │ │ │ res = list(func(*args, **kwargs)) │
│ 60 │ │ │ if shared.cmd_opts.profile: │
│ │
│ /Users/rockie/Documents/git/automatic/modules/call_queue.py:38 in f │
│ │
│ 37 │ │ │ try: │
│ ❱ 38 │ │ │ │ res = func(*args, **kwargs) │
│ 39 │ │ │ finally: │
│ │
│ ... 17 frames hidden ... │
│ │
│ /Users/rockie/Documents/git/automatic/venv/lib/python3.10/site-packages/xformers/ops/fmha/dispatch.py:95 in _dispatch_fw │
│ │
│ 94 │ │ priority_list_ops.insert(0, triton.FwOp) │
│ ❱ 95 │ return _run_priority_list( │
│ 96 │ │ "memory_efficient_attention_forward", priority_list_ops, inp │
│ │
│ /Users/rockie/Documents/git/automatic/venv/lib/python3.10/site-packages/xformers/ops/fmha/dispatch.py:70 in _run_priority_list │
│ │
│ 69 │ │ msg += "\n" + _format_not_supported_reasons(op, not_supported) │
│ ❱ 70 │ raise NotImplementedError(msg) │
│ 71 │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
NotImplementedError: No operator found for memory_efficient_attention_forward with inputs:
query : shape=(1, 7680, 1, 512) (torch.float32)
key : shape=(1, 7680, 1, 512) (torch.float32)
value : shape=(1, 7680, 1, 512) (torch.float32)
attn_bias : <class 'NoneType'>
p : 0.0
cutlassF is not supported because:
device=mps (supported: {'cuda'})
flshattF is not supported because:
device=mps (supported: {'cuda'})
dtype=torch.float32 (supported: {torch.float16, torch.bfloat16})
max(query.shape[-1] != value.shape[-1]) > 128
tritonflashattF is not supported because:
device=mps (supported: {'cuda'})
dtype=torch.float32 (supported: {torch.float16, torch.bfloat16})
max(query.shape[-1] != value.shape[-1]) > 128
triton is not available
smallkF is not supported because:
device=mps (supported: {'cuda', 'cpu'})
max(query.shape[-1] != value.shape[-1]) > 32
unsupported embed per head: 512

from automatic.

vladmandic avatar vladmandic commented on May 24, 2024

Original issue is with Cuda, don't hijack the thread with M1. Search issues/discussions first and open new issue if needed as it's not related to this.

from automatic.

rockiecxh avatar rockiecxh commented on May 24, 2024

I see, there is already an issue mentioned not supporting M1. What is the estimation of the timeframe to support M1? Thanks for your effort!

from automatic.

vladmandic avatar vladmandic commented on May 24, 2024

I'm fully willing to support the effort, but i don't have M1 system available - I'd love to have a contributor to suggest what's needed,

Same applies for AMD optimizations.

from automatic.

vladmandic avatar vladmandic commented on May 24, 2024

there is no update on original issue, so closing for now and can be reopened once update is provided.

from automatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.