Instructions to use notfakerv/round2-v1.2-1.7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use notfakerv/round2-v1.2-1.7b with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf notfakerv/round2-v1.2-1.7b:BF16 # Run inference directly in the terminal: llama cli -hf notfakerv/round2-v1.2-1.7b:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf notfakerv/round2-v1.2-1.7b:BF16 # Run inference directly in the terminal: llama cli -hf notfakerv/round2-v1.2-1.7b:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf notfakerv/round2-v1.2-1.7b:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf notfakerv/round2-v1.2-1.7b:BF16
Use Docker
docker model run hf.co/notfakerv/round2-v1.2-1.7b:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use notfakerv/round2-v1.2-1.7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "notfakerv/round2-v1.2-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": "notfakerv/round2-v1.2-1.7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/notfakerv/round2-v1.2-1.7b:BF16
- Ollama
How to use notfakerv/round2-v1.2-1.7b with Ollama:
ollama run hf.co/notfakerv/round2-v1.2-1.7b:BF16
- Unsloth Desktop
- Pi
How to use notfakerv/round2-v1.2-1.7b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf notfakerv/round2-v1.2-1.7b:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "notfakerv/round2-v1.2-1.7b:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use notfakerv/round2-v1.2-1.7b with Docker Model Runner:
docker model run hf.co/notfakerv/round2-v1.2-1.7b:BF16
- Lemonade
How to use notfakerv/round2-v1.2-1.7b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull notfakerv/round2-v1.2-1.7b:BF16
Run and chat with the model
lemonade run user.round2-v1.2-1.7b-BF16
List all available models
lemonade list
- Hermes Agent
How to use notfakerv/round2-v1.2-1.7b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf notfakerv/round2-v1.2-1.7b:BF16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default notfakerv/round2-v1.2-1.7b:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use notfakerv/round2-v1.2-1.7b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf notfakerv/round2-v1.2-1.7b:BF16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "notfakerv/round2-v1.2-1.7b:BF16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
round2-v1.2-1.7b
round2-v1.2-1.7b is round2-1.7b-loop-preview with one gradient-free weight edit. That model is a looped version of LFM3-1.7B by Liquid AI.
- What changed: five tensors, the feed-forward output projection (
w2) of layers 12, 14, 16, 18 and 20. Each received a rank-one update that makes the layer write a "conclude now" direction into the residual stream. - How: the direction was read from round2's own reasoning traces; no gradients, no labelled data and no fine-tuning. The update is 0.5-0.7% of each tensor's norm. The 44M loop parameters are unchanged.
- Effect: with an 8,192-token budget, it answers more questions right than round2 by finishing its reasoning instead of running out of tokens.
In short, on 250 problems never used to build or choose the edit (2 answers each, 8,192 tokens):
round2 (unedited) round2-v1.2 random edit of the same size Right 66.2% 75.0% 67.4% Paired gap to round2 (95% CI) +8.8 [+5.4, +12.4] +1.2 [−1.6, +3.8] Mean tokens per answer 3,333 1,867 (−44%) 3,311 Answers cut off at 8,192 tokens 20.8% 6.0% 20.0% The test, its pass rule and the random control were fixed in writing before the first answer was sampled, and it passed. The gain is concentrated where round2 runs out of budget (physics, logic, statistics, procedurally generated problems); on math, coding and easy multiple choice it ties. This is a research preview.
It needs the same custom runtime as round2. The GGUF runs only on a llama.cpp build with the two patches in runtime/ (or the ready branch renoirvieir4/llama.cpp round2-1.7b-loop-preview). Stock llama.cpp and stock LM Studio cannot load it.
Contents
- Lineage and attribution
- What the edit is
- How it was found and chosen
- Results against round2
- What about stock LFM3-1.7B?
- Recommended settings and How to use
- Validation of this release, Limitations, Files
Lineage and attribution
| Model | What it is | |
|---|---|---|
| 0 | LiquidAI/LFM3-1.7B @ ac2586a3 |
Liquid AI's model: architecture, 1.7B weights, tokenizer, chat template |
| 1 | notfakerv/round2-1.7b-loop-preview | adds a second, gated pass over layers 5-20 with 44M trained parameters (expert iteration); base weights unchanged |
| 2 | round2-v1.2-1.7b (this) | round2 with five base tensors edited (this card) |
- Liquid AI designed and trained the base model. 281 of its 286 weight tensors are here unchanged; the five edited ones are listed in NOTICE and pytorch/wsp_edit.json.
- License: LFM Open License v1.0 (LICENSE), inherited from the base model.
- Status: an independent, unofficial derivative, not made, reviewed or endorsed by Liquid AI. "LFM" and "Liquid AI" only identify the base model.
- The loop, its training and its runtime are described in round2's model card; none of that changed.
What the edit is
The direction. round2 was run on 240 discovery problems, 4 answers each (960 answers, 782 complete enough to use). At every layer we averaged the residual stream (the output of each layer's block on the first pass) over two sets of positions inside the reasoning:
- the last 48 tokens before
</think>, where the model is wrapping up; - all other thinking tokens.
The difference of the two means, per layer, is the "conclude" direction (cc). Its two random halves of the data agreed with cosine 0.97-0.99, far above a random-split placebo (−0.14 to +0.10).
The write. For each edited layer i in {12, 14, 16, 18, 20} the feed-forward down projection W = model.layers.i.feed_forward.w2 (2048 × 7680) gets a rank-one additive update
W' = W + α · n_w · d uᵀ / ‖u‖²
dis the unit conclude direction at that layer, with sign +: the edit pushes toward concluding.uis the layer's mean input (the feed-forward hidden activation, averaged over the discovery traces) andn_wthe norm of what the layer typically writes. On the mean input the edited layer therefore adds exactly α · n_w alongd: a steering vector of α times the layer's typical output, compiled into the weight. The scale is corrected for the layer's post-feed-forward norm (realised write/target 0.99; cosine to the intended direction 0.985-0.992).- Dose α = 0.15. The relative change ‖ΔW‖/‖W‖ is 0.52-0.71% per layer, 0.60% on average.
Where it acts. Layers 12-20 lie inside the looped range (5-20), so the edited weights are used on both passes: the shared weights serve the first pass and the second pass reuses them (plus round2's untouched low-rank deltas).
Everything except these five tensors is bit-identical to round2: the GGUF differs from round2's in exactly the five tensors blk.{12,14,16,18,20}.ffn_down.weight and in its general.name field.
How it was found and chosen
Four problem sets were drawn without overlap from the same question pool (MMLU-Pro, procedurally generated problems, GSM8K, ARC-Challenge, MBPP), with a fixed sampler seed:
| Set | Problems × answers | Used for |
|---|---|---|
| discovery | 240 × 4 | extracting directions |
| screen | 200 × 1 | choosing among candidate edits and doses |
| frontier | 250 × 2 | pre-registered test 1 (edit "Acc", α = 0.10) |
| held-out | 250 × 2 | pre-registered test 2 of this release; never seen before the test |
The frontier set is the "held-out set" of round2's own card, which was used to accept round2's training rounds; it played no role in building or choosing this edit.
Step 1: screen four edits (200 problems, paired against round2's 124/200):
| Candidate | Edit | Right /200 | vs round2 |
|---|---|---|---|
| AvfP | remove a "hedge / second-guess" direction, layers 14-22 | 123 | −1 |
| Acc | add cc, α 0.10, w2 of layers 12-20 (every 2nd) |
135 | +11 |
| Bcc | add cc to round2's second-pass deltas only |
122 | −2 |
| Bvf | subtract the hedge direction from the second-pass deltas only | 128 | +4 |
Step 2: pre-registered test 1 on the frontier set, Acc and Bvf each against round2 and against their own random control. Acc passed: +9.8 points [+4.6, +14.8], control +0.0 [−4.4, +4.6]. Bvf did not: +1.6 [−2.6, +5.8].
Step 3: dose and stacking, on the screen set (right /200; round2 124):
| α | 0.05 | 0.10 (Acc) | 0.125 | 0.15 | 0.175 | 0.20 |
|---|---|---|---|---|---|---|
| Right | 133 | 135 | 139 | 143 | 135 | 132 |
| Mean tokens | 2,781 | 2,316 | 1,904 | 1,844 | 1,779 | 1,738 |
Adding Bvf on top hurt (Acc + Bvf 137, α 0.15 + Bvf 137). The peak, α = 0.15, became the release candidate. Since the screen set chose it, its +19 there is optimistic and is not used as evidence.
Step 4: pre-registered test 2 on the fresh held-out set (validation/preregistration/PREREGISTRATION_2.md, SHA-256 4d90c022…c183, written before any held-out answer). Arms: round2, this model, its norm-matched random control, and Acc. Results below.
Results against round2
How we compared.
- Pairing: every model answered the same problems with the same per-answer random seeds; differences are paired by problem.
- Scoring: an answer counts as right only if it finishes within 8,192 tokens and its final answer verifies. Cut-off answers count as wrong.
- Intervals: 95% paired bootstrap over problems, 10,000 resamples; the pass rule also required the lower bound to stay above 0 for 10 different bootstrap seeds.
- Engine: the BF16 GGUFs in patched llama.cpp, thinking on, the model card's sampling profile per subject (below).
- Control: the same command that built this model, with the direction replaced by a random direction orthogonal to
cc, at the same norm in the same five tensors. It tests whether the gain comes from the direction or from merely disturbing these weights.
Pre-registered test 2: held-out set (250 problems × 2 answers)
| Model | Right /500 | Stem /238 | General /262 | vs round2 (95% CI) | Mean tokens | Median tokens | Cut off |
|---|---|---|---|---|---|---|---|
| round2 (unedited) | 331 (66.2%) | 168 | 163 | 3,333 | 1,944 | 104 (20.8%) | |
| round2-v1.2 | 375 (75.0%) | 198 | 177 | +8.8 [+5.4, +12.4] | 1,867 | 712 | 30 (6.0%) |
| random control | 337 (67.4%) | 170 | 167 | +1.2 [−1.6, +3.8] | 3,311 | 2,155 | 100 (20.0%) |
| Acc (α 0.10, secondary) | 367 (73.4%) | 194 | 173 | +7.2 [+3.8, +10.6] | 2,186 | 1,016 | 43 (8.6%) |
- Verdict: PASS. v1.2 beats round2 (+8.8 [+5.4, +12.4]; lower bound 5.2-5.4 across seeds) and its control (+7.6 [+4.2, +11.2]); the control is indistinguishable from round2 (+1.2 [−1.6, +3.8], tokens −0.7% [−4.9, +3.7]).
- Per problem: v1.2 did better than round2 on 41 problems, worse on 10, the same on 199.
- Tokens: −44.0% [−50.4, −37.8] per answer against round2.
- Secondary (not part of the pass rule): Acc, the α 0.10 edit that passed test 1, replicates on these new problems: +7.2 [+3.8, +10.6] against round2 (tokens −34.4%). v1.2 against Acc: +1.6 [−0.8, +4.2] and −14.6% tokens. So the higher dose is shorter and probably somewhat better, but its accuracy edge over α 0.10 is not established.
Where the gain comes from
| round2 | round2-v1.2 | control | |
|---|---|---|---|
| Answers cut off at 8,192 | 104 | 30 | 100 |
| Right among the answers round2 cut off (/104) | 0 | 45 | 13 |
| Right among answers both round2 and the model finished | 331/396 (83.6%) | 330/394 (83.8%) | 324/372 (87.1%) |
- The gain is finishing. round2 runs out of budget on a fifth of these answers; v1.2 concludes on most of them, and 45 of round2's 104 cut-offs become right answers.
- No measurable loss on answers both finish: 83.8% against 83.6%. On the frontier set, Acc showed a small loss there (83.0% against 86.8%), so a cost of a few points on long careful answers cannot be ruled out.
By domain (held-out set)
| Domain | Answers | round2 | round2-v1.2 | control |
|---|---|---|---|---|
| math | 118 | 90.7% | 90.7% (+0.0) | 88.1% (−2.5) |
| physics | 90 | 55.6% | 83.3% (+27.8) | 61.1% (+5.6) |
| science (ARC) | 66 | 92.4% | 93.9% (+1.5) | 93.9% (+1.5) |
| humanities | 54 | 27.8% | 37.0% (+9.3) | 33.3% (+5.6) |
| coding | 50 | 80.0% | 80.0% (+0.0) | 80.0% (+0.0) |
| statistics | 30 | 36.7% | 53.3% (+16.7) | 36.7% (+0.0) |
| logic | 20 | 20.0% | 50.0% (+30.0) | 25.0% (+5.0) |
| biology | 18 | 66.7% | 72.2% (+5.6) | 66.7% (+0.0) |
| cybersecurity | 18 | 88.9% | 100.0% (+11.1) | 77.8% (−11.1) |
| economics | 18 | 38.9% | 44.4% (+5.6) | 55.6% (+16.7) |
| general | 16 | 43.8% | 37.5% (−6.2) | 37.5% (−6.2) |
| computer science | 2 | 50.0% | 0.0% | 0.0% |
By source: procedurally generated problems +21.2 (56.1% → 77.3%, 132 answers), MMLU-Pro +7.0 (53.5% → 60.5%, 200), GSM8K +1.5, ARC +1.5, MBPP +0.0. Per-domain samples are small; only the overall row was pre-registered.
Pre-registered test 1: frontier set (Acc, α 0.10)
v1.2 itself was not run here (the set had been used once, as the rule requires), but its predecessor Acc, the same edit at α 0.10, was:
| Model | Right /500 | vs round2 (95% CI) | Mean tokens | Cut off |
|---|---|---|---|---|
| round2 | 350 (70.0%) | 4,286 | 97 | |
| Acc | 399 (79.8%) | +9.8 [+4.6, +14.8] | 2,383 | 15 |
| Acc's random control | 350 (70.0%) | +0.0 [−4.4, +4.6] | 4,439 | 100 |
By domain on that set, Acc gained on physics (+25.8), statistics (+19.2), humanities (+15.2), math (+9.3) and economics (+9.5), and lost on the small "general" domain (−23.1, 26 answers).
Evidence summary
| Set | Role | Edit | Gap to round2 |
|---|---|---|---|
| screen (200 × 1) | selection, optimistic | α 0.15 | +9.5 |
| frontier (250 × 2) | pre-registered, independent | α 0.10 | +9.8 [+4.6, +14.8] |
| held-out (250 × 2) | pre-registered, independent | α 0.15 | +8.8 [+5.4, +12.4] |
| held-out (250 × 2) | secondary | α 0.10 | +7.2 [+3.8, +10.6] |
What about stock LFM3-1.7B?
Not measured in this study. All numbers above compare against round2, the model that was edited. The only stock measurement on any of these sets is in round2's card: on the frontier set, stock 76.8% and round2 82.4%. That evaluation used a different harness (PyTorch, temperature 1.0 for every subject), under which round2 scores 12 points higher than in ours (82.4% against 70.0%), so its stock number cannot be put next to v1.2's. A direct stock comparison would need stock LFM3-1.7B run through this same harness.
Recommended settings
Unchanged from round2, and the settings every number above was measured with:
| Use | Temperature | Top-k | Top-p | Repetition penalty |
|---|---|---|---|---|
| Math, science, logic, multi-step reasoning | 1.0 | 20 | 0.95 | 1.1 |
| General knowledge, chat, coding | 0.1 | 50 | 1.0 | 1.1 |
- Thinking: leave it on (the chat template's default).
- max_tokens: 8,192. The edit was chosen and tested at that budget; its benefit is finishing within it. With much larger budgets round2 also finishes more often, and the gap is expected to shrink (not measured).
- The GGUF's embedded defaults are the general profile. Set the reasoning profile yourself for reasoning tasks.
How to use
llama.cpp
Build the runtime as in runtime/README.md (or clone the ready branch), then:
./build/bin/llama-server -m round2-v1.2-1.7b-BF16.gguf -ngl 99 -fa on -c 65536 \
--temp 1.0 --top-k 20 --top-p 0.95 --repeat-penalty 1.1
All evaluations ran this GGUF with that branch (commit 1ec066013) on an NVIDIA DGX Spark, 64 parallel slots, 10,240-token context per slot.
PyTorch reference
Download Liquid AI's base model and this repository's pytorch/ folder:
hf download LiquidAI/LFM3-1.7B --revision ac2586a34f1a1c03329dbdcdefabd8b6478ddaa7 --local-dir base
hf download notfakerv/round2-v1.2-1.7b --include "pytorch/*" --local-dir .
import json
import sys
import torch
from safetensors.torch import load_file
from transformers import AutoTokenizer
sys.path.insert(0, "pytorch")
from base.modeling_lfm3 import Lfm3ForCausalLM # Liquid AI's modeling code, downloaded into ./base
from modeling_lfm3_loop import LoopSettings, convert_model, load_adapter
model = Lfm3ForCausalLM.from_pretrained("base", dtype=torch.bfloat16)
# the v1.2 edit: replace the five edited feed-forward output projections
result = model.load_state_dict(load_file("pytorch/wsp_edit.safetensors"), strict=False)
assert not result.unexpected_keys
model = model.to("cuda")
# round2's loop (unchanged)
convert_model(model, LoopSettings(**json.load(open("pytorch/loop_config.json"))))
load_adapter(model, "pytorch")
model.eval()
tokenizer = AutoTokenizer.from_pretrained("base", trust_remote_code=True)
messages = [{"role": "user", "content": "What is 17 multiplied by 23?"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True).to("cuda")
output = model.generate(**inputs, max_new_tokens=8192, do_sample=True, temperature=1.0, top_k=20, top_p=0.95, repetition_penalty=1.1)
print(tokenizer.decode(output[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Apply the edit before convert_model. This snippet was tested with transformers 5.20.2 and PyTorch 2.14.
Validation of this release
- The GGUF is the evaluated file.
round2-v1.2-1.7b-BF16.gguf(SHA-256a2ebe334…a27d) is byte-for-byte the file every v1.2 result above was sampled from; its digest was recorded in the pre-registration before the held-out test. Itsgeneral.namemetadata readsAcc15, the internal name of this edit. - Only the intended tensors changed: compared with round2's released GGUF, all 545 tensors are present, and exactly five differ:
blk.{12,14,16,18,20}.ffn_down.weight. - The exporter read back every edited tensor and 142 loop projections against the PyTorch weights.
- The PyTorch recipe reproduces the checkpoint: base +
wsp_edit.safetensors+ adapter matches the evaluated weights in all 286 base tensors; greedy decoding answers "17 × 23" with 391. The per-token KL from round2 on that continuation is 0.12 nats, and the two models agree on the top token 95% of the time (validation/pytorch-recipe-check.json). - Raw results: per-problem counts for every model and every set in this card are in validation/evaluations/ (problem IDs, domain, source, right/answers, cut-offs, tokens; no question text), with the pre-registrations and the statistics files in validation/.
Limitations
- One budget. Measured only at 8,192 tokens. The gain is about finishing within that budget; at larger budgets it is likely smaller, and it may be negative where long deliberation pays off.
- Small, automatically graded sets. 250-problem sets with automatic graders; per-domain numbers rest on 2-118 answers each. The small "general" domain (MMLU-Pro "other" category) moved erratically: v1.2 −6.2 on the held-out set (16 answers), Acc −23.1 on the frontier set (26 answers) but +12.5 on the held-out set. Coding was flat for v1.2 and −6.0 for Acc on the held-out set.
- Shorter reasoning. Answers are about 44% shorter. On answers both models finished, accuracy was unchanged on the held-out set but 3.8 points lower for Acc on the frontier set.
- Scope. English only, reasoning question sets only. Chat quality, tool use, coding beyond MBPP, multilingual ability, long context and safety behaviour were not evaluated.
- Inherited behaviour. Everything from LFM3-1.7B and round2, with no additional safety tuning.
- Runtime. Needs the patched runtime; stock llama.cpp, LM Studio, vLLM and generic Transformers loaders cannot run it.
- Not compared with stock LFM3-1.7B in this harness (see above).
Files
| File | Contents |
|---|---|
round2-v1.2-1.7b-BF16.gguf |
BF16 base weights (five edited) plus round2's FP32 loop parameters, 545 tensors, 3.64 GB |
pytorch/wsp_edit.safetensors |
the five edited tensors (BF16, 2048 × 7680), to replace in Liquid AI's base |
pytorch/wsp_edit.json |
the edit specification and per-layer diagnostics |
pytorch/adapter.safetensors |
round2's 44M loop parameters, unchanged |
pytorch/loop_config.json, pytorch/modeling_lfm3_loop.py |
round2's loop settings and reference implementation, unchanged |
runtime/ |
the llama.cpp patches, identical to round2's |
validation/evaluations/ |
per-problem results: holdout-*, frontier-*, screen-*; Acc15 is this release, base is round2, ctl_* are the random controls |
validation/statistics/ |
paired-bootstrap outputs of both pre-registered tests |
validation/preregistration/ |
the two pre-registrations, as written before each test |
validation/pytorch-recipe-check.json |
checks of the PyTorch recipe |
provenance.json, SHA256SUMS, NOTICE, LICENSE |
provenance, digests, changes, license |
Method credits
The edit and its evaluation follow a "weight-space programming" procedure: directions from contrasts of the model's own activations, compiled into weights as rank-one updates, with a norm-matched random-direction control, a written pre-registration and paired bootstrap statistics. Related ideas: activation steering (Turner et al., 2023; Rimsky et al., 2024) and rank-one weight editing (Meng et al., 2022).
- Downloads last month
- 173
16-bit
Model tree for notfakerv/round2-v1.2-1.7b
Base model
LiquidAI/LFM3-1.7B-Base