Skip to content

Commit

Permalink
add log for device
Browse files Browse the repository at this point in the history
  • Loading branch information
Satrat committed Nov 14, 2023
1 parent 68342bf commit 21b41d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sparseml/transformers/sparsification/obcq/obcq.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def one_shot(

# fallback to cpu if cuda not available
device = _fallback_to_cpu(device)
_LOGGER.info(f"Running one_shot on device {device}")

# Load the configuration from the model path
config = AutoConfig.from_pretrained(model_path)
Expand Down

0 comments on commit 21b41d3

Please sign in to comment.