Code Monkey home page Code Monkey logo

Comments (4)

zhangbo9674 avatar zhangbo9674 commented on August 27, 2024

您好,从这个issue 反馈的结果上看,relu2_output.npz 的结果一致,fc1_output.npz 存在 diff,这中间还经过了 pool2、flatten,可否再提供一下这两步的计算结果对比,以此确定是哪个算子的计算存在 diff

from paddle.

LouisChenB avatar LouisChenB commented on August 27, 2024

您好,从这个issue 反馈的结果上看,relu2_output.npz 的结果一致,fc1_output.npz 存在 diff,这中间还经过了 pool2、flatten,可否再提供一下这两步的计算结果对比,以此确定是哪个算子的计算存在 diff

已经更新
https://github.com/PhyllisJi/MoCoDiff_Bug/tree/paddle-issue%2364537

from paddle.

zhangbo9674 avatar zhangbo9674 commented on August 27, 2024

看日志,是fc1_output结果有 diff,这个就是一个简单的 linear,日志显示输入是 flatten 的输出,都是0,Linear bias 都是空的,理论上计算输出也应该是0吧?

from paddle.

PhyllisJi avatar PhyllisJi commented on August 27, 2024

看日志,是fc1_output结果有 diff,这个就是一个简单的 linear,日志显示输入是 flatten 的输出,都是0,Linear bias 都是空的,理论上计算输出也应该是0吧?

我们这里的数据给的是和完全一致的pytorch版本的代码的层输出的差异,如果是0,表示完全一致或者非常接近。现在的情况是在CUDA 11.6上面和pytorch的输出基本上完全一致,但是在CUDA 11.8上的运行结果和pytorch的结果有较大的差异,跳过pytorch,可以看出来直接对比两个CUDA版本上的输出,也是会有巨大差异的。

from paddle.

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.