EchoSwift (700M) Instruct
EchoSwift-700M is an edge-optimized language model fine-tuned specifically for EchoFlow, a private, on-device mobile AI assistant. Built on top of LiquidAI/LFM2-700M under the LFM Open License v1.0, it brings sub-second agentic capabilities and single-file offline web artifacts directly to edge devices and mobile phones.
🎯 Why We Tuned It
Base edge models typically default to open-ended text completion and conversational filler, making them unreliable for structured on-device agents. EchoSwift-700M was trained on the adityavardhansharma/echoflow-sft-corpus to give edge devices three critical capabilities:
- Surgical Web Search Protocol: When fresh external facts are required, the model emits strictly a single line (
search: concise query, 2-6 words) with date/time anchors. Math, coding, algorithms, translations, and casual greetings automatically bypass search with zero latency. - Single-File Offline Artifacts: When asked to build an app, calculator, or dashboard, it generates complete, working HTML/CSS/JS mobile apps wrapped in
<echo:artifact type="html" title="...">designed with $\ge 44\text{px}$ touch targets and zero external CDN dependencies. - Anti-Slop Tone & Native Math: Direct, highly technical responses structured with Markdown tables and LaTeX math (
$...$,$$...$$).
📊 Benchmark & Performance Summary
Evaluated on the EchoFlow evaluation suite:
| Evaluation Metric | EchoSwift-700M Result | Details |
|---|---|---|
| EchoFlow Schema Adherence | 100.0% Pass Rate | Compliant search triggers and validated artifact closing tags |
| Surgical Search Compliance | 100.0% Compliant | Emits single-line search: query with zero conversational filler |
| Zero-Search Guardrail | 100.0% Pass | Perfect zero-search on math, coding, and casual conversation |
| Complete Artifact Generation | 100.0% Pass | Produced complete 1,276-token Pomodoro app with zero truncation |
| Peak Generation Throughput | 68.9 Tokens/Sec | Fast on-device inference speed |
📱 Mobile Packages (.litertlm for EchoFlow Android)
For direct on-device execution in EchoFlow via Google LiteRT (TFLite C++ engine with minja chat template):
| Package File | Context Window | Quantization | Size | Target Hardware | Direct Download |
|---|---|---|---|---|---|
EchoSwift-700M_int8.litertlm | 4,096 tokens | INT8 Dynamic (dynamic_wi8_afp32) | 770.8 MB | Modern Android Phones (Snapdragon NPU, Dimensity APU) | Download 4K INT8 |
EchoSwift-700M_int4.litertlm | 4,096 tokens | INT4 Blockwise-32 (wi4b32 OCTAV) | 458.5 MB | Ultra-lightweight / RAM-constrained phones | Download 4K INT4 |
EchoSwift-700M_int8_8k_ekv8192.litertlm | 8,192 tokens | INT8 Dynamic (dynamic_wi8_afp32) | 770.8 MB | Extended Context (Long chats & complex tools) | Download 8K INT8 |
EchoSwift-700M_int4_8k_ekv8192.litertlm | 8,192 tokens | INT4 Blockwise-32 (wi4b32 OCTAV) | 460.0 MB | Extended Context on budget phones | Download 8K INT4 |
Quantized Repository: adityavardhansharma/EchoSwift-700M-LiteRT
💻 Quickstart (Transformers)
For laptops, desktops, and workstations:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "adityavardhansharma/EchoSwift-700M"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
dtype=torch.bfloat16
)
messages = [{"role": "user", "content": "Write an interactive Pomodoro timer app in single-file HTML/CSS/JS."}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to("cuda")
outputs = model.generate(inputs, max_new_tokens=1500)
print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))
License
Built on LiquidAI/LFM2-700M under the LFM Open License v1.0.