Tracking issue for Apple M-series GPU support
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- machine-learning
Hướng nghiên cứu
Không có tệp, bài kiểm thử hay điểm vào nào được nêu tên. Hãy bắt đầu bằng cách đọc các phần Thinc layers, PyTorch layers và spacy-transformers, sau đó xem GPU Support Troubleshooting FAQ và bài viết về benchmark được liên kết. Issue không xác định thay đổi tài liệu cụ thể hay điều kiện hoàn thành nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This issue documents the current state of support for Apple M-series (M1/M2) support in Thinc and spacy-transformers. Subscribe to this issue if you'd like to receive status updates on support for M-series GPUs.
Thinc layers
Apple M-series (M1/M2) GPUs are currently not used by Thinc models. The matrix multiplication (AMX) units of the M-series CPUs will be used when thinc-apple-ops is installed.
PyTorch layers
M-series GPUs are supported by the PyTorch wrapper in Thinc. Calling require_gpu or prefer_gpu changes the default PyTorch device to mps. As a result, Metal Performance Shaders will be used by PyTorch to run compute kernels on the GPU.
Keep in mind though that the Metal Performance Shader support is still fairly limited, especially so in PyTorch 1.12.x, as a consequence your models may not work correctly.
spacy-transformers
spacy-transformers 1.1.8 adds experimental support for M1 GPUs through Metal Performance Shaders. However, this support comes with some limitations:
- Only inference is supported.
- PyTorch 1.13.x is required. Even though PyTorch 1.12.x adds support for MPS, it is too incomplete to use with
spacy-transformers. - We have not tested MPS support on Intel Macs with Metal-capable GPUs.
We have tested the following models with MPS, PyTorch 1.13.0 and spacy-transformers 1.1.8. The models for which Requires fallback is ticked only work with the PYTORCH_ENABLE_MPS_FALLBACK=1 environment variable set.
| Model | Supported | Requires fallback |
|---|---|---|
| ca_core_news_trf | ✅ | ✅ |
| da_core_news_trf | ✅ | |
| de_dep_news_trf | ✅ | |
| en_core_web_trf | ✅ | ✅ |
| es_dep_news_trf | ✅ | |
| fr_dep_news_trf | ✅ | ✅ |
| ja_core_news_trf | ✅ | |
| uk_core_news_trf | ✅ | ✅ |
| zh_core_web_trf | ✅ |
You can find more information about using spacy-transformers with M-series GPUs in the GPU Support Troubleshooting FAQ.
Benchmarks
More background about the MPS support, including benchmarks, can be found in our blog post Fast transformer inference with Metal Performance Shaders.
- Ngôn ngữ chính
- Python
- Star
- 2.9k
- Fork
- 295
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của explosion/thinc
-
Package setuptools is required when using thincCó thể đã có người làm @arturict đã nhận 112 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Provide support for out of tree Pytorch backendsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
Thinc 9.1.1 failed to updateĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
pipenv install failed with spacy 3.8.2 and thinc 8.3.2.Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Documentation of Model.from_diskĐang mởdocs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
Tất cả issue của explosion/thinc
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Claiming namespace `thejakia1`Đang mởnamespace operations
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
EclipseFdn/open-vsx.org#15057 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
FinanceFlash/unvibecode#349 ·
-
Mission statement: why this is free, in the README, Why This Exists and the wiki HomeCó thể đã có người làm @ChiefGyk3D đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ChiefGyk3D/Clouds-Against-Humanity#348 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Perf] Default --vllm-watermark 0.05 for rollouts (hybrid models re-preempt under KV pressure)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
vllm-project/vime#508 ·
Maintainer thường phản hồi trong vòng 4 ngày