Comments (1)
This is about running LLMs locally on Apple Silicone. Core ML is a framework that can redistribute workload across CPU, GPU & Nural Engine (ANE). ANE is available on all modern Apple Devices: iPhones & Macs (A14 or newer and M1 or newer). Ideally, we want to run LLMs on ANE only as it has optimizations for running ML tasks compared to GPU. Apple claims "deploying your Transformer models on Apple devices with an A14 or newer and M1 or newer chip to achieve up to 10 times faster and 14 times lower peak memory consumption compared to baseline implementations".
- To utilize Core ML first, you need to convert a model from TensorFlow, PyTorch to Core ML model package format using coremltools (or simply utilize existing models in Core ML package format ).
- Second, you must now use that converted package with an implementation designed for Apple Devices. Here is the Apple XCode reference PyTorch implementation.
https://machinelearning.apple.com/research/neural-engine-transformers
from llmfarm_core.swift.
Related Issues (18)
- Any chance that you would bring Metal support to llama.cpp? HOT 2
- lora adapter support HOT 4
- Will you be adding support for mistral-7b-instruct-v0.1.Q4_K_M.gguf?
- Crashes when loading llama-2-7b.q4_K_M.gguf HOT 2
- `unsafe build flags` error when including llmfarm_core HOT 2
- Hi I just wanted to know that have you converted the llama.cpp to swift by c++ wrapper ? I just wanted to know the process how can we use this c++ wrapper to covert a library into swift ? HOT 1
- Crashes when loading llama-2-7b-chat.Q4_K_M.gguf
- Crashes when loading llama-2-7b-chat.Q4_K_M.gguf , this is the error I am facing 32: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value . HOT 5
- Removing unsafe flags when debugging HOT 2
- The package product cannot be used as a dependency of this target because it uses unsafe build flags HOT 6
- Cannot find type 'ModelContextParams' in scope HOT 4
- Crashed when set metal true HOT 6
- Github CI error
- Reopen issue 12 HOT 1
- Xcode15.0 build error: The package product 'llmfarm_core' cannot be used as a dependency of this target because it uses unsafe build flags. HOT 1
- Add support for Gemma models HOT 1
- Nice project, but have question. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llmfarm_core.swift.