Run this model with HF Jobs

Run justfacehug/mote-4.1 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 to fine-tune https://huggingface.co/justfacehug/mote-4.1. 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/justfacehug/mote-4.1 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/justfacehug/mote-4.1. 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/justfacehug/mote-4.1. 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.

Mote 4.1 (preview)

Mote 4.1 is a small language model that explains code-review findings in the browser. It runs in FlowLens, a code reader that finds risky and inefficient code and checks how modules are coupled.

FlowLens's static analyzer finds the problems. Mote 4.1 receives that bounded evidence and explains it: what was found and where, why it matters, and a direction for a fix, with references.

This is a preview checkpoint, not the final model. It comes from 49% of the way through pretraining and may be replaced when the run finishes. FlowLens's findings are the source of truth; the model can be wrong.

Model

Architecture Llama-style decoder: 24 layers, width 768, 12 query heads and 4 key-value heads, SwiGLU 2048, RMSNorm, RoPE, tied embeddings, no biases
Parameters 163.6M
Context 2,048 tokens
Tokenizer 16,384-token byte-level BPE, trained from scratch for this model
Training From random initialization: pretraining to step 6,794 (49%), then 720 decay steps on a security mix, then 814 instruction-tuning steps
Source checkpoint SHA-256 2f0481d569b6d287472ddcdffc11f2654bac099babf1e485bba1857402f19b90

Files

Path Use Bytes SHA-256
onnx/model_q4.onnx WebGPU through transformers.js. The weights are 8-bit MatMulNBits (block 32); the file name is the one transformers.js loads with dtype: "q4" 234,938,072 de6fb90157dd1ecbdb00c3f95b965c83c384be6c3ec982581b943e2f0452267c
config.json Model configuration for transformers.js 842 fe8d5cf05a2f51110edbc12ea9f77e946f6488a4e8c3a2c9fe60828599b37afc
generation_config.json Generation defaults 226 3b68c35c6e2947e730f9ee05f00aee60de3f5156d8828d88e9668d4d16bbbed9
cpu-int8/mote-tiny.bin CPU runtime in FlowLens: int8 with one scale per row 164,457,472 2a48d23414dbc80b28d273af6f993f6711bd30142391e76a8074a9c74b89c801
cpu-int8/mote-tiny.json CPU runtime manifest 52,530 7f5df70d5f3a7ee80c9eabba31c0205a6c5cfd8c75d878da26c3eb5d57cd3739
cpu-int8/tokenizer.json Tokenizer, used by both runtimes 1,140,302 2d3fe463267c0aa28519542307df35a43150d3ffd1ee1a879deaba5b8a489e8b

Quantization:

  • 4-bit was rejected. Group-128 4-bit weights agreed with float32 on the top token only 80% of the time, and replies fell apart. Int8 agreed 98% of the time.
  • The 8-bit ONNX file matches float32. On WebGPU it gave the same reply as float32 for 128 greedy tokens.
  • Float16 is not used. It overflows on WebGPU in RMSNorm.

Intended use

The model is meant to explain FlowLens evidence for one file or a selection. The evidence is a block of findings, each with:

  • a rule, file and line;
  • a why;
  • a fix;
  • references.

FlowLens builds the prompt in the exact format the model was trained on. The model is not a general chat assistant and does not call tools.

Measured behaviour

These results come from 21 questions asked through FlowLens on WebGPU, graded by hand on 2026-12-04:

Behaviour Result
Speed (RTX 5060 Ti) First word in 0.1–0.6 s, 32–40 tokens/s
Names the finding and line FlowLens reported 10 of 10
Gives the fix that belongs to that finding 6 of 9 replies that gave a fix; it sometimes copies the fix or reason of a neighbouring finding
Greetings and off-topic questions asked with code evidence attached Answered with a review instead of a conversational reply or redirect
Question about a file that is not in the evidence Can invent a location

FlowLens review safeguards

FlowLens handles greetings, programming lessons, out-of-scope questions, and missing files through its Assistant routing. A request to view a file in the chat asks for permission before showing an excerpt.

For a code review, the app checks generated replies against the analyzer evidence. It checks for fixes that belong to another finding, location claims outside the evidence, and changes with identical before and after text. The displayed review uses the analyzer's verified locations and remedies, and the Sources section shows attributed references. These checks run in FlowLens. The underlying preview checkpoint and the earlier measured behaviour above remain the same.

Training data and licences

All sources are documented with revisions and hashes in the training repository's provenance records.

Stage Sources Licence
Pretraining FineWeb-Edu (HuggingFaceFW/fineweb-edu) ODC-By
Pretraining Cosmopedia v2 (HuggingFaceTB/smollm-corpus) ODC-By
Pretraining Go, Python, JavaScript and TypeScript code from codeparrot/github-code-clean, filtered to MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause and ISC Per-file permissive licences
Pretraining, decay OWASP Cheat Sheet Series, OWASP Top 10 2021, OWASP ASVS 4.0.3 and 5.0 CC BY-SA 4.0
Decay CPython documentation PSF-2.0 / 0BSD
Decay Go standard library BSD-3-Clause
Decay Node.js documentation MIT
Decay, instruction tuning Vulnerable and fixed code pairs, analyzer-grounded review examples, programming lessons, conversation, abstention and off-topic redirect examples written for this project Released with the model under CC BY-SA 4.0
Instruction tuning OpenAssistant OASST2, English (OpenAssistant/oasst2) Apache-2.0

No chat transcripts were used.

Licence and attribution

The weights are released under Creative Commons Attribution-ShareAlike 4.0, https://creativecommons.org/licenses/by-sa/4.0/. The model was trained on documents of the OWASP Foundation:

Those documents are licensed CC BY-SA 4.0. Any adaptation of these weights must carry the same licence and keep this attribution.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support