Apple GPU MLX example - #11
Open
chadbrewbaker wants to merge 1 commit into
Open
Conversation
Author
|
I would add a GitHub worker for macos-26-arm64 that can be ran manually - it should have an Apple GPU to test with. I'm not sure what GitHub workers have NVIDIA GPU available. Probably have to install UV or modify to pip. uv run examples/mlxtest.pyPut this in .github/workflows: name: Manual MLX Benchmark
# Triggered only manually via the GitHub Actions UI
on:
workflow_dispatch:
jobs:
benchmark:
# 'macos-15' is the latest Apple Silicon (M1) runner in the docs.
# It provides the arm64 architecture required for MLX.
runs-on: macos-15
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Run Benchmark
# 'uv run' detects the /// script block in your file
# and automatically installs mlx, torch, and numpy.
run: |
uv run examples/mlxtest.py |
Collaborator
|
@chadbrewbaker Thanks for your contribution! For now we don't have apple GPU so it is hard for us to test it. So merging this will take more time. |
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.
I made a single python file example of a port to Apple GPU with the MLX library. Please give me some feedback. It's been a while since I programmed centroidal Voronoi codes. In practice I use these for time series vectors that have been normalized to (0,1).
Please give me some feedback.