LLiMa Framework
Product · Developer tool by SiMa.ai
Automated GenAI Compilation for Physical AI at the Edge
An automated compilation framework for deploying LLMs and VLMs on edge hardware. It enables developers to port Hugging Face models to the Modalix MLSoC for low-power, real-time physical AI applications.
- Languages
- English
Category: Developer Tools
- Integrations
- Hugging Face, ONNX, Palette SDK
- Deployment
- On-device edge deployment on Modalix MLSoC hardware
- Target Hardware
- SiMa Machine Learning Accelerator (MLA)
- Maximum Model Size Tested
- 7 Billion Parameters
- Power Consumption
- Less than 10W
- Input Model Formats
- Hugging Face, ONNX, safetensors
- Automated compilation of LLMs and VLMs from Hugging Face
- Optimized for Modalix MLSoC under 10W power envelope
- Segments transformer layers into optimized ONNX components
- Integrated into Palette SDK for seamless edge deployment
Overview
LLiMa is SiMa.ai's fully-automated framework designed for compiling Large Language Models (LLMs) and Vision Language Models (VLMs) for edge deployment. It is integrated into the Palette SDK and allows developers to transform models from Hugging Face into optimized code for the Modalix MLSoC. The framework solves the complexity of heterogeneous compute by automatically handling model configuration, ONNX file generation, and quantization. By segmenting transformer layers and parameterizing KV cache granularity, LLiMa enables real-time conversational AI to run on-device with low latency. It is specifically built for physical AI applications in industries such as robotics and automotive where cloud connectivity is not an option. The system ensures high performance while maintaining a power envelope of less than 10W.
Model Compilation Flow
- Automated GenAI Compilation: The framework automates the entire process of compiling Large Language Models and Vision Language Models from Hugging Face for the Modalix MLSoC.
- SiMa-Specific Configuration: LLiMa constructs a specific model configuration that accounts for Machine Learning Accelerator constraints, including metadata for the language model and vision encoder.
- ONNX Model Generation: The tool constructs multiple ONNX files for distinct components of the transformer layer, including pre-cache, accessor, and post-cache segments.
Edge Performance Features
- KV Cache Management: The framework parameterizes the granularity of the KV cache tensor and its accessor component to manage tensors that increase in size during processing.
- Static Scheduling Optimization: The compiler schedules operations with full knowledge of instruction execution and tensor shapes to ensure low latency and power consumption.
- Low-Power Execution: LLiMa supports real-time conversational AI experiences on-device within a power envelope of less than 10W.
Use cases
- Developers compile 7B parameter LLMs from Hugging Face to run conversational assistants on-device in vehicles.
- Robotics engineers use the framework to deploy Vision Language Models for real-time image scene analysis on drones.
- Industrial manufacturers implement reasoning-based video analytics on factory floors without relying on cloud latency.
Specifications
- Integrations
- Hugging Face, ONNX, Palette SDK
- Deployment
- On-device edge deployment on Modalix MLSoC hardware
- Target Hardware
- SiMa Machine Learning Accelerator (MLA)
- Maximum Model Size Tested
- 7 Billion Parameters
- Power Consumption
- Less than 10W
- Input Model Formats
- Hugging Face, ONNX, safetensors
- Output File Format
- .elf binary
- Software Integration
- Palette SDK
- Compilation Time (7B Model)
- Up to 15 hours (single process)
How it works
- Model Ingestion: Download an LLM or VLM from Hugging Face and build an internal model configuration containing model attributes.
- ONNX Generation: Construct multiple ONNX files implementing various components of the model, such as pre-cache and post-cache segments.
- Quantization and Compilation: Quantize and compile ONNX files into optimized.elf binary files for the Machine Learning Accelerator.
- Deployment and Orchestration: Deploy the pipeline orchestration program on the MLSoC to coordinate the execution of the compiled binary files.
FAQ
How long does it take to compile a 7B parameter model?
It can take up to 15 hours to compile a model with 7 billion parameters using a single process, though this time is reduced when using multiple processes.
What model sources are supported?
The framework supports models downloaded from the Hugging Face platform, including those in safetensors format and those using standard config.json files.
How does LLiMa handle transformer layers?
LLiMa segments transformer layers into pre-cache (QKV projection), accessor (self-attention), and post-cache (output projection and FFN) components.
Added by AntSpace from public sources (sima.ai).