pdf-icon

StackFlow AI Platform

Module LLM Applications

CV Vision Application

Vision Language Model (VLM)

Large Language Model (LLM)

Voice Assistant

AI Pyramid Software Package Updates

1. Preparation

The factory image already includes the M5Stack APT repository. If you need to add it manually, refer to the following steps.

wget -qO /etc/apt/keyrings/StackFlow.gpg https://repo.llm.m5stack.com/m5stack-apt-repo/key/StackFlow.gpg
echo 'deb [arch=arm64 signed-by=/etc/apt/keyrings/StackFlow.gpg] https://repo.llm.m5stack.com/m5stack-apt-repo jammy ax650c' > /etc/apt/sources.list.d/StackFlow.list

2. Update Software Sources

Step 1: Update the Package List

Run apt update to update the package list:

apt update

3. Install Software Packages

Step 1: View Available Packages

Check the list of available llm deb packages. Packages named in the llm-model-name format are model packages, while those named llm-name are functional module packages.

apt list | grep llm-

Step 2: Install Required Packages

Install the required packages using the apt command as needed, for example, installing the llm-cosy-voice package. Note: Model packages occupy a relatively large amount of storage space. It is recommended to install them on demand.

apt install llm-cosy-voice

4. Package Description

lib-llm

  • Provides the runtime environment required for software operation.
apt install lib-llm

llm-sys

  • Provides the core services of StackFlow.
apt install llm-sys

5. Functional Module Overview

llm-audio

  • Provides unified sound card management services.
apt install llm-audio

llm-camera

  • Provides unified camera management services.
apt install llm-camera

llm-kws

  • Provides keyword spotting services.
apt install llm-kws

llm-asr

  • Provides speech-to-text services.
apt install llm-asr

llm-llm

  • Provides local large language model (LLM) services.
apt install llm-llm

llm-vlm

  • Provides local multimodal large model (VLM) services.
apt install llm-vlm

llm-melotts

  • Provides text-to-speech (TTS) services.
apt install llm-melotts

llm-cosy-voice

  • Provides voice cloning and text-to-speech services.
apt install llm-cosy-voice

llm-openai-api

  • Provides OpenAI-compatible API services for quick access to STT, TTS, and LLM/VLM capabilities.
apt install llm-openai-api
On This Page