GitHub - Liquid4All/cookbook: Examples, end-2-end tutorials and apps built using Liquid AI Foundational Models (LFM) and the LEAP SDK

Reddit r/LocalLLaMA Tools

Summary

A cookbook repository by Liquid4All with examples, end-to-end tutorials, and applications for building with Liquid AI's open-weight LFMs and the LEAP SDK on laptops, mobile, and edge devices.

No content available
Original Article
View Cached Full Text

Cached at: 08/12/26, 06:28 PM

Liquid4All/cookbook

Source: https://github.com/Liquid4All/cookbook

Liquid AI
Join Discord

Examples, tutorials, and applications to help you build with our open-weight LFMs and the LEAP SDK on laptops, mobile, and edge devices.

Contents

🖥️ Desktop Apps

Python and CLI applications for running LFM models on your laptop or desktop machine.

NameDescriptionLink
Invoice ParserExtract structured data from invoice images using LFM2-VL-3BCode
Audio Transcription CLIReal-time audio-to-text transcription using LFM2-Audio-1.5B with llama.cppCode
Flight Search AssistantFind and book plane tickets using LFM2.5-1.2B-Thinking with tool callingCode
Audio Car CockpitVoice-controlled car cockpit demo combining LFM2.5-Audio-1.5B with LFM2-1.2B-ToolCode
LocalCoworkOn-device AI agent for file ops, security scanning, OCR, and more, powered by LFM2-24B-A2BCode
Home AssistantLocal home assistant with tool calling, benchmarking, and fine-tuning pipeline using LFM2-350M and LFM2.5-1.2BCode
Voice Assistant for MacOn-device voice assistant for Apple Silicon Macs using LFM2.5-Audio-1.5B and the LEAP SDKCode
Vision Assistant for MacOn-device visual language model chat for Apple Silicon Macs using the LEAP SDKCode

🌐 Browser Apps

Zero-install applications running LFM models directly in the browser via WebGPU and ONNX Runtime Web.

NameDescriptionLink
Tool CallingRun LFM2 entirely in your browser with WebGPU for in-browser tool callingCode | Demo
Voice AssistantRun LFM2.5-Audio-1.5B entirely in your browser for speech recognition, TTS, and conversationCode | Demo
Live Video CaptioningReal-time video captioning with LFM2.5-VL-1.6B running in-browser using WebGPUCode | Demo
Chain-of-Thought ReasoningRun LFM2.5-1.2B-Thinking entirely in your browser with WebGPU for on-device chain-of-thought reasoningCode | Demo
Hand & Voice RacerBrowser driving game controlled by hand gestures (MediaPipe) and voice commands (LFM2.5-Audio-1.5B), running fully localCode
LEAP Voice AssistantOn-device voice assistant running in the browser via WebAssembly using the LEAP SDKCode

📱 Mobile Apps

Native examples for deploying LFM2 models on iOS and Android using the LEAP Edge SDK. Written for Android (Kotlin) and iOS (Swift), the goal of the Edge SDK is to make Small Language Model deployment as easy as calling a cloud LLM API endpoint.

Android

NameDescriptionLink
LeapChatChat app with real-time streaming, persistent history, and modern UICode
Voice AssistantAudio input and output with LFM2.5-Audio-1.5B for on-device AI inferenceCode
LeapKoogAgentIntegration with Koog framework for AI agent functionalityCode
SloganAppSingle turn marketing slogan generation with Android ViewsCode
ShareAIWebsite summary generatorCode
Recipe GeneratorStructured output generation with the LEAP SDKCode
VLM ExampleVisual Language Model integrationCode

iOS

NameDescriptionLink
LeapChatChat app with real-time streaming, conversation management, and SwiftUICode
LeapSloganExampleBasic LeapSDK integration for text generation in SwiftUICode
Recipe GeneratorStructured output generationCode
Voice AssistantAudio input and output with LFM2.5-Audio-1.5B for on-device AI inferenceCode
Vision AssistantVisual language model chat on iOS using the LEAP SDKCode
Telco TriageEdge-first home internet support assistant with on-device LFM routing, local tools, and cloud-assist handoffCode

🎯 Fine-Tuning Examples

We recommend fine-tuning LFM2.5 for your specific use case to achieve the best results. Below you’ll find Colab notebooks and Python scripts for customizing LFM models with your own data.

NameFrameworkDescriptionLink
Text Models
Continued Pre-Training (CPT) for text completionUnsloth (Docs)Teach models domain-specific knowledge and creative writing stylesNotebook Open In Colab
Continued Pre-Training (CPT) for translationUnsloth (Docs)Adapt models to specific languages or translation domains using domain dataNotebook Open In Colab
Supervised Fine-Tuning (SFT)Unsloth (Docs)Memory-efficient SFT using Unsloth with LoRA for 2x faster trainingNotebook Open In Colab
Supervised Fine-Tuning (SFT)TRL (Docs)Supervised fine-tuning using Hugging Face TRL library with parameter-efficient LoRANotebook Open In Colab
Direct Preference Optimization (DPO)TRL (Docs)Align models with human preferences using direct preference optimization with LoRANotebook Open In Colab
Group Relative Policy Optimization (GRPO)TRL (Docs)Train reasoning models using Group Relative Policy Optimization with rule-based rewardsNotebook Open In Colab
Group Relative Policy Optimization (GRPO)Unsloth (Docs)Train reasoning models using Group Relative Policy Optimization for verifiable tasksNotebook Open In Colab
Vision Models
Supervised Fine-Tuning (SFT)Unsloth (Docs)Supervised fine-tuning for LFM2-VL models on custom image-text datasetsNotebook Open In Colab
Supervised Fine-Tuning (SFT)TRL (Docs)Supervised fine-tuning for LFM2.5-VL models using TRL with parameter-efficient LoRANotebook Open In Colab
Satellite VLM Fine-Tuningleap-finetuneFine-tune LFM2.5-VL-450M on satellite imagery for VQA, grounding, and captioning using ModalCode
Wildfire Preventionleap-finetuneBuild a wildfire risk detection system using LFM2.5-VL-450M and Sentinel-2 satellite imagery, with fine-tuning and on-device inferenceCode
Audio Models
LFM2.5-Audio Fine-Tuningliquid-audioFine-tune LFM2.5-Audio-1.5B on the OHF-Voice dataset to map speech directly to Home Assistant function calls, with on-device GGUF inferenceCode
Encoder Models
Document ClassificationHF TransformersFine-tune LFM2.5-Encoder for custom long-document multi-label classificationCode

Third-Party Apps Powered by LFM

Production and open-source applications that support LFM models as an inference backend, among other providers.

NameDescriptionLink
DeepCameraOpen-source AI camera system for local vision intelligence with facial recognition, person re-ID, and edge deployment on Jetson and Raspberry PiCode
OsaurusNative macOS AI harness for managing agents, memory, tools, and identity locally, with support for LFM models via MLX on Apple SiliconCode
SelfLinkNative iOS privacy-first journaling appWebsite

🌟 Community Projects

Open-source projects built by the community showcasing LFMs with real use cases.

Fine-tuning

NameDescriptionLink
LFM2.5 Mobile ActionsLoRA fine-tuned LFM2.5-1.2B that translates natural language into Android OS function calls for on-device mobile action recognitionCode
Food Images Fine-tuningFine-tune LFM models on food image datasetsCode
LFM2-KoEn-TuningFine-tuned LFM2 1.2B for Korean-English translationCode
SFT + DPO Fine-tuningTeaching a 1.2B model to be a grumpy Italian chef: SFT + DPO fine-tuning with UnslothCode
LFM2-2.6B Mr. Tic Tac ToeFine-tune LFM2-2.6B with reinforcement learning to play tic-tac-toeCode

Deployment

NameDescriptionLink
LFM-2.5 Thinking on WebRun LFM2.5-1.2B reasoning model locally in the browser via WebGPU and Transformers.jsCode
LFM-2.5 JP on WebRun LFM2.5-1.2B Japanese model locally in the browser via WebGPU and Transformers.jsCode
barq-web-ragBrowser-based RAG app for document Q&A with LFM2.5-1.2B-Thinking running fully local via WebGPUCode
Tauri Plugin LEAP AITauri plugin to integrate LEAP and Liquid LFMs into desktop and mobile appsCrate
Chat with LEAP SDKLEAP SDK integration for React NativeCode

End-to-End Projects

NameDescriptionLink
Image Classification on EdgeFine-tune and deploy a local VLM for fast, accurate image classification on edge devicesCode
Chess Game with Small LMsFine-tune and deploy a small language model to play chessCode
Private Doc Q&AOn-device document Q&A with RAG and voice inputCode
Photo Triage AgentPrivate photo library cleanup using LFM vision modelCode
Tiny-MoAMixture of agents on CPU with LFM2.5 Brain (1.2B)Code
LFM-ScholarAutomated literature review agent for finding and citing papersCode
Private Summarizer100% local text summarization with multi-language supportCode
TranslatorLensOffline translation camera for real-time text translationCode
Meeting Intelligence CLICLI tool for meeting transcription and analysisCode
grosmeCLI grocery assistant that finds Walmart product matches using an LFM-2.5 tool-calling agent via OllamaCode
Discord ModeratorUse LFM2.5-1.2B to screen messages for suspicious contentCode
BookMindOffline RAG study assistant for asking questions and generating exercises from PDF textbooks, powered by LFM2-2.6BCode
Liquid-CLIFine-tune and run Liquid AI’s LFM2-8B-A1B as a local terminal agentCode
LFM Podcast StudioTurn any PDF into a two-host podcast episode locally using LFM2.5-Audio TTS via llama.cppCode
GalamseyWatchTwo-layer agentic Earth observation over Sentinel-2 imagery for illegal mining detection in Ghana, powered by LFM2.5-VL-450M and LFM2-2.6BCode
Liquid LensDetects water anomalies in orbit by combining fast spectral filtering with conditional LFM2.5-VL visual insights on the SimSat orbital simulatorCode

🕐 Technical Deep Dives

Recorded sessions (~60 minutes) covering advanced topics and hands-on implementations.

DateTopicLink
2025-11-06Fine-tuning LFM2-VL for image classificationVideo
2025-11-27Building a 100% local Audio-to-Speech CLI with LFM2-AudioVideo
2025-12-26Fine-tuning LFM2-350M for browser control with GRPO and OpenEnvVideo
2026-01-22Local video-captioning with LFM2.5-VL-1.6B and WebGPUVideo
2026-03-05Build your own local AI coding assistantVideo
2026-04-22Let’s build a wildfire detection system with a Vision Language Model and satellite imagesVideo
2026-06-12Building on-device voice agentsVideo

Join the next session! Head to the #live-events channel on Discord.

Contributing

We welcome contributions! Open a PR with a link to your project GitHub repo in the Community Projects section.

Contributors

Support

Similar Articles

practical-tutorials/project-based-learning

GitHub Trending (daily)

A GitHub repository curating project-based programming tutorials across many languages, helping developers learn by building applications from scratch.

Liquid AI releases LFM2.5-8B-A1B

Reddit r/LocalLLaMA

Liquid AI released LFM2.5-8B-A1B, an edge model with a 128K context window, 38T tokens of pre-training, and large-scale reinforcement learning, capable of tool calling and complex tasks while fitting on an entry-level laptop.