GithubHelp home page GithubHelp logo

Comments (4)

aws-taylor avatar aws-taylor commented on July 25, 2024

Thanks @JingyaHuang,

I've reached out to the relevant engineers. We'll get someone looking at this and update accordingly.

from aws-neuron-sdk.

aws-bhegedus avatar aws-bhegedus commented on July 25, 2024

Hi @JingyaHuang , I was able to reproduce the images on CPU fp32. I tested on a future release version of Neuron and the images match CPU. Could you provide which Neuron version you were using (specifically neuronx-cc version would be helpful), so I can also test that.

Also for your Neuron run, was that with bf16 or fp32? Its determined mainly by the types of the example input tensors and model weights at compile time.

from aws-neuron-sdk.

JingyaHuang avatar JingyaHuang commented on July 25, 2024

Hi @aws-bhegedus,

Here is the setup in which I met the image quality issue:

  • Neuron SDK
aws-neuronx-collectives/unknown,now 2.20.22.0-c101c322e amd64 [installed]
aws-neuronx-dkms/unknown,now 2.16.7.0 amd64 [installed]
aws-neuronx-runtime-lib/unknown,now 2.20.22.0-1b3ca6425 amd64 [installed]
aws-neuronx-tools/unknown,now 2.17.1.0 amd64 [installed]
  • pip
aws-neuronx-runtime-discovery 2.9
diffusers                     0.28.2
libneuronxla                  2.0.965
neuronx-cc                    2.13.66.0+6dfecc895
neuronx-distributed           0.7.0
optimum                       1.20.0
optimum-neuron                0.0.24.dev0
peft                          0.10.0
sentence-transformers         2.6.1
torch                         2.1.2
torch-neuronx                 2.1.2.2.1.0
torch-xla                     2.1.2
torchvision                   0.16.2
transformers                  4.41.1
transformers-neuronx          0.10.0.21

And a branch in optimum-neuron to reproduce the issue that we observed:
https://github.com/huggingface/optimum-neuron/tree/restore-optimized-attn-score-sd15

The input tensors are in float32 / int64 and weights are downcast to bf16 for matmul.

from aws-neuron-sdk.

JingyaHuang avatar JingyaHuang commented on July 25, 2024

Thanks, team, for helping us find out the root issue causing this. A fix will be put in place by this PR: huggingface/optimum-neuron#646.

Thanks again for the help!

from aws-neuron-sdk.

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.