Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Squirrel's Rsqrt and refactoring Logisitic #669

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fionser
Copy link
Contributor

@fionser fionser commented Apr 26, 2024

Pull Request

What problem does this PR solve?

  • Change degree-4 polynomial to degree-3 polynomial for the 1/(1+exp(-x)) approximation.
    The degree-3 polynomial seems enough.

  • A customized Rsqrt to support a large input, i.e., rsqrt(x) for x > 2^fxp
    We need the Rsqrt to accept a very large value for XGBT. However the current SPU's implementation can
    work properly only when |x| < 2^fxp where the fxp is the fixed-point precision.

Issue Number: Fixed #

Possible side effects?

  • Performance:

  • Backward compatibility:

- Change degree-4 polynomial to degree-3 polynomial for the 1/(1+exp(-x)) approximation
- A customized Rsqrt to support a large input, i.e., rsqrt(x) for x > 2^fxp
@fionser fionser changed the title Lwj/better rsqrt Improve Squirrel's Rsqrt and refactoring Logisitic Apr 26, 2024
Copy link

Stale pull request message. Please comment to remove stale tag. Otherwise this pr will be closed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants