Search results for

“MLX”

76 results found

Post

Replies

Boosts

Views

Activity

Bring an LLM provider to the Foundation Models, missing MLX dependencies
On this talk: Bring an LLM provider to the Foundation Models framework URL: https://developer.apple.com/videos/play/wwdc2026/339/ on the coding examples a very peculiar framework is shown: import MLXFoundationModels However I am not able to find it nowhere, there is even a code section with this framework as part of an example. Where is this framework, there are no BETA branches on the MLX framework either. Thanks!
2
0
456
Jun ’26
Reply to Code Signing an app including a binary Metallib
I am faced with the same problem, however it cannot be solved with the solution suggested by Quinn... It's even more sad, because I am trying to use an Apple library, MLX, in my xcode project (MacOS app)... I am building the MLX library from source as described here: https://ml-explore.github.io/mlx/build/html/install.html After building the MLX library, the following artifacts are produced: libmlx.dylib mlx.metallib I then copy these into the xcode project for my MaxOS app, and configure the build phases as follows: libmlx.dylib - embed into Frameworks directory, and code sign on copy - this works fine mlx.metallib - according to the MLX requirements, this has to be located next to libmlx.dylib in the Frameworks directory, otherwise libmlx.dylib cannot find it - however, xcode doesn't let me deploy mlx.metallib into the Frameworks directory, because it doesn't sign it, and then signing the whole app fails (exactly like the original poster of this question) However
Topic: Graphics & Games SubTopic: General Tags:
Jul ’24
Building a 4-agent autonomous coding pipeline on Apple Silicon — MLX backend questions
Hi, I'm building ANF (Autonomous Native Forge) — a cloud-free, 4-agent autonomous software production pipeline running on local hardware with local LLM inference. No middleware, pure Node.js native. Currently running on NVIDIA Blackwell GB10 with vLLM + DeepSeek-R1-32B. Now porting to Apple Silicon. Three technical questions: How production-ready is mlx-lm's OpenAI-compatible API server for long context generation (32K tokens)? What's the recommended approach for KV Cache management with Unified Memory architecture — any specific flags or configurations for M4 Ultra? MLX vs GGUF (llama.cpp) for a multi-agent pipeline where 4 agents call the inference endpoint concurrently — which handles parallel requests better on Apple Silicon? GitHub: github.com/trgysvc/AutonomousNativeForge Any guidance appreciated.
0
0
927
Mar ’26
Reply to Compatibility issue of TensorFlow-metal with PyArrow
Hello, Please take a moment to create a bug report with the Feedback Assistant. Otherwise, have you considered MLX and whether it could meet your needs? MLX is an array framework optimized for the unified memory architecture of Apple silicon. The NumPy-like API makes it familiar to use and flexible. The higher level neural net and optimizer packages along with function transformations for automatic differentiation and graph optimization let you build more complex yet efficient machine learning models. MLX also has Swift, C++, and C bindings and can run on any Apple platform.
May ’25
Does Core AI / MLX already cover custom orchestration (queuing, batching, memory management, failover) or is that left to the developer?
I’m evaluating a third-party Swift-based “orchestration layer” for enterprise AI workloads on Apple Silicon — it claims to handle job queuing, scheduling, batching, memory management, monitoring, auditing, and failover on top of on-device inference. Given the Core AI framework’s device-specialization step and InferenceFunction pipeline (and MLX’s unified-memory model), how much of this kind of orchestration is already handled natively versus something a developer would still need to build themselves? Specifically: 1. Does Core AI’s inference pipeline provide any built-in job queuing/batching across multiple concurrent requests, or is that entirely app-side? 2. Is there native failover/monitoring tooling for on-device inference, or would a developer need to build that themselves (e.g., via os_log, MetricKit, custom retry logic)? 3. For memory management across CPU/GPU/ANE, does unified memory in MLX/Core AI eliminate most of the manual management a custom orchestration layer would otherwise n
0
0
238
1w
Where are Huggingface Models, downloaded by Swift MLX apps cached
I'm downloading a fine-tuned model from HuggingFace which is then cached on my Mac when the app first starts. However, I wanted to test adding a progress bar to show the download progress. To test this I need to delete the cached model. From what I've seen online this is cached at /Users/userName/.cache/huggingface/hub However, if I delete the files from here, using Terminal, the app still seems to be able to access the model. Is the model cached somewhere else? On my iPhone it seems deleting the app also deletes the cached model (app data) so that is useful.
0
0
600
Oct ’25
Reply to Data used for MLX fine-tuning
The process is explained here: https://github.com/ml-explore/mlx-examples/tree/main/lora#Custom-Data and examples of the json files are here: https://github.com/ml-explore/mlx-examples/tree/main/lora/data Note the specific format. Imagine how much work is required to create these files. Not an easy feat. But then that's why scaleAI exists - to put the global south (Venezuela and Chile for example) to work for $5 a day doing this work remotely. This is the dark underbelly of deep learning, along with the existential threat of global warming from its exponentially increasing energy requirement.
Topic: Machine Learning & AI SubTopic: General Tags:
Jul ’25
macOS SwiftUI app with external 4K camera & sensors for Hospital Avatar: ARKit, MLX, and Thermal feasibility?
We are developing a standalone AI avatar application for hospital reception kiosks using Mac mini (M2/M4). The app runs on SwiftUI + RealityKit, displays on a 75-inch monitor, and utilizes a USB-connected 4K camera and external sensors (LiDAR/mmWave). We have several technical concerns regarding the transition from iPadOS to macOS. Could you please provide insights on the following? ARKit/Vision Framework on macOS with External Camera On iPadOS, ARKit provides robust Face Tracking. On macOS with an external USB 4K camera: Can we achieve real-time face tracking (expression/gaze/depth) with Vision framework or ARKit comparable to iPadOS performance? Are there any specific limitations for accessing the Neural Engine via Vision framework for real-time 4K video analysis on macOS? Accessing External Hardware (LiDAR/Sensors) in Sandbox We plan to connect external LiDAR and mmWave sensors (e.g., Akara) via USB/Bluetooth. Is it feasible to communicate with these custom drivers/devices within the App Sandbox environmen
0
0
582
Jan ’26
Bring an LLM provider to the Foundation Models, missing MLX dependencies
On this talk: Bring an LLM provider to the Foundation Models framework URL: https://developer.apple.com/videos/play/wwdc2026/339/ on the coding examples a very peculiar framework is shown: import MLXFoundationModels However I am not able to find it nowhere, there is even a code section with this framework as part of an example. Where is this framework, there are no BETA branches on the MLX framework either. Thanks!
Replies
2
Boosts
0
Views
456
Activity
Jun ’26
Reply to Code Signing an app including a binary Metallib
I am faced with the same problem, however it cannot be solved with the solution suggested by Quinn... It's even more sad, because I am trying to use an Apple library, MLX, in my xcode project (MacOS app)... I am building the MLX library from source as described here: https://ml-explore.github.io/mlx/build/html/install.html After building the MLX library, the following artifacts are produced: libmlx.dylib mlx.metallib I then copy these into the xcode project for my MaxOS app, and configure the build phases as follows: libmlx.dylib - embed into Frameworks directory, and code sign on copy - this works fine mlx.metallib - according to the MLX requirements, this has to be located next to libmlx.dylib in the Frameworks directory, otherwise libmlx.dylib cannot find it - however, xcode doesn't let me deploy mlx.metallib into the Frameworks directory, because it doesn't sign it, and then signing the whole app fails (exactly like the original poster of this question) However
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Building a 4-agent autonomous coding pipeline on Apple Silicon — MLX backend questions
Hi, I'm building ANF (Autonomous Native Forge) — a cloud-free, 4-agent autonomous software production pipeline running on local hardware with local LLM inference. No middleware, pure Node.js native. Currently running on NVIDIA Blackwell GB10 with vLLM + DeepSeek-R1-32B. Now porting to Apple Silicon. Three technical questions: How production-ready is mlx-lm's OpenAI-compatible API server for long context generation (32K tokens)? What's the recommended approach for KV Cache management with Unified Memory architecture — any specific flags or configurations for M4 Ultra? MLX vs GGUF (llama.cpp) for a multi-agent pipeline where 4 agents call the inference endpoint concurrently — which handles parallel requests better on Apple Silicon? GitHub: github.com/trgysvc/AutonomousNativeForge Any guidance appreciated.
Replies
0
Boosts
0
Views
927
Activity
Mar ’26
Reply to Will Apple Intelligence Support Third-Party LLMs or Custom AI Agent Integrations?
Thank you for accepting the answer. It occurred to me afterwards that you could also benefit from taking a look at MLX which supports some of what you seek.
Replies
Boosts
Views
Activity
May ’25
Reply to Compatibility issue of TensorFlow-metal with PyArrow
Hello, Please take a moment to create a bug report with the Feedback Assistant. Otherwise, have you considered MLX and whether it could meet your needs? MLX is an array framework optimized for the unified memory architecture of Apple silicon. The NumPy-like API makes it familiar to use and flexible. The higher level neural net and optimizer packages along with function transformations for automatic differentiation and graph optimization let you build more complex yet efficient machine learning models. MLX also has Swift, C++, and C bindings and can run on any Apple platform.
Replies
Boosts
Views
Activity
May ’25
Reply to Is anyone working on jax-metal?
I'm also interested. JAX can also be used for other purposes that MLX cannot. Currently for robotics simulation MuJoCo MJX uses JAX. Unfortunately jax-metal is still broken for that to be run MacOS.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to Selecting GPU for TensorFlow-Metal on Mac Pro (2013) with v0.8.0
Since MLX is not supported on Mac Intel and AMD GPU, Multi-GPU support for Tensorflow-Metal is crucial.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to After loading my custom model - unsupportedTokenizer error
Same code with MLX libraries 2.25.8 but new model I get the same error. Might need to revisit the new model
Replies
Boosts
Views
Activity
Mar ’26
Does Core AI / MLX already cover custom orchestration (queuing, batching, memory management, failover) or is that left to the developer?
I’m evaluating a third-party Swift-based “orchestration layer” for enterprise AI workloads on Apple Silicon — it claims to handle job queuing, scheduling, batching, memory management, monitoring, auditing, and failover on top of on-device inference. Given the Core AI framework’s device-specialization step and InferenceFunction pipeline (and MLX’s unified-memory model), how much of this kind of orchestration is already handled natively versus something a developer would still need to build themselves? Specifically: 1. Does Core AI’s inference pipeline provide any built-in job queuing/batching across multiple concurrent requests, or is that entirely app-side? 2. Is there native failover/monitoring tooling for on-device inference, or would a developer need to build that themselves (e.g., via os_log, MetricKit, custom retry logic)? 3. For memory management across CPU/GPU/ANE, does unified memory in MLX/Core AI eliminate most of the manual management a custom orchestration layer would otherwise n
Replies
0
Boosts
0
Views
238
Activity
1w
Reply to Is there an easy way to convert a MLX format model to Core ML
You don't need to convert it to CoreML. See an example here https://github.com/ml-explore/mlx-swift-examples/tree/main/Applications/LLMEval
Replies
Boosts
Views
Activity
Jun ’24
MLX C++ API for neural networks
It seems to be that Swift has more APIs implemented than the C++ interface (especially APIs found in the MLXNN and MLXOptimize folders). Is there any intention to implement more APIs for neural networks and training them in the future?
Replies
0
Boosts
0
Views
731
Activity
Dec ’25
Where are Huggingface Models, downloaded by Swift MLX apps cached
I'm downloading a fine-tuned model from HuggingFace which is then cached on my Mac when the app first starts. However, I wanted to test adding a progress bar to show the download progress. To test this I need to delete the cached model. From what I've seen online this is cached at /Users/userName/.cache/huggingface/hub However, if I delete the files from here, using Terminal, the app still seems to be able to access the model. Is the model cached somewhere else? On my iPhone it seems deleting the app also deletes the cached model (app data) so that is useful.
Replies
0
Boosts
0
Views
600
Activity
Oct ’25
Reply to Data used for MLX fine-tuning
The process is explained here: https://github.com/ml-explore/mlx-examples/tree/main/lora#Custom-Data and examples of the json files are here: https://github.com/ml-explore/mlx-examples/tree/main/lora/data Note the specific format. Imagine how much work is required to create these files. Not an easy feat. But then that's why scaleAI exists - to put the global south (Venezuela and Chile for example) to work for $5 a day doing this work remotely. This is the dark underbelly of deep learning, along with the existential threat of global warming from its exponentially increasing energy requirement.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to Float64 (Double Precision) Support on MPS with PyTorch on Apple Silicon?
Hello, Please send us an enhancement request for float64 support in the MPS framework. Take a look at the MLX framework as well. It looks like there is a request for float64 support there and some explanation of what's required.
Replies
Boosts
Views
Activity
Sep ’25
macOS SwiftUI app with external 4K camera & sensors for Hospital Avatar: ARKit, MLX, and Thermal feasibility?
We are developing a standalone AI avatar application for hospital reception kiosks using Mac mini (M2/M4). The app runs on SwiftUI + RealityKit, displays on a 75-inch monitor, and utilizes a USB-connected 4K camera and external sensors (LiDAR/mmWave). We have several technical concerns regarding the transition from iPadOS to macOS. Could you please provide insights on the following? ARKit/Vision Framework on macOS with External Camera On iPadOS, ARKit provides robust Face Tracking. On macOS with an external USB 4K camera: Can we achieve real-time face tracking (expression/gaze/depth) with Vision framework or ARKit comparable to iPadOS performance? Are there any specific limitations for accessing the Neural Engine via Vision framework for real-time 4K video analysis on macOS? Accessing External Hardware (LiDAR/Sensors) in Sandbox We plan to connect external LiDAR and mmWave sensors (e.g., Akara) via USB/Bluetooth. Is it feasible to communicate with these custom drivers/devices within the App Sandbox environmen
Replies
0
Boosts
0
Views
582
Activity
Jan ’26