Liquid D1: This 407MB AI Makes Decisions in 8ms WITHOUT TOKENS!
Revolutionary Liquid AI D1 makes decisions in 8ms without tokens! Tested on real cases: from damaged goods to sorting inquiries. Learn how it works.
The development of automated customer support systems is often associated with slow data processing. However, Liquid AI has introduced the D1 model, based on zero-token technology, which can instantly deliver structured results without generating redundant tokens. This review will test the model's performance using images of damaged goods and a JSON file of customer complaints to generate reports based on user requests.
How Liquid D1 Works
Liquid AI's D1 model evaluates all inputs in a single pass, enabling processed reports without the delays associated with text generation. The system can handle various media types, including images and text, simultaneously, distributing requests to the appropriate categories.
Liquid AI offers two versions of the model: 3 billion and 600 million parameters. Both versions function exclusively as decision-making engines and do not generate conversational text, relying on categorization nodes. This approach eliminates text generation-related delays. The model processes standard codes and images within a single pass, analyzing visual data directly. Furthermore, the system can handle a significant amount of background information, allowing for long documents to be sent with requests for deep routing. In the Semantic Tool benchmark, the D1 model achieved a score of 75%, ranking first in its weight class.
Technical Aspects and Installation
For testing, a 600 million parameter version of the model was chosen. Various file quantization options are available, affecting download size and RAM requirements. For this review, 8-bit quantization was selected, with a download size of 0.5 GB and RAM consumption between 2 and 4 GB. Additional project files were also required to enable visual capabilities. Downloading the necessary files is done using two commands.
The model's operational process involves the following stages:
- Data Ingestion: The system accepts various input types, including text, code blocks, and media files, into a unified workspace.
- Image Processing: A specialized module processes images, converting pixel data into embeddings that the model can understand.
- Analysis: The core engine processes batches of text and images simultaneously, evaluating requests in parallel without latency.
- Output Generation: The system bypasses the text generation phase, directly reading data from probability nodes and delivering structured responses instantaneously.
As a result, the model delivers solutions with zero output tokens in under 20 milliseconds. The model can be configured for various response types, including binary (yes/no) for quick verification or selection from a list of options. The system assigns a probability to each possible categorization and directs the query to the most suitable category. Additionally, the model can evaluate input data on a given scale, allowing for urgency ranking or rating assignment without complex prompts.
Practical Application
The D1 model can be used to automate return verification processes by analyzing product images to identify actual damage and approve valid claims in under a second. The system is also suitable for routing customer support requests, instantly sorting technical and billing inquiries and directing them to the appropriate departments. Furthermore, the model can serve as a protective mechanism for AI agents interacting with the command line, blocking malicious instructions before execution, thereby reducing computational costs and enhancing security.
Model Testing
After loading the model files (GGML), they were registered in the Olama service under the name liquid-d1. The input data consisted of images of damaged products (dishware, luggage) and corresponding customer messages in JSON format.
Example queries included:
- Binary Question: Determining the presence of physical damage in the photographs.
- Category Selection: Identifying the department responsible for handling the claim (fragile replacement department, hazardous appliances department, luggage logistics team).
- Damage Severity Assessment: Assigning a priority to the complaint based on a scale (minor scratch, single damage, multiple damages, hazard).
When querying the liquid-d1 model, the image path and user message were passed. The model would load the image, read the message and the posed questions, and then provide a response. Based on the obtained results, the probability of damage, assigned team, confidence in assignment, severity assessment, and response generation time were extracted. Since the model does not generate text responses, baseline response options were defined for each department.
Testing and Benchmark Results
Running the main script main.py showed that the model analyzed five images in an average of 100 milliseconds each.
- Plates: Classified under the fragile replacement department with a severity score of 2.6 out of 3 and a damage probability of approximately 100%.
- Cup and Saucer: Similarly classified under the fragile replacement department with a damage probability of approximately 100%.
- Cooktop: Classified under the hazardous appliances department with an appropriate message for replacement and refund.
- Luggage: Correctly classified under the luggage logistics team with a message for priority claim processing.
Thus, the model provided solutions and severity assessments for all issues in under 0.5 seconds, processing visual and textual data simultaneously and generating zero output tokens on average in 0.1 seconds.
In official benchmarks, the D1-3B model performed highly in tool-selection tasks, outperforming systems four times its size. The 600M version efficiently analyzes text sentiment, leading in the online discussion moderation category and surpassing models eight times its weight.
Deployment Options
Various options are available for local deployment:
- 8-bit version: 3 GB download size, optimized for Llama CPP and OAMA environments.
- 4-bit quantization: Approximately 2 GB in size, suitable for mobile devices.
- Uncompressed base models: Require around 8 GB of VRAM for maximum performance.
Advantages and Limitations
The main advantage of the model is the absence of processing delays, which allows it to replace larger models (7-70B) in routing tasks. However, it should be noted that D1 is exclusively a classification engine and cannot generate code or compose emails. The model is designed to obtain structured probability metrics.
Conclusion
Liquid D1 is an effective solution for instant structured routing and security filtering without the high computational costs of traditional text models. The model can act as the first layer of defense in an application architecture, analyzing incoming requests, checking them against security rules, and activating the main processing engine only when necessary, which significantly reduces computational costs.
Code files and documentation are available for setting up and running the project via the first link in the description and pinned comments.
Introduction to Liquid D1
The Liquid D1 model is introduced, revolutionizing data processing by providing instant decisions without text tokens. It handles various data types simultaneously, making it ideal for rapid automation.
- Liquid D1 is an AI model from Liquid AI capable of making decisions in 8 ms without generating text tokens.
- The model processes images and text simultaneously in a single step.
- It is designed for customer support automation and other tasks requiring rapid classification.
- Two versions exist: 3 billion and 600 million parameters, both functioning as decision engines.
- The model does not generate conversational text but relies on categorization nodes.
Liquid D1 Workflow
Liquid D1 processes data in stages: from collection to image conversion into embeddings. Then, the main engine analyzes all data in parallel, delivering structured solutions without text generation.
- First stage: collection and processing of raw data (text, code, media) in a unified workspace.
- Visual block: conversion of image pixels into embeddings understandable by models.
- Main engine: simultaneous reading of text and images, parallel query evaluation.
- Final stage: obtaining structured answers directly from probability nodes, bypassing text generation.
- Response time - less than 20 milliseconds, zero output tokens, except for the solutions themselves.
Use Cases and Configuration
Liquid D1 is flexible in configuration: from simple binary responses to scale-based evaluation. It can automate return checks, route requests, and serve as a protective screen for AI agents.
- Configurable for binary responses (yes/no) or selection from a list of options.
- The system assigns a probability to each category and routes the request.
- Supports scale-based evaluation for urgency or rating.
- Application for automating product return checks (identifying defects from photos).
- Routing support requests by department (technical, billing inquiries).
- Use as a protective layer to block malicious instructions before execution.
Model Download and Installation
The installation process involves downloading model files using terminal commands and registering with Olama. Various quantization options are available to optimize for different systems, including mobile devices.
- Commands for downloading model files (GGML) are presented.
- 8-bit quantization is chosen: 0.5 GB download size, requires 2-4 GB RAM.
- Project files are needed to add visual capabilities.
- Models are registered with the Olama service under the name 'liquid-d1'.
- Various quantization options (8-bit, 4-bit) are available for different hardware configurations.
Testing Liquid D1 with Damaged Goods Example
The model is being tested on real-world data: images of damaged goods and corresponding customer complaints. The model needs to classify the damage, identify the responsible department, and assess the severity.
- Input data: images of damaged goods (tableware, luggage) and a JSON file with complaint descriptions.
- Example complaint for tableware: request for a full replacement due to shipping damage.
- Example complaint for a suitcase: damage at the airport, personal belongings exposed.
- Model queries: check for physical damage, determine responsible department, assess severity of damage.
- The model must identify the department (fragile goods replacement, dangerous equipment, luggage logistics) and assign a priority.
Test Results and Performance
Testing showed Liquid D1's high speed and accuracy. The model correctly classified damages, assigned responsible departments, and assessed the severity of damage for all provided examples in under half a second.
- Processing each of the five images took approximately 100 milliseconds.
- For dishes and cup: assigned to the fragile goods replacement department, damage probability ~100%, severity assessment 2.6/3.
- For the stove: assigned to the hazardous equipment department, with suggestions for replacement and return.
- For luggage: assigned to the logistics team, opening a priority case.
- Total processing time for all requests was less than 0.5 seconds.
- The model successfully processes both visual and textual data, providing solutions without output tokens.
Comparison with Benchmarks and Conclusions
Liquid D1 demonstrates impressive benchmark performance, especially in classification and routing tasks. Despite limitations in text generation, its speed and efficiency make it a valuable tool for request pre-processing.
- The larger D1 version (3B) leads in tool selection tasks, outperforming larger models.
- The smaller version (600M) is effective in text sentiment analysis and moderation, outperforming models 8 times its size.
- Advantages: no processing delays, ability to replace larger models in routing tasks.
- Limitations: the model is a classification engine, it does not generate code or text.
- Application: as the first filter for incoming requests to save computational resources.
