1. 26 10月, 2021 2 次提交
    • H
      cherry pick CrossEntropy's bug fix (#36647) · 32fe5a49
      HydrogenSulfate 提交于
      32fe5a49
    • L
      [cherry-pick-2.2] Fused attention op forward (#35905) (#36708) · d2be870a
      Li Min 提交于
      功能:本PR的目标是提高attention模块的计算性能。
      为了减少框架层对op的调度开销,本PR通过在C++层手动实现attention模块,对外提供attention 大op;
      为了减少防存开销,本PR采取了两种优化方法:
      (1)在q,k,v计算时通过共享输入X,将该处的gemm,transpose和bias add从三次调用减少为一次;
      (2)使用kernel融合优化技术,在不同cuda kernel之间通过寄存器传输数据;
      d2be870a
  2. 25 10月, 2021 1 次提交
  3. 30 9月, 2021 1 次提交
  4. 26 9月, 2021 1 次提交
  5. 17 9月, 2021 1 次提交
  6. 15 9月, 2021 4 次提交
  7. 14 9月, 2021 2 次提交
  8. 13 9月, 2021 2 次提交
  9. 09 9月, 2021 1 次提交
  10. 08 9月, 2021 1 次提交
  11. 07 9月, 2021 1 次提交
  12. 06 9月, 2021 2 次提交
    • D
      add kernel, stride check (#35106) · 13bbb6b6
      Double_V 提交于
      * add kernel, stride check
      
      * add unitest for param out of range
      
      * delete max limit check
      13bbb6b6
    • F
      replase pass with error exception (#35367) · 5675042d
      Feng Xing 提交于
      This PR adds error exception in fused transformer python interface.
      The function body are not implemented (will be implemented later).
      Following zhiqiu's comment in previous PR-35206 (merged already), it is better to raise an exception instead of using "pass".
      5675042d
  13. 31 8月, 2021 1 次提交
    • F
      transformer opt python files (#35206) · e2991555
      Feng Xing 提交于
      This PR adds fused transformer python related files. It defines interface of fused transformer.
      
      Fused transformer implements an optimized version of transformer layer (in python/paddle/nn/layer/transformer.py). In this PR, four layers (functions) are defined:
      (1) FusedMultiHeadAttention: multi-head attention layer
      (2) FusedFeedForward: feed forward layer
      (3) FusedTransformerEncoderLayer: transformer encoder layer
      (4) FusedTransformer: transformer layer
      e2991555
  14. 29 8月, 2021 1 次提交
  15. 27 8月, 2021 19 次提交