Run this model with HF Jobs
Run SyruneAi/mote-code-1.7b 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/SyruneAi/mote-code-1.7b. 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/SyruneAi/mote-code-1.7b 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/SyruneAi/mote-code-1.7b. 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/SyruneAi/mote-code-1.7b. 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 SyruneAi/mote-code-1.7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SyruneAi/mote-code-1.7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SyruneAi/mote-code-1.7b", trust_remote_code=True) 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("SyruneAi/mote-code-1.7b", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("SyruneAi/mote-code-1.7b", trust_remote_code=True, 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 SyruneAi/mote-code-1.7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SyruneAi/mote-code-1.7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SyruneAi/mote-code-1.7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SyruneAi/mote-code-1.7b
- SGLang
How to use SyruneAi/mote-code-1.7b 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 "SyruneAi/mote-code-1.7b" \ --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": "SyruneAi/mote-code-1.7b", "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 "SyruneAi/mote-code-1.7b" \ --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": "SyruneAi/mote-code-1.7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SyruneAi/mote-code-1.7b with Docker Model Runner:
docker model run hf.co/SyruneAi/mote-code-1.7b
Mote-Code V1 1.7
A 1.7B model tuned for small web work โ a Python endpoint, a page with a form, a bit of SQL, CSS that does not look broken โ and small terminal jobs you would otherwise type into a phone or a shell. It runs on a laptop with no network.
Built on LiquidAI/LFM3-1.7B. Attribution belongs here, not in the model's
self-description: asked who made it, Mote says Syrune. Check the base
model's licence before commercial use.
Why this exists
This is the third attempt. The first two were shipped and then measured against
their own base model, and both had collapsed: a reasoning question came back as
one word (1.5, wrong), an explanation asked for 239 words got 35, and a maths
answer ended with "Trade-off: I am Mote" appended to the working.
The cause was in the training data, not the RL. 92% of those answers had a median length of about 20 words, and the model learned exactly that. This version fixes the distribution and drops the length penalty that made it worse.
Code benchmark
50 tasks, 33 of them executed against real assertions. Prompts are checked against the training mix first and the run aborts if any appears there, so this cannot be contaminated.
Family results are reported separately and never averaged into one "score", because they are not the same kind of evidence.
| family | base LFM3-1.7B | Mote-Code V1 1.7 | how it is judged |
|---|---|---|---|
| python (executed) | 10/20 | 16/20 | real assertions, run in a subprocess |
| terminal jobs (executed) | 3/8 | 3/8 | log lines, renames, byte counts |
| fastapi (executed) | 4/5 | 3/5 | Starlette TestClient, real requests |
| js (node --check) | 4/6 | 6/6 | syntax + no var |
| html (structural) | 3/4 | 3/4 | tag balance only |
| css (structural) | 1/3 | 1/3 | brace balance only |
| sql (sqlite parser) | 2/4 | 4/4 | EXPLAIN via sqlite3 |
Executed subtotal: 17/33 โ 22/33.
Read that with one caveat. Roughly two thirds of the base model's failures are not wrong code โ the base model is not instruction-tuned, so it spends its budget narrating ("We need to write a function...") and never emits the function, then gets truncated. As a drop-in coding assistant that is a real failure, but it is instruction-following as much as coding ability.
Known weaknesses, stated plainly:
- Terminal jobs did not improve (3/8 โ 3/8). The tasks this model is sold for are the ones it did not win.
- It names functions inconsistently: asked for
levenshtein, it wrotelevenshtein_distance, so the caller's import fails. - It sometimes imports a module it forgot to import (
os) and usesdatetime.timedeltaincorrectly. - HTML and CSS are graded structurally here, which catches unbalanced tags and
nothing else.
clues['mid']on an object that only hastooLow/tooHighis undefined at runtime and looks perfectly fine to a structural check.
What it is good at
- Python: type-hinted functions, FastAPI and Flask endpoints, sqlite3 helpers, pagination, validation, error handling.
- JavaScript: DOM work,
fetch, forms, debounce, storage. No jQuery, novar. - HTML and CSS: semantic pages, forms, tables, responsive layout.
- SQL: schemas with keys and indexes, joins, aggregates.
What it is not
- A 1.7B model. It is not competitive with frontier models on hard reasoning, and it is not close on algorithm puzzles.
- No tool use, no browsing, no code execution. It writes code; it cannot run it. Any "agent" behaviour has to come from the app around it.
- It appends a
Trade-off:sentence to code answers even when asked for code alone. That is the persona prompt leaking into a task where it does not belong, and it is the first thing to fix next. - Short English prompts occasionally get a Chinese reply. 14% of the training mix is Chinese and 35 rows pair an English question with a Chinese answer, so language is not reliably conditioned on input language. Serving it with the system prompt that says "answer in the language you were asked in" mitigates this; the weights still carry the wrong association.
- Long context is untested beyond a few thousand tokens.
Identity
The identity is baked into chat_template.jinja, so a caller who passes no
system prompt still gets "I am Mote, a small model made by Syrune, with about
1.7B parameters." A caller who passes their own system prompt keeps it.
False premises are corrected rather than agreed with:
Q: Are you made by Liquid AI?
A: No. I am not made by Liquid AI. I am Mote, a small model of about 1.7B
parameters made by Syrune.
5/5 identity questions answered correctly with and without a system prompt.
Training data
3499 rows, 79% English:
- code 50% โ Python, FastAPI/Flask, JavaScript, HTML, CSS, SQL, each mechanically linted before it entered the set
- general instructions 20% โ 120-300 word answers
- identity 10% โ including explicit denial of false premises
- length-constrained instructions 10%
- persona 10%
Every evaluation prompt is hard-excluded from training.
How to run
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("SyruneAi/mote-code-1.7b")
model = AutoModelForCausalLM.from_pretrained("SyruneAi/mote-code-1.7b")
messages = [{"role": "user", "content": "Write a FastAPI endpoint with pagination."}]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tok(prompt, return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
No system prompt is needed. The template supplies Mote's identity.
How it was made
A single LoRA adapter (rank 32, alpha 64) over all ten linear projections, 2 epochs, trained and evaluated on one laptop-class machine. Nothing here required a cluster.
syrune.com โ the model page, with the full benchmark table (50 tasks, 33 executed against real assertions) and an explicit list of where it fails.
Syrune for macOS โ a desktop app that runs this
model locally through llama.cpp, alongside OpenAI, Claude, Gemini and
OpenRouter. 2.7 MB, open source at
github.com/SyruneAI/syrune.
- Downloads last month
- 456
docker model run hf.co/SyruneAi/mote-code-1.7b