[activations] Pytorch-1.11+ Tanh Gelu Approximation #15397 - GitHub

Skip to content Dismiss alert {{ message }} / transformers Public
  • Notifications You must be signed in to change notification settings
  • Fork 31.6k
  • Star 154k
  • Code
  • Issues 1.1k
  • Pull requests 1.1k
  • Actions
  • Projects 1
  • Security

    Uh oh!

    There was an error while loading. Please reload this page.

  • Insights
Additional navigation options [activations] pytorch-1.11+ Tanh Gelu Approximation  #15397New issueNew issueOpenOpen[activations] pytorch-1.11+ Tanh Gelu Approximation #15397LabelsPerformanceWIPLabel your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progress@stas00

Description

@stas00stas00opened on Jan 28, 2022🚀 Feature request

As kindly flagged by @vadimkantorov pt-1.11 will have a fast Tanh Gelu Approximation as implemented here pytorch/pytorch#61439 so we could replace our manual implementation with the fast one when pt>=1.11 is detected.

for additional context please see this thread: pytorch/pytorch#39853

Metadata

Metadata

Assignees

No one assigned

Labels

PerformanceWIPLabel your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You can’t perform that action at this time.

Từ khóa » F.tanh Pytorch