m1n1 VS ml-ane-transformers

Compare m1n1 vs ml-ane-transformers and see what are their differences.

m1n1

A bootloader and experimentation playground for Apple Silicon (by AsahiLinux)

ml-ane-transformers

Reference implementation of the Transformer architecture optimized for Apple Neural Engine (ANE) (by apple)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
m1n1 ml-ane-transformers
17 22
3,376 2,461
2.2% 0.9%
8.9 0.0
20 days ago about 1 year ago
Python Python
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

m1n1

Posts with mentions or reviews of m1n1. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-15.
  • Asahi Linux project's OpenGL support on Apple Silicon officially surpasses Apple
    2 projects | news.ycombinator.com | 15 Feb 2024
    One of the coolest things (IMO) about the entire Asahi effort, and why I'm not at all surprised that they surpassed Apple, was the dedicated effort to build bespoke developer-friendly Python tooling early in the reverse engineering process.

    https://asahilinux.org/2021/08/progress-report-august-2021/

    > Since the hypervisor is built on m1n1, it works together with Python code running on a separate host machine. Effectively, the Python host can “puppeteer” the M1 and its guest OS remotely. The hypervisor itself is partially written in Python! This allows us to have a very fast test cycle, and we can even update parts of the hypervisor itself live during guest execution, without a reboot.

    > We then started building a Python implementation of this RPC protocol and marshaling system. This implementation serves a triple purpose: it allows us to parse the DCP logs from the hypervisor to understand what macOS does, it allows us to build a prototype DCP driver entirely in Python, and it will in the future be used to automatically generate marshaling code for the Linux kernel DCP driver.

    Code here: https://github.com/AsahiLinux/m1n1/blob/main/proxyclient/m1n...

    If you watch any of Asahi Lina's streams from the time before they had working drivers, she's able to weave together complex bitflag-manipulating pipelines at the speed of thought with self-documenting code, all in Python running on the host machine, all while joking with viewers via her adorable avatar. I've never seen anything like it before. The whole workflow is a tremendous and unprecedented accomplishment by the entire Asahi team.

  • Strange (scheduling?) latency on the host when KVM guest runs something demanding
    2 projects | /r/AsahiLinux | 4 May 2023
    I wrote a m1n1 experiment to test IRQ delivery in EL1 and noticed something was weird. I already knew about that IRQ control register (3 masks IRQs entirely and is the default, that whole thing took like a day or two back when I first added M1 Pro/Max support), so I tried other values and 2 fixed it.
  • Apple Silicon - iBoot
    1 project | /r/osdev | 4 Apr 2023
    They have not dropped hardly any official documentation on iBoot. The best safe documentation is in: https://github.com/AsahiLinux/m1n1/ There's a lot of tainted docs out there because the source to iBoot was illegally leaked a while back, but marcan is known for being a bit of a hardass when it comes to legal reverse engineering (thankfully).
  • Everything we know about the Apple Neural Engine (ANE)
    9 projects | news.ycombinator.com | 25 Mar 2023
  • Dumb question - is it possible to install Windows on top of Asahi?
    1 project | /r/AsahiLinux | 1 Mar 2023
    No its uefi boot manager “https://github.com/AsahiLinux/m1n1 “
  • Updates galore! November 2022 Progress Report
    2 projects | news.ycombinator.com | 22 Nov 2022
    What makes you say there isn't community participation? The repo for m1n1, at least, has 42 contributors according to Github[1]. There's plenty more reporting bugs and such, and their IRC channel seems relatively active.

    1: https://github.com/AsahiLinux/m1n1

  • A Secret Apple Silicon (M1) Extension to Accommodate an Intel 8080 Artifact
    1 project | /r/mac | 18 Nov 2022
    I can confirm that’s pretty much exactly what happens. I did some digging with the help of m1n1 a while back, and essentially yeah, this is almost exactly what it does. The only difference is that, rather than tracking which cores are running emulated code, the scheduler keeps track of which processes are running in emulation mode, and prior to returning to userland after a context switch, the kernel sets control register bits for features like TSO (which is what I was interested in looking into at the time; I believe that specifically is controlled somewhere in the actlr_el1 register). Although only the P-cores actually implement the necessary x86 emulation behavior, the scheduler of course wants to ensure that a process is not pinned to any one core, and that native and emulated processes alike can preempt and interleave with each other on the P-cores just as they would if there were no emulation.
  • Asahi Lina (Linux Developer VTuber) wants to write the new Apple Silicon GPU driver for Linux in Rust!
    3 projects | /r/linux | 11 Aug 2022
    That shim/stub is m1n1. It is the bootloader for Asahi Linux, but also makes it possible to talk to the hardware over USB as just described by Lina. marcan even implemented a small hypervisor in m1n1, so it can be used to run MacOS and trace how MacOS is accessing the hardware.
  • questions about the new architecture
    1 project | /r/mac | 9 Aug 2022
    Windows 11 ARM dualboot will come to M1 macs in the near future. See m1n1 for progress.
  • First triangle ever rendered on an M1 Mac with a fully open-source driver
    1 project | news.ycombinator.com | 5 Jun 2022

ml-ane-transformers

Posts with mentions or reviews of ml-ane-transformers. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-07.
  • Apple is adding more and more neural engine cores to their products, is there any way to use them for local LLMs?
    2 projects | /r/LocalLLaMA | 7 Jun 2023
    Article: Deploying Transformers on the Apple Neural Engine Code: Apple Neural Engine (ANE) Transformers
  • What kind of hardware do you need to run LLaMA locally?
    3 projects | /r/LocalLLaMA | 23 May 2023
    Apple ML team released a paper and repo last year ( Ane_transformers )that shows how to optimize transformer architecture for ANE use prior to converting a PyTorch model to CoreML.
  • March 2023
    13 projects | /r/dailyainews | 23 May 2023
    Apple: Transformer architecture optimized for Apple Silicon (https://github.com/apple/ml-ane-transformers)
    20 projects | /r/dailyainews | 23 May 2023
    22-Mar-2023 Adobe unveils creative generative AI model, Firefly, to aid content creation Google has begun rolling out early access to its Bard chatbot in the US and UK Data Breach At ChatGPT? Users Report Seeing Unknown Conversations On Their Screens GPT-4 is available in preview in Azure OpenAI Service AI-powered coding assistance REPL that pairs GPT-4 (https://github.com/jiggy-ai/pair) Open source alternative to ChatGPT (https://github.com/nichtdax/awesome-totally-open-chatgpt) Run 100B+ language models at home, BitTorrent‑style (https://petals.ml/) Find the most relevant piece of code context. Hover and highlight blocks of code, the tool will point you to the most relevant pieces of information on git, messaging, and ticketing systems. Finally, it provide a summary with the power of GPT.(https://www.watermelontools.com/) Why AI Won't Replace Software Engineers (https://softwarecomplexity.com/why-ai-wont-replace-software-engineers) 23-Mar-2023 'The iPhone Moment of AI' Nvidia to Rent Out Supercomputers Behind ChatGPT to Businesses for $37,000 a Month Bill Gates calls AI revolutionary, says it can reduce some of the world’s worst inequities AI pics of Donald Trump's arrest by 'cop' Joe Biden go viral. Will we no longer be able to tell what’s real vs what’s fake?” - Eluna AI New research shows we can only accurately identify AI writers about 50% of the time. (https://hai.stanford.edu/news/was-written-human-or-ai-tsu) FauxPilot - an open-source GitHub Copilot server(https://github.com/fauxpilot/fauxpilot) Flower , an open-source framework for training AI on distributed data. We move the model to the data instead of moving the data to the model. (https://flower.dev/) OpenAI-Integrated Microsoft Bing Outperforms Google in Page Visits (https://www.gadgets360.com/internet/news/openai-integrated-microsoft-bing-outperforms-google-page-visits-growth-3885069) GitHub Copilot X: GitHub Copilot is evolving to bring chat and voice interfaces, support pull requests, answer questions on docs, and adopt OpenAI’s GPT-4 for a more personalized developer experience. (https://github.blog/2023-03-22-github-copilot-x-the-ai-powered-developer-experience/) Moonshine – open-source, pretrained ML models for satellite (https://github.com/moonshinelabs-ai/moonshine) Mozilla.ai: A startup — and a community — that will build a trustworthy and independent open-source AI ecosystem. Mozilla.ai’s initial focus? Tools that make generative AI safer and more transparent. And, people-centric recommendation systems that don’t misinform or undermine our well-being. (https://blog.mozilla.org/en/mozilla/introducing-mozilla-ai-investing-in-trustworthy-ai/) OpenAI’s policies hinder reproducible research on language models (https://aisnakeoil.substack.com/p/openais-policies-hinder-reproducible) 24-Mar-2023 Adobe has added AI features to Photoshop and Illustrator, while Nvidia has unveiled ‘Picasso’ AI image generation service. ChatGPT-owner OpenAI fixes 'significant issue' exposing user chat titles.A bug in an open-source library caused ChatGPT to leak user conversation titles. Graphic design platform Canva introduces new generative AI tools Gmail for Android, Google Messages to Soon Get Features for AI-Generated Texts Apple: Transformer architecture optimized for Apple Silicon (https://github.com/apple/ml-ane-transformers) ChatGPT plugins, join waitlist (https://openai.com/blog/chatgpt-plugins) Microsoft's paper on OpenAI's GPT-4 had hidden information (https://twitter.com/DV2559106965076/status/1638769434763608064) how to use LoRA to fine-tune LLaMA using Alpaca training data (https://replicate.com/blog/fine-tune-alpaca-with-lora) Helicone: one-line integration logs the prompts, completions, latencies, and costs of your OpenAI requests (https://github.com/Helicone/helicone) RWKV is an RNN with Transformer-level LLM performance, which can also be directly trained like a GPT transformer (parallelizable). (https://github.com/BlinkDL/RWKV-LM) open-source retrieval plugin The open-source retrieval plugin enables ChatGPT to access personal or organizational information sources (with permission). It allows users to obtain the most relevant document snippets from their data sources, such as files, notes, emails or public documentation, by asking questions or expressing needs in natural language. Security considerations The retrieval plugin allows ChatGPT to search a vector database of content, and add the best results into the ChatGPT session. This means it doesn’t have any external effects, and the main risk is data authorization and privacy. Developers should only add content into their retrieval plugin that they are authorized to use and can share in users’ ChatGPT sessions. https://github.com/openai/chatgpt-retrieval-plugin 27-Mar-2023 Autodoc: Toolkit for auto-generating codebase documentation using LLMs (https://github.com/context-labs/autodoc) March 20 ChatGPT outage: Here’s what happened (https://openai.com/blog/march-20-chatgpt-outage) Facebook is going after LLaMA repos with DMCA's (https://twitter.com/theshawwn/status/1638925249709240322) ChatGPT + Wolfram is INSANE! (https://old.reddit.com/r/ChatGPT/comments/1205omc/chatgpt\_wolfram\_is\_insane/) Reproducing the Stanford Alpaca results using low-rank adaptation (LoRA) (https://github.com/chris-alexiuk/alpaca-lora) GOAT, a decentralized way to publish and download AI models.Powered by BitTorrent and Bitcoin.(https://ipfs.io/ipfs/QmYyucgBQVfs9JXZ2MtmkGPAhgUjNgyGE6rcJT1KybQHhp/index.html) Dolly from databricks (https://www.databricks.com/blog/2023/03/24/hello-dolly-democratizing-magic-chatgpt-open-models.html) AI powered Developer Tools 2.0. https://www.sequoiacap.com/article/ai-powered-developer-tools/ Turn your designs into production-ready front-end code for mobile apps and the web (https://www.locofy.ai/) Using ChatGPT Plugins with LLaMA (https://blog.lastmileai.dev/using-openais-retrieval-plugin-with-llama-d2e0b6732f14) 28-Mar-2023 Bing AI now allows 20 prompts per session and can make images for you ChatGPT Outperforms Crowd-Workers for Text-Annotation Tasks (https://arxiv.org/abs/2303.15056) ChatGPT or Grammarly? Evaluating ChatGPT on Grammatical Error Correction Benchmark (https://arxiv.org/abs/2303.13648) AI-controlled Linux Containers (https://github.com/fafrd/aquarium) Microsoft reportedly orders AI chatbot rivals to stop using Bing’s search data (https://www.theverge.com/2023/3/25/23656336/microsoft-chatbot-rivals-stop-using-bing-search-index) 29-Mar-2023 Text2Video-Zero Code and Weights Released by Picsart AI Research (12G VRAM).(https://github.com/Picsart-AI-Research/Text2Video-Zero) Pause Giant AI Experiments: An Open Letter. Huggingface's SF Open-Source AI Meetup officially has 2000 people registered. Cerebras open sources seven GPT-3 models from 111 million to 13 billion parameters. Trained using the Chinchilla formula, these models set new benchmarks for accuracy and compute efficiency.(https://www.cerebras.net/blog/cerebras-gpt-a-family-of-open-compute-efficient-large-language-models/) Independent implementation of LLaMA that is fully open source under the Apache 2.0 license (https://github.com/Lightning-AI/lit-llama) Bootstrap knowledge of LLMs (https://gist.github.com/rain-1/eebd5e5eb2784feecf450324e3341c8d) OPENFLAMINGO: AN OPEN-SOURCE FRAMEWORK FOR TRAINING VISION-LANGUAGE MODELS WITH IN-CONTEXT LEARNING (https://laion.ai/blog/open-flamingo/) gpt4all: a chatbot trained on a massive collection of clean assistant data including code, stories and dialogue (https://github.com/nomic-ai/gpt4all) 30-Mar-2022 Microsoft Security Copilot is a new GPT-4 AI assistant for cybersecurity (https://www.theverge.com/2023/3/28/23659711/microsoft-security-copilot-gpt-4-ai-tool-features) UK details ‘pro-innovation’ approach to AI regulation (https://www.artificialintelligence-news.com/2023/03/29/uk-details-pro-innovation-approach-ai-regulation/) Employees Are Feeding Sensitive Biz Data to ChatGPT, Raising Security Fears (https://www.darkreading.com/risk/employees-feeding-sensitive-business-data-chatgpt-raising-security-fears) In the Age of AI, Don't Let Your Skills Atrophy (https://www.cyberdemon.org/2023/03/29/age-of-ai-skill-atrophy.html) Now ChatGPT is being (mis)used to do #PeerReview (https://mstdn.science/@ukrio/110100752908161183) Bing Chat now has Ads! (https://twitter.com/debarghya\_das/status/1640892791923572737) Cerebras-GPT vs LLaMA AI Model Comparison (https://www.lunasec.io/docs/blog/cerebras-gpt-vs-llama-ai-model-comparison/) Arthur C. Clarke about the future of AI. — 21 September 1964 (https://twitter.com/Rainmaker1973/status/1640016339011076097) ColossalChat: An Open-Source Solution for Cloning ChatGPT With a Complete RLHF Pipeline (https://medium.com/@yangyou\_berkeley/colossalchat-an-open-source-solution-for-cloning-chatgpt-with-a-complete-rlhf-pipeline-5edf08fb538b) Create and Embed Custom AI Assistants with Libraria (https://libraria.dev/) 31-Mar-2023 Deranged New AI Has No Guardrails Whatsoever, Proudly Praises Hitler (https://futurism.com/deranged-ai-no-guardrails) Midjourney Kills Free AI Image Generator Access After Explosion of Deep Fakes (https://decrypt.co/124972/midjourney-free-ai-image-generation-stopped-over-deepfakes) Judge asks ChatGPT to decide bail in murder trial (https://nypost.com/2023/03/29/judge-asks-chatgpt-for-decision-in-murder-trial/) Should you use OpenAI's embeddings? Probably not, and here's why. (https://iamnotarobot.substack.com/p/should-you-use-openais-embeddings) Visual Studio Code and GitHub Copilot (https://code.visualstudio.com/blogs/2023/03/30/vscode-copilot) Llama Hub (https://llamahub.ai/) Finetuning LLMs on a Single GPU Using Gradient Accumulation (https://lightning.ai/pages/blog/gradient-accumulation/) Open source ETL framework for retrieval augmented generation (RAG). Sync data from your SaaS tools to a vector store, where they can be easily queried by GPT apps (https://github.com/ai-sidekick/sidekick) HALTT4LLM - Hallucination Trivia Test for Large Language Models (https://github.com/manyoso/haltt4llm) Vicuna: An Open-Source Chatbot Impressing GPT-4 with 90%* ChatGPT Quality (https://vicuna.lmsys.org/) Iterate.ai Brings Generative AI Capabilities to Interplay, the Low-Code Platform Accelerating Customers’ Digital Innovation (https://www.indianweb2.com/2023/03/iterateai-brings-generative-ai.html) RFdiffusion is an open source method for structure generation, with or without conditional information (a motif, target etc). (https://github.com/RosettaCommons/RFdiffusion) Google denies training Bard on ChatGPT chats from ShareGPT
  • Web LLM – WebGPU Powered Inference of Large Language Models
    5 projects | news.ycombinator.com | 15 Apr 2023
    Have you seen this?

    https://github.com/apple/ml-ane-transformers

  • Does anyone want to split a dedicated server for inference?
    1 project | /r/LocalLLaMA | 8 Apr 2023
    I can't wait until people use it for AI and publicize this more, as well as the Neural Engine with its 16 cores and trillions of operations per second.
  • Is llama.cpp any good on ARM (e.g. Ampere Altra) or only on x86-64?
    2 projects | /r/LocalLLaMA | 2 Apr 2023
    I'm also looking into converting these models from PyTorch to CoreML format, and seeing how well they run when given access to the GPU and Neural Engine. There's even an optimized library Apple has specifically for this type of model.
  • FLaNK Stack Weekly 27 March 2023
    22 projects | dev.to | 27 Mar 2023
  • Everything we know about the Apple Neural Engine (ANE)
    9 projects | news.ycombinator.com | 25 Mar 2023
  • Transformer architecture optimized for Apple Silicon
    1 project | /r/programming | 24 Mar 2023

What are some alternatives?

When comparing m1n1 and ml-ane-transformers you can also consider the following projects:

HelloSilicon - An introduction to ARM64 assembly on Apple Silicon Macs

llama.cpp - LLM inference in C/C++

unix-history-repo - Continuous Unix commit history from 1970 until today

ml-stable-diffusion - Stable Diffusion with Core ML on Apple Silicon

pdp7-unix - A project to resurrect Unix on the PDP-7 from a scan of the original assembly code

haltt4llm - This project is an attempt to create a common metric to test LLM's for progress in eliminating hallucinations which is the most serious current problem in widespread adoption of LLM's for many real purposes.

freebsd-src - The FreeBSD src tree publish-only repository. Experimenting with 'simple' pull requests....

RWKV-LM - RWKV is an RNN with transformer-level LLM performance. It can be directly trained like a GPT (parallelizable). So it's combining the best of RNN and transformer - great performance, fast inference, saves VRAM, fast training, "infinite" ctx_len, and free sentence embedding.

rss-proxy - RSS-proxy allows you to do create an RSS or ATOM feed of almost any website, just by analyzing just the static HTML structure.

lit-llama - Implementation of the LLaMA language model based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Adapter fine-tuning, pre-training. Apache 2.0-licensed.

nixos-apple-silicon - Resources to install NixOS bare metal on Apple Silicon Macs

DeepSpeed - DeepSpeed is a deep learning optimization library that makes distributed training and inference easy, efficient, and effective.