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

lightseq cross entropy kernel is slower than original torch kernel. #204

Open
hyunwoongko opened this issue Oct 13, 2021 · 6 comments
Open

Comments

@hyunwoongko
Copy link

hyunwoongko commented Oct 13, 2021

CrossEntropyLoss:    0.0004372596740722656
LSCrossEntropyLayer: 0.0010995864868164062

Are there any benchmark results for this kernel?
As a result of my experiments, it seems to be slower than the original torch kernel.

@Taka152
Copy link
Contributor

Taka152 commented Oct 13, 2021

Have you tried our code for the speed test?

@hyunwoongko
Copy link
Author

nope. I just used time.time() module.
I was wondering if my experiment was wrong, so I wanted to check any benchmark result.

@Taka152
Copy link
Contributor

Taka152 commented Oct 13, 2021 via email

@hyunwoongko
Copy link
Author

Thank you for reply.
What does "retrieve the result at the end." means?

Thanks.

@Taka152
Copy link
Contributor

Taka152 commented Oct 14, 2021 via email

@hyunwoongko
Copy link
Author

So is there a simple way to benchmark the time spent on the GPU?

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

No branches or pull requests

2 participants