mlx-swift-examples icon indicating copy to clipboard operation
mlx-swift-examples copied to clipboard

Examples using MLX Swift

Results 128 mlx-swift-examples issues
Sort by recently updated
recently updated
newest added

See the relevant part of MLX LM: https://github.com/ml-explore/mlx-lm/blob/ba83487ed9ed78d60fa2a6e3dc5bd0d88d64fc33/mlx_lm/models/base.py#L45-L65 This might need an update to MLX Swift before we can use it, but it will help a lot with prompt processing...

Hello, I added a Swift port of the Deepseek V3 model based on https://github.com/ml-explore/mlx-lm/blob/main/mlx_lm/models/deepseek_v3.py to run `mlx-community/DeepSeek-R1-4bit`.

This is a first attempt at porting https://github.com/Blaizzy/mlx-vlm/tree/main/mlx_vlm/models/gemma3 to Swift. I've been able to resolve the majority of the errors, but there are a few remaining ones that I'm not...

Hi team, I’m currently using a Qwen2.5 model that was originally written in Python, which I’ve converted to run with MLX and integrated into a Swift app. I’d like to...

Is it possible to provide an example with MLX working with an MCP server that runs locally. There are several Swift implementations of MCP out there (seemingly lacking actual working...

I tested the [NAMO-R1 model](https://huggingface.co/lucasjin/Namo-500M-V1/tree/main), and the results are amazing! Now, I’m wondering what kind of performance boost and efficiency it could achieve with MLX on Apple Silicon. The model...

waiting for response

Sesame Labs open sourced a conversational speech model on [HuggingFace](https://huggingface.co/sesame/csm-1b). A developer has ported it to MLX: https://github.com/senstella/csm-mlx. It would be amazing to add it to the Swift examples so...

Right now when I start inference in foreground and then put the app to background, the app crashes with `libc++abi: terminating due to uncaught exception of type std::runtime_error: [METAL] Command...

deepSeek `` and `` do not match. ![Image](https://github.com/user-attachments/assets/1a76fb55-5bb9-4d5e-97e1-1e4fa9b5b278) ![Image](https://github.com/user-attachments/assets/4a8a010e-772e-4f46-a300-b508f8cd6df5)

Hello, thanks for your fantastic project to use llms with Swift. I am trying to load fintuned Qwen2.5-0.5B-instruct using mlx-libraries. Here are my codes which is referred to an example...