GithubHelp home page GithubHelp logo

Comments (11)

wykdg avatar wykdg commented on May 14, 2024

addition
python 3.6 with conda

from fastertransformer.

IrishCoffee avatar IrishCoffee commented on May 14, 2024

You are testing fp16 or fp32?

For fp16, if the diff number is something like 0.02, the answer is right.

from fastertransformer.

wykdg avatar wykdg commented on May 14, 2024

fp32,and the max diff is 3.
I compile the code without any modify.

and run the transformer_fp32.py,it returns cross check fail

from fastertransformer.

IrishCoffee avatar IrishCoffee commented on May 14, 2024

What commands do you use to run the transformer_fp32.py?

Did you specify the -DSM when compiling the code? Did you generate a new gemm_config.in?

from fastertransformer.

wykdg avatar wykdg commented on May 14, 2024

gemm_config.in was generate by gemmfp32
DSM i have try 60 61 70 75
I run the check with commond "transformer_fp32.py 2 2 2 2 2" .And some other parmamters, but all of them are wrong ,except 1 1 1 1 1 .

from fastertransformer.

IrishCoffee avatar IrishCoffee commented on May 14, 2024

Please try with some common configurations. For example, python transformer_fp32.py 1 12 128 12 64 to test the case batch size = 1, seq_len = 128, 12 layers with bert base.

from fastertransformer.

IrishCoffee avatar IrishCoffee commented on May 14, 2024

2 2 2 2 2 are meaningless parameters. Especially the settings of the head_num and size_per_head.

from fastertransformer.

wykdg avatar wykdg commented on May 14, 2024

here is the result of "python transformer_fp32.py 1 12 128 12 64 "
cross_check False
max diff 4.412327
min diff 6.79539e-06

maybe there is something wrong with abi ?

from fastertransformer.

IrishCoffee avatar IrishCoffee commented on May 14, 2024

What GPU do you use? What DSM values did you set?

What's the content of the gemm_config.in you generated?

from fastertransformer.

wykdg avatar wykdg commented on May 14, 2024

GPU is tesla M40,Driver Version: 418.67
DSM, i had try 60 61 70
gemm_config.in is
"13
13
13
6
2
"

from fastertransformer.

IrishCoffee avatar IrishCoffee commented on May 14, 2024

The compute capability of M40 is 52. You can have a try but I am not sure whether the code can be executed correctly on M40.

from fastertransformer.

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.