SuperAPIAI Directory

MobiLlama

github.com · AI developer platforms

Small Language Model tailored for edge devices

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAndroid

About this tool

MobiLlama is a fully transparent, open-source small language model (SLM) designed for resource-constrained computing environments, emphasizing improved performance while reducing resource requirements. It was developed by the MBZUAI ORYX team, and the related paper has been accepted as a Spotlight paper at the ICLR 2025 SLLM Workshop.

Purpose: MobiLlama aims to address scenarios where traditional large language models (LLMs) are unsuitable, such as on-device processing, energy efficiency, low memory footprint, and response efficiency. These requirements are critical for privacy, security, and sustainable deployment.

Main capabilities: MobiLlama is a 0.5B-parameter language model using the LLaMA-7B architecture. It reduces pretraining and deployment costs by starting from a larger model and applying a parameter-sharing scheme. The model supports English and provides a chat version. In addition, there are 0.8B and 1.2B configurations (with 1.2B being the large-base model), which show superior performance on multiple benchmarks. For example, the 1.2B model, pretrained on 1.2T tokens, outperforms OLMo 1.17B and TinyLlama 1.1B, which were pretrained on 3T tokens.

Usage: Users can download the pretrained models (including intermediate checkpoints ckpt_100 to ckpt_358) and the chat version from Hugging Face. Training and evaluation scripts have been released in the GitHub repository. To train or fine-tune, first install PyTorch, then install from source. The repository provides a pretraining script (pretrain.sh), which can be used to train with 20 A100 80GB GPU nodes. For the large-base model, use main_largebase.py on line 11 of pretrain.sh. Evaluation used the Analysis-360 tool.

Applicable scenarios: MobiLlama is suitable for scenarios that need to run on edge devices and have requirements for privacy, security, energy efficiency, and low memory, such as mobile devices and embedded systems. It also provides an Android app APK that can be run directly on Android devices.

Limitations: The model is mainly targeted at English; training data, model details, and performance metrics are partially provided in the official materials, but specific usage limitations are not clearly stated. The model is fully open source under the Apache 2.0 license. The project is based on LLM-360 build.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools