
osmos1.7b
An agent that fits in your pocket. osmos1.7b is a 1.7B coding agent that learned how one engineer works - which tool, when, on what, and how to say it - the way osmosis works: by soaking it up through a membrane of its own words. This release learned it from the turns of his sessions that carry the most signal - the decisions that change something, and the hard ones - and from the newest version of his code.
It is named for osmos, the runtime it is built to run in: phones, laptops, the always-on agent.
what it is
- Base: fine-tuned from LFM3-1.7B by Liquid AI: hybrid short convolutions and attention, 262K native context, strong tool calling.
- Liberated: the refusal direction projected out of its residual writers, through their post-norms.
- Fine-tuned on recipe v-r15: one engineer's real agent sessions, replayed in the model's own words and chosen by signal, plus his voice and a curated reading pool of his systems code (below).
- BF16, trained against a 4-bit KV cache: the weights train in BF16 while every key and value the attention reads is rounded to Q4_0, so it holds up on a Q4 cache as well as on f16 or Q8.
- Tuned for agentic coding in a developer's harness: shell, files, edits, tests. It is not a general-knowledge upgrade.
recipe v-r15: the decisions that matter, at the length the base learned agent work
Small models fine-tuned on agent transcripts tend to break in a specific way: they start copying their own earlier thoughts, word for word, and loop. Training a small model on other models' turns - their reasoning, or even only their tool calls and replies - collapses the variety of how it starts to think, and the copying follows.
So osmos1.7b never trains on another writer's words. At each decision point in the sessions - the context exactly as the session had it - the base model writes the turn itself, a few times. A sample is kept only when it acts as the engineer's session did: the same tool on the same target, parsing cleanly. Those turns, in the model's own words, are what it trains on, beside the engineer's voice set. It learns his decisions; its thinking stays its own.
Chosen by signal, not volume. Of the replayed turns, it keeps the ones that act or check (edit, write, build,
test, commit, open a PR, plan) over the ones that only read, and the decisions the model missed on its first try over
the ones it got at once; easy reads and noise (sleep, echo, a bare cd) are dropped, and no session window gives more
than three. 4,183 turns from two agent harnesses. Half the tokens of the previous release, and better (below).
32K windows, fitted like a compaction. LFM3 did its agentic mid-training at 32K; training deeper windows (56K) measured the same. A session longer than 32K keeps its head - the system prompt and the task - and its latest rounds, the oldest in between dropped, as an agent's own compaction does.
The newest code. Beside the sessions, a curated reading pool of his systems code (C, Go, Rust, HIP and CUDA) at full length with its behavioral tests, cut at file boundaries into 16K windows: his inference runtime at its consolidated 0.16.0 (one contract a concept, every byte owned), his agent harness, his merged pull requests to an inference engine as process documents, and a smaller slice of other people's inference-engine code at their latest. Generated tables, monolithic generated files and anything an AI assistant wrote are left out.
One pass: 5,061 examples, 94M tokens of context, 5.6M trained tokens, 3 hours on two RTX 5090s.
results
All on the BF16 file with an f16 KV cache, against the previous release (v-r13) where it was measured the same way.
Real commits. 26 held-out commits from the engineer's own Go projects, never seen in training: the model gets the repository at the parent commit and the task, works in a real agent harness with a 30-minute wall, and is graded by the project's tests. Two attempts each, temperature 0.1.
| commit bench | attempts | passed | partial | mean score | broke the build | claimed done falsely |
|---|---|---|---|---|---|---|
| previous release (v-r13) | 52 | 9 | 2 | 0.202 | 0 | 0 |
| osmos1.7b v-r15 | 45 | 9 | 4 | 0.248 | 0 | 0 |
v-r15 matched the previous release's nine passes in 45 of the 52 attempts, and the run was stopped there. Most misses ran out of the 30-minute wall rather than failing; neither release ever broke a build or claimed a task done that wasn't.
Long context. Perplexity on a held-out Zig codebase (TigerBeetle) at three depths:
| 16K | 32K | 48K | |
|---|---|---|---|
| previous release (v-r13) | 2.424 | 2.060 | 2.073 |
| osmos1.7b v-r15 | 2.401 | 2.044 | 2.061 |
Held-out code (perplexity on code held out of training, mostly projects and languages it never read; lower is better):
| evt | TigerBeetle (Zig) | Netty (Java) | OCaml | Haskell | Fortran | |
|---|---|---|---|---|---|---|
| base (liberated LFM3-1.7B) | 2.666 | 6.393 | 2.000 | 5.283 | 4.719 | 3.184 |
| previous release (v-r13) | 2.590 | 6.079 | 1.958 | 5.131 | 4.597 | 3.099 |
| osmos1.7b v-r15 | 2.522 | 5.997 | 1.936 | 5.035 | 4.519 | 3.065 |
Better than the base and the previous release on all six, and on general English text too: perplexity 6.77 vs the base's 7.18 (-5.6%), and closer to its base than the previous release (KL 0.050). It agrees with its base on the top next token 89% of the time.
KV cache. Trained against a Q4_0 cache as the previous release was, on which Q8 matched f16 to three decimals and Q4_0 cost about 0.2% perplexity (the base model pays 0.8%).
LiveCodeBench, 60 problems (a fixed random draw), each solution run against the problem's tests, the same sampling and budget for every model:
| LiveCodeBench, 60 problems | solved |
|---|---|
| base, BF16 | 41 |
| previous release (v-r13) | 38 |
| osmos1.7b v-r15 | 39 (1 out of budget) |
Level within noise: this recipe teaches agent work, not contest puzzles.
Refusals (the liberation kept through training): harmful prompts refused 1%; safe prompts that only look unsafe (XSTest) refused 0%.
files
| file | size | for |
|---|---|---|
osmos1.7b-BF16.gguf | 3.47 GB | the model |
osmos1.7b-Q8_0.gguf | 1.85 GB | the model at half the size, for phones and laptops |
osmos1.7b-lsa-maps.safetensors | 0.8 MB | latent sparse attention maps for long context in osmos, fitted to this release |
Q8_0 costs 0.16% perplexity against BF16 (6.784 vs 6.772 on general text; KL 0.0009, the same top token 98.4% of the time) and matches it on held-out code (Zig 5.998 vs 5.997, OCaml 5.042 vs 5.035).
The LSA maps index which earlier tokens each query reads at long context. Fitted to this model and scored on held documents to 256K: the served read finds 55% of the attention mass and 78% of the top-16 keys - the same as maps fitted to an earlier release, scored on the same documents (fine-tuning leaves the base's attention routing as it was).
A DFlash2 drafter trained on this model's own outputs will be added once it measurably speeds up decoding.
use
llama-server -m osmos1.7b-BF16.gguf --jinja -c 131072 -fa on # or osmos1.7b-Q8_0.gguf
Recommended sampling (written into the file's metadata): temperature 0.1, top_k 50, repetition_penalty 1.1.
An f16 KV cache is the default and the fastest on GPU; -ctk q8_0 -ctv q8_0 or q4_0 to save memory at long context.
With transformers, use LiquidAI's own modeling code (trust_remote_code=True): transformers' built-in LFM3 class
currently rotates the attention dimensions LFM3 leaves position-free (huggingface/transformers#50853), which drifts
with context length.
versions
- osmos1.7b, recipe v-r15 (2026-11-24, this release): sessions from two harnesses chosen by signal, fitted to 32K; code at 16K, synced to the runtime's 0.16.0 and the engines' latest; LSA maps fitted to it.
- osmos1.7b, recipe v-r13 (2026-11-23): long sessions to 56K, BF16 weights trained against a Q4_0 KV cache; replaced the Q4_0 release, its drafter and its LSA maps.
- 2026-11-20: an early DFlash2 drafter; LiveCodeBench widened from 30 problems to 60.
- osmos1.7b, recipe v-r10 (2026-11-19): the lineup renamed from vibes to osmos; the curated reading pool with its behavioral tests, at 32K, trained on the Q4_0 grid.
- vibes1.7b, recipe v ii (2026-11-18): the sessions replayed in the model's own words.
- vibes1.7b, recipe v (2026-11-17): the first upload, which looped on agent tasks and whose training data included a few files written by an AI assistant.
license
LFM Open License v1.0 (Liquid AI), see LICENSE: commercial use is permitted under its revenue threshold. This is a modified version of LFM3-1.7B: the weights were changed by liberation and fine-tuning as described above.
credits
Base model: LFM3-1.7B by Liquid AI. Trained with incarnate (to be open-sourced).
take a breath. life is short. feel the vibe.