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

Using FP32 for DRQ network. #1433

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Using FP32 for DRQ network. #1433

wants to merge 1 commit into from

Conversation

kulinseth
Copy link
Contributor

Moving the temperature numpy log to FP32.

@xuzhao9
Copy link
Contributor

xuzhao9 commented Feb 24, 2023

I am wondering what is the motivation of this change?

If we are changing this, I hope we can update the upstream code at the same time: https://github.com/denisyarats/drq/blob/master/drq.py#L188

@kulinseth
Copy link
Contributor Author

I am wondering what is the motivation of this change?

If we are changing this, I hope we can update the upstream code at the same time: https://github.com/denisyarats/drq/blob/master/drq.py#L188

Hi @xuzhao9 , the motivation is that Metal doesn't support FP64. And as a result this benchmark fails on MPS device. From the change it seems like by default np.log returns FP64 , if it won't have any impact on the networks performance. It will be nice to just use FP32.

@xuzhao9
Copy link
Contributor

xuzhao9 commented Feb 25, 2023

@kulinseth Since we don't do any end-to-end accuracy checks in the core models set, we need to be very careful when modifying the model code.

Therefore, I believe we can only accept this PR if upstream model code repo uses FP32, otherwise we will keep it as-is.

cc @adnanaziz for ideas and suggestions.

@kulinseth
Copy link
Contributor Author

Hi @xuzhao9 , that makes sense. I will create an upstream PR to propose similar fix.

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

3 participants