Run this model with HF Jobs

Run adityavardhansharma/EchoSwift-700M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/adityavardhansharma/EchoSwift-700M. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/adityavardhansharma/EchoSwift-700M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/adityavardhansharma/EchoSwift-700M. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/adityavardhansharma/EchoSwift-700M. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

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:

  1. 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.
  2. 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.
  3. 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.

Downloads last month
42
Safetensors
Model size
0.7B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for adityavardhansharma/EchoSwift-700M

Finetuned
(24)
this model
Quantizations
3 models