Comments (4)
Thanks @JingyaHuang,
I've reached out to the relevant engineers. We'll get someone looking at this and update accordingly.
from aws-neuron-sdk.
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.
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.
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)
- Input tensor is not an XLA tensor: CPUFloatType while using crf.decode function HOT 4
- RuntimeError: Bad StatusOr access: INVALID_ARGUMENT: PJRT_Client_Create: error condition nullptr != (args)->client->Error(): Init: error condition !(num_devices > 0): HOT 3
- BERT model implemented usiing TransformerEncoder returns all NaNs when running it torch==1.13.1 HOT 3
- PDF print on the home page is empty when the left side is collapsed HOT 1
- Quite largely increased latency with weights/neff separated HOT 1
- Input tensors not being read torch neuronx 2.1.2 HOT 4
- Is there something wrong in torch_neuronx.trace ? HOT 3
- support for aten::upsample_nearest3d HOT 1
- Is it possible to compile a model when no NeuronCores are available? HOT 2
- ECS inf1 neuron hook script fails HOT 2
- Issue on page /frameworks/torch/torch-neuronx/programming-guide/training/pytorch-neuron-programming-guide.html
- Model doesn't support task text-classification for the neuron backend
- DataParallel Support on CRF inference HOT 1
- neuron-distributed for inference HOT 1
- AWS NeuronX sdk installation HOT 2
- Issue on page /general/appnotes/neuronx-cc/neuronx-cc-training-mixed-precision.html HOT 1
- Missing example in the doc for speculative decoding beta support HOT 1
- Links broken on page /libraries/neuronx-distributed/tutorials/finetuning_llama2_7b_ptl.html
- [Runtime API] Missing `nrt_get_dmabuf_fd` Function HOT 4
- Inf1 BERT deployment using 1.13.1-neuron-py310-sdk2.19.0-ubuntu20.04
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-neuron-sdk.