Claude/apple silicon install guide 5 d75 w#807
Open
Nene020911 wants to merge 5 commits intoalievk:masterfrom
Open
Claude/apple silicon install guide 5 d75 w#807Nene020911 wants to merge 5 commits intoalievk:masterfrom
Nene020911 wants to merge 5 commits intoalievk:masterfrom
Conversation
Adds a dedicated guide for installing and running Avatarify locally on Apple Silicon Macs using PyTorch's MPS backend, and links it from the main README. https://claude.ai/code/session_01ASCVThH6JsuiAoYE85WnmQ
Add a prominent warning in Step 1 about restarting the terminal after conda init, and add a dedicated troubleshooting entry for the "CondaError: Run 'conda init' before 'conda activate'" message. https://claude.ai/code/session_01ASCVThH6JsuiAoYE85WnmQ
The device detection in predictor_local.py only checked for CUDA and fell back to CPU, causing ~3 FPS on M-series chips. Now it detects MPS (Metal Performance Shaders) and uses the Apple GPU. Also removed the hard exit in cam_fomm.py that blocked local mode on macOS entirely. https://claude.ai/code/session_01ASCVThH6JsuiAoYE85WnmQ
torch.nn.functional.grid_sample produces corrupted output on MPS devices, causing the avatar output to display garbled/distorted images. Force CPU inference on Apple Silicon until MPS grid_sample support is reliable. https://claude.ai/code/session_01ASCVThH6JsuiAoYE85WnmQ
Instead of falling back entirely to CPU, monkey-patch grid_sample to move tensors to CPU only for that operation and return results to MPS. This keeps all other ops (convolutions, matmuls, etc.) on the GPU for better performance while avoiding the corrupted grid_sample output. https://claude.ai/code/session_01ASCVThH6JsuiAoYE85WnmQ
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.