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

Fix: prevent noise model from moving to CPU #359

Closed
wants to merge 0 commits into from

Conversation

veegalinova
Copy link
Collaborator

Description

Fixes a bug where the noise model was unintentionally moved to the CPU before training, and thus did not train on GPU.

  • What: When _set_model_mode was called, the model was moved to the CPU by default, which caused training to happen on the CPU instead of the GPU.

Changes Made

  • Modified: Removed device handling from _set_model_mode, moved final move to CPU to the end of the fit function.

Please ensure your PR meets the following requirements:

  • Code builds and passes tests locally, including doctests
  • New tests have been added (for bug fixes/features)
  • Pre-commit passes
  • PR to the documentation exists (for bug fixes / features)

@veegalinova veegalinova force-pushed the vg/fix/noise-model-device branch from 1f2172d to 8f03c88 Compare January 17, 2025 13:59
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.

1 participant