mlx-swift-examples
mlx-swift-examples copied to clipboard
Examples using MLX Swift
I have a fine-tuned model. I am wondering whether mlx-swift-examples supports something like “Encrypting a Model in Your App”: https://developer.apple.com/documentation/coreml/encrypting-a-model-in-your-app Thank you! ☺️
This is a great model for analyzing images and would be ideal to add support. Currently it returns the unsupported model error.
I’m fine-tuning models with MLX QLoRA using the Python MLX APIs, and then integrating the resulting models into my apps via the Swift framework. For smaller models (e.g. Gemma3 270M),...
If I try to use gemma-3n model using swift-mlx-examples package I get following error: ``` Error: Unsupported model type: gemma3n ``` I installed the package and run the code with...
https://github.com/ml-explore/mlx-swift-examples/blob/42b0d21a607b97c3b99d1e20626b7d9b14827b81/Libraries/MLXLMCommon/ModelContainer.swift#L9 As comment above mentioned, now it is single thread access only, but in some cases, concurrency is really useful to speed up. Thanks for reply
I use MLX for the first time and I wanted to test MLXChatExample. Here are the steps I have done : 1. clone the swift example repo and install dependancies...
Add Gemma 3n
Edit: I can quantize the model using mlx-vlm, so I will be able to test this after we fix the sanitization.
Failed to parse config.json for model 'mlx-community/gemma-3n-E2B-it-text-4bit-dwq': Type mismatch at 'text_config.intermediate_size'
I'm trying to use `nomic_text_v1` and `nomic_text_v1_5`, and getting the same error when trying to download both: ``` UpdateError ▿ keyNotFound : 2 elements - base : "Linear" - key...