Diamond Member Pelican Press 0 Posted April 1 Diamond Member Share Posted April 1 Apple Releases Open Source MLX Framework for Efficient Machine Learning on Apple Silicon Apple recently released MLX — or ML Explore — the company’s machine learning (ML) framework for Apple Silicon computers. The company’s latest framework is specifically designed to simplify the process of training and running ML models on computers that are powered by Apple’s M1, M2, and M3 series chips. The company says that MLX features a unified memory model. Apple has also demonstrated the use of the framework, which is open source, allowing machine learning enthusiasts to run the framework on their laptop or computer. According to This is the hidden content, please Sign In or Sign Up on code hosting platform GitHub, the MLX framework has a C++ API along with a Python API that is closely based on This is the hidden content, please Sign In or Sign Up , the Python library for scientific computing. Users can also take advantage of higher-level packages that enable them to build and run more complex models on their computer, according to Apple. MLX simplifies the process of training and running ML models on a computer — developers were previously forced to rely on a translator to convert and optimise their models (using This is the hidden content, please Sign In or Sign Up ). This has now been replaced by MLX, which allows users running Apple Silicon computers to train and run their models directly on their own devices. Apple shared this image of a big red sign with the text MLX, generated by Stable Diffusion in MLXPhoto Credit: GitHub/ Apple Apple says that the MLX’s design follows other popular frameworks used today, including This is the hidden content, please Sign In or Sign Up , This is the hidden content, please Sign In or Sign Up , NumPy, and This is the hidden content, please Sign In or Sign Up . The firm has touted its framework’s unified memory model — MLX arrays live in shared memory, while operations on them can be performed on any device types (currently, Apple supports the CPU and GPU) without the need to create copies of data. The company has also shared examples of MLX in action, performing tasks like This is the hidden content, please Sign In or Sign Up on Apple Silicon hardware. When generating a batch of images, Apple says that MLX is faster than PyTorch for batch sizes of 6,8,12, and 16 — with up to 40 percent higher throughput than the latter. The tests were conducted on a Mac powered by an M2 Ultra chip, the company’s fastest processor to date — MLX is capable of generating 16 images in 90 seconds, while PyTorch would take around 120 seconds to perform the same task, according to the company. The video is a Llama v1 7B model implemented in MLX and running on an M2 Ultra. More here: This is the hidden content, please Sign In or Sign Up * Train a Transformer LM or fine-tune with LoRA* Text generation with Mistral* Image generation with Stable Diffusion* Speech recognition with Whisper This is the hidden content, please Sign In or Sign Up — Awni Hannun (@awnihannun) This is the hidden content, please Sign In or Sign Up Other examples of MLX in action include generating text using Meta’s open source This is the hidden content, please Sign In or Sign Up , as well as the This is the hidden content, please Sign In or Sign Up . AI and ML researchers can also use OpenAI’s This is the hidden content, please Sign In or Sign Up to run the speech recognition models on their computer using MLX. The release of Apple’s MLX framework could help make ML research and development easier on the company’s hardware, eventually allowing developers to bring better tools that could be used for apps and services that offer on-device ML features running efficiently on a user’s computer. Affiliate links may be automatically generated – see our ethics statement for details. This is the hidden content, please Sign In or Sign Up apple silicon mlx framework open source efficient machine learning mlx,ml explore,apple,machine learning,ml,ai,artificial intelligence,stable diffusion,llama,mistral #Apple #Releases #Open #Source #MLX #Framework #Efficient #Machine #Learning #Apple #Silicon This is the hidden content, please Sign In or Sign Up Link to comment https://hopzone.eu/forums/topic/9389-apple-releases-open-source-mlx-framework-for-efficient-machine-learning-on-apple-silicon/ Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now