Skip to content

Conversation

quic-swatia
Copy link
Contributor

Passing device type in torch GradScaler(), in case of CUDA and CPU so that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic-swatia@quicinc.com>
@quic-swatia quic-swatia self-assigned this Apr 7, 2025
@quic-swatia quic-swatia requested a review from vbaddi April 7, 2025 10:21
@quic-swatia quic-swatia merged commit 4f5dbef into quic:main Apr 11, 2025
4 checks passed
quic-meetkuma added a commit to quic-meetkuma/efficient-transformers that referenced this pull request Apr 11, 2025
Passing device type in torch GradScaler(), in case of CUDA and CPU so
that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic_sallabad@quicinc.com>
Co-authored-by: Swati Allabadi <quic_sallabad@quicinc.com>
quic-dhirajku pushed a commit that referenced this pull request Apr 16, 2025
Passing device type in torch GradScaler(), in case of CUDA and CPU so
that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic_sallabad@quicinc.com>
Co-authored-by: Swati Allabadi <quic_sallabad@quicinc.com>
shubhagr-qc pushed a commit to shubhagr-qc/efficient-transformers that referenced this pull request Apr 21, 2025
Passing device type in torch GradScaler(), in case of CUDA and CPU so
that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic_sallabad@quicinc.com>
Co-authored-by: Swati Allabadi <quic_sallabad@quicinc.com>
quic-meetkuma pushed a commit to vbaddi/efficient-transformers that referenced this pull request Apr 21, 2025
Passing device type in torch GradScaler(), in case of CUDA and CPU so
that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic_sallabad@quicinc.com>
Co-authored-by: Swati Allabadi <quic_sallabad@quicinc.com>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
Passing device type in torch GradScaler(), in case of CUDA and CPU so
that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic_sallabad@quicinc.com>
Co-authored-by: Swati Allabadi <quic_sallabad@quicinc.com>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
Passing device type in torch GradScaler(), in case of CUDA and CPU so
that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic_sallabad@quicinc.com>
Co-authored-by: Swati Allabadi <quic_sallabad@quicinc.com>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
Passing device type in torch GradScaler(), in case of CUDA and CPU so
that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic_sallabad@quicinc.com>
Co-authored-by: Swati Allabadi <quic_sallabad@quicinc.com>
Signed-off-by: eplatero <quic_eplatero@quicinc.com>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
Passing device type in torch GradScaler(), in case of CUDA and CPU so
that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic_sallabad@quicinc.com>
Co-authored-by: Swati Allabadi <quic_sallabad@quicinc.com>
Signed-off-by: eplatero <quic_eplatero@quicinc.com>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
Passing device type in torch GradScaler(), in case of CUDA and CPU so
that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic_sallabad@quicinc.com>
Co-authored-by: Swati Allabadi <quic_sallabad@quicinc.com>
Signed-off-by: eplatero <quic_eplatero@quicinc.com>
eplatero97 pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
Passing device type in torch GradScaler(), in case of CUDA and CPU so
that it picks up the correct device in case of CPU.

Signed-off-by: Swati Allabadi <quic_sallabad@quicinc.com>
Co-authored-by: Swati Allabadi <quic_sallabad@quicinc.com>
Signed-off-by: eplatero <quic_eplatero@quicinc.com>
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

Successfully merging this pull request may close these issues.

2 participants