[PR #81] Add MPS compatibility and dtype fixes #212

Open
opened 2026-10-26 21:14:09 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/Janus/pull/81
Author: @waijaetee
Created: 1/29/2025
Status: 🔄 Open

Base: main ← Head: mps-fixes


📝 Commits (1)

  • 0cbf6f1 Add MPS compatibility and dtype fixes

📊 Changes

3 files changed (+412 additions, -12 deletions)

View changed files

📝 README.md (+87 -5)
➕ demo/app_januspro_mps.py (+323 -0)
📝 janus/models/vq_model.py (+2 -7)

📄 Description

This PR introduces MPS compatibility for Janus-Pro-7B and dtype fixes to improve stability on Apple Silicon.

  • Added app_januspro_mps.py: optimized for Apple MPS, with automatic device selection
  • Fixed dtype mismatch issues in vq_model.py to ensure stability on MPS
  • Updated README.md to document MPS improvements and call for community testing
  • Contribution based on community testing and AI-assisted debugging

Important Notes:

  • This contribution is provided as-is, based on personal testing.
  • I am not a software engineer and will not be maintaining or iterating on this PR.
  • I defer to the project maintainers and community to evaluate, improve, or reject this as they see fit.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/Janus/pull/81 **Author:** [@waijaetee](https://github.com/waijaetee) **Created:** 1/29/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `mps-fixes` --- ### 📝 Commits (1) - [`0cbf6f1`](https://github.com/deepseek-ai/Janus/commit/0cbf6f146b3079ceb8ad7f8bee178db4a6ec3e55) Add MPS compatibility and dtype fixes ### 📊 Changes **3 files changed** (+412 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+87 -5) ➕ `demo/app_januspro_mps.py` (+323 -0) 📝 `janus/models/vq_model.py` (+2 -7) </details> ### 📄 Description This PR introduces MPS compatibility for Janus-Pro-7B and dtype fixes to improve stability on Apple Silicon. - Added app_januspro_mps.py: optimized for Apple MPS, with automatic device selection - Fixed dtype mismatch issues in vq_model.py to ensure stability on MPS - Updated README.md to document MPS improvements and call for community testing - Contribution based on community testing and AI-assisted debugging ### Important Notes: - This contribution is provided as-is, based on personal testing. - **I am not a software engineer and will not be maintaining or iterating on this PR**. - I defer to the **project maintainers and community** to evaluate, improve, or reject this as they see fit. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/Janus#212
No description provided.