Skip to content

Comments

Claude/apple silicon install guide 5 d75 w#807

Open
Nene020911 wants to merge 5 commits intoalievk:masterfrom
Nene020911:claude/apple-silicon-install-guide-5D75W
Open

Claude/apple silicon install guide 5 d75 w#807
Nene020911 wants to merge 5 commits intoalievk:masterfrom
Nene020911:claude/apple-silicon-install-guide-5D75W

Conversation

@Nene020911
Copy link

No description provided.

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
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