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

Examples using MLX Swift

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

Has anyone else got this error: `Package.resolved file is corrupted or malformed; fix or delete the file to continue` Had to remove this file to get the project to build...

In the LLMEval project, the generation stops after reaching a limit on tokens. Is there a way to configure stopping when it finds a special token? I tried to look...

Thanks for the awesome work! I would request an OpenELM example. Or if we can tweak one of the existing examples for OpenELM, that would be great. Any guidance?

When trying to load Qwen1.5, the model downloads fully but doesn't appear to load in to memory on MacOS or iOS. After typing a prompt, the error output is "Failed:...

enhancement

[st.txt](https://github.com/ml-explore/mlx-swift-examples/files/14921908/st.txt) is the crash log. Model : Gemma 2B Quantized Prompt : "Write code to boot a raspberry pico"

I am running the phi-2 on iOS using the code from LLMEval. I have ported over an implementation of the CodeGen Tokenizer into swift as a standalone file: ```swift import...

I am currently working on implementing a model picker so selecting a new model does not require recompiling the app. I was trying to use https://github.com/ml-explore/mlx-swift-examples/blob/0af2efe8a04d11a7c01616e560a3bd67ac38f246/Libraries/LLM/Models.swift#L39 However, I am seeing...

I fine-tuned the model based on the [Qwen/Qwen1.5-0.5B-Chat](https://huggingface.co/Qwen/Qwen1.5-0.5B-Chat) model and then fused the models. The final output when reasoning with the mlx-lm model is as expected (a specific URL link)...

Steps to reproduce: 1. Move LLMTool.swift `@main` annotation from `SyncGenerator` to `AsyncGenerator`. 2. Run llm-tool target. Result: `Thread 4: EXC_BAD_ACCESS (code=2, address=0x16ff1bfe0)` Call stack: ``` #0 0x00000001050d4ac0 in mlx::core::eval(std::__1::vector const&)::$_3::operator()(mlx::core::array...

On my Mac, I see the error ```FAULT: determined it was necessary to configure to support remote view vibrancy CLIENT ERROR: TUINSRemoteViewController does not override -viewServiceDidTerminateWithError: and thus cannot react...