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.
Instructions to use adityavardhansharma/EchoSwift-700M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adityavardhansharma/EchoSwift-700M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="adityavardhansharma/EchoSwift-700M") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("adityavardhansharma/EchoSwift-700M") model = AutoModelForCausalLM.from_pretrained("adityavardhansharma/EchoSwift-700M", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use adityavardhansharma/EchoSwift-700M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "adityavardhansharma/EchoSwift-700M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adityavardhansharma/EchoSwift-700M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/adityavardhansharma/EchoSwift-700M
- SGLang
How to use adityavardhansharma/EchoSwift-700M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "adityavardhansharma/EchoSwift-700M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adityavardhansharma/EchoSwift-700M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "adityavardhansharma/EchoSwift-700M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adityavardhansharma/EchoSwift-700M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use adityavardhansharma/EchoSwift-700M with Docker Model Runner:
docker model run hf.co/adityavardhansharma/EchoSwift-700M
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.
- Downloads last month
- 42