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

OpenELM example?

Open MatthewWaller opened this issue 4 months ago • 1 comments

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?

MatthewWaller avatar Apr 24 '24 18:04 MatthewWaller

Have unsucessfully tried to run the swift LLM tool with this model: mlx-community/OpenELM-1_1B-Instruct-4bit

It's now working in MLX core with the Python code. The output is impressive for the very small model size, meaning it should offer great utility on older iOS devices with less RAM. However, it's not working in MLX-Swift. It has the same error as per the issue below. "Error: unhandledKeys(base: "Embedding", keys: ["biases", "scales"])". So it appears that something fundamental needs to be done to get this to work at all in iOS and Swift.

https://github.com/ml-explore/mlx-swift-examples/issues/53#issuecomment-2072250486

mobile-appz avatar Apr 25 '24 20:04 mobile-appz

https://github.com/ml-explore/mlx-swift-examples/pull/63

davidkoski avatar Apr 30 '24 15:04 davidkoski

Good to close when the other PR is accepted! Would love to figure out how to get the proper instruct prompt working, but I can open a different PR for that.

MatthewWaller avatar Apr 30 '24 15:04 MatthewWaller