Code Monkey home page Code Monkey logo

Comments (4)

harryjulian avatar harryjulian commented on July 22, 2024

I also tried Opt 1.3B following this tutorial, and I'm getting awful output.

[
    "</s>Hello, I am a  all I the,ly):,) A for\n in and) a,, A: and to: to to Ay,.\n on, To and in, A, ]\n.\n A\n,). A,,,*\n?..",
    "</s>When did the Queen die robot the�, by- A I in in, A of,\n. that to\n:,, is To to�, A is., is A A to A A A that A, A,:s,), the A: to to A\n can A,."
  ]

from transformers-neuronx.

jhaydter avatar jhaydter commented on July 22, 2024

Same as @harryjulian on inf2.8xlarge using Deep Learning Base Neuron Ubuntu 20.04 AMI 20230612 - ami-0b453554dc1a73411
['</s>The quick brown fox and and and a big.\n\n" \'cause of the the they may it took to the same same is being.\nThe the city.\n1,“\n4-10.\n"\n6__ _ _ _ _\nIn In Allowed\n\n-\n-</s>']

from transformers-neuronx.

aws-rhsoln avatar aws-rhsoln commented on July 22, 2024

We are able to reproduce it and are root-causing the issue. Will update the issue once we have the fix.

from transformers-neuronx.

jeffhataws avatar jeffhataws commented on July 22, 2024

With release 2.12, the OPT result now look normal:

(aws_neuron_venv_pytorch) ubuntu@ip-10-0-10-149:~$ python opt.py 
/home/ubuntu/aws_neuron_venv_pytorch/lib/python3.8/site-packages/transformers_neuronx/opt/model.py:37: UserWarning: torch_dtype=torch.float32 ignored in favor of amp=f32
  warnings.warn(f'torch_dtype={config.torch_dtype} ignored in favor of amp={amp}')
..
Compiler status PASS
..
Compiler status PASS
..
Compiler status PASS
..
Compiler status PASS
..
Compiler status PASS
["</s>The quick brown fox jumps over the lazy dog.   I just can't stop laughing at the image of a fox jumping over a lazy dog...\nI don't see what's funny about it.  It's just a fox jumping over a lazy dog.</s>"]

Another output of another run:

['</s>The quick brown fox jumps over the lazy dog.\nThe lazy dog jumps over the quick brown fox.  FTFY</s>']

Neuron packages used:

(aws_neuron_venv_pytorch) ubuntu@ip-10-0-10-149:~$ pip list | grep neuron
aws-neuronx-runtime-discovery 2.9
libneuronxla                  0.5.391
neuronx-cc                    2.8.0.25+a3ad0f342
neuronx-distributed           0.1.0
neuronx-hwm                   2.8.0.3+2b7c6da39
torch-neuronx                 1.13.1.1.9.0
torch-xla                     1.13.1+torchneuron8
transformers-neuronx          0.5.58

from transformers-neuronx.

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.