forked from unslothai/unsloth
-
Notifications
You must be signed in to change notification settings - Fork 0
enable studio for intel GPU #13
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
Closed
Closed
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9db527a
add intel GPU for unsloth studio
leizhenyuan f1c426b
clean stash
leizhenyuan dc55c95
remove unuse code
leizhenyuan 5487a1b
remove rl changes
leizhenyuan 72eced4
remove unuse code
leizhenyuan f679dca
remove unuse code
leizhenyuan 8dd4290
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 03e15c7
Fix xpu-smi metric parsing, dead code, and type inconsistency
danielhanchen 3f8dc0d
Add shutil.which guard before xpu-smi subprocess call
danielhanchen 568a1a4
Improve get_visible_gpu_count() ZE_AFFINITY_MASK handling
danielhanchen 9f9637e
Fix xpu-smi metrics, device resolution, and XPU OOM detection
danielhanchen 393a70d
Wire XPU through gpu-id pinning and visibility, restore CPU OOM detec…
danielhanchen 2cf6d02
Unblock XPU gpu_ids selection and harden OOM/autocast edge cases
danielhanchen 5fbcb0f
Enable multi-XPU sharding and auto-select, tighten XPU edge cases
danielhanchen 9ce735d
Align XPU wildcard mask with CUDA UUID path so multi-GPU sharding tri…
danielhanchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
model.deviceresolves to CPU (the exact fallback this change is trying to support), this now callstorch.amp.autocast("cpu", dtype=model.dtype). CPU autocast does not accept arbitrary dtypes (notably commonfloat32CPU models), so entering this context can raise immediately and abort audio generation beforemodel.generate()runs. This creates a regression for CPU-fallback DAC inference paths on non-CUDA setups; CPU should either skip autocast or use a CPU-supported autocast dtype explicitly.Useful? React with 👍 / 👎.