LFM3-1.7B, bf16, as a Radiance container

lfm3-1.7b-bf16.rad is LiquidAI/LFM3-1.7B (revision 0dc4268b561499c648c7ba7c9466bf3d8d01517a) converted with rad-convert for Radiance, an inference server for AMD GPUs. The weights are LiquidAI's, in bf16 as they ship them; only the file format changed. Text, tool calls and reasoning; no vision or audio. An 8-bit container of the same model is at doktersmol/lfm3-1.7b-iq8r.

file lfm3-1.7b-bf16.rad, 4,079,820,800 bytes
sha256 904d0eea1e2fa0f91fd6c613167a3667de96005f39668eb4bc2d719f9ef5c9e8
needs Radiance 2.2.0 or later (the lfm3_bf16 plugin, merged in #449)
context 262,144 tokens

Run

# radiance.yaml
server:
  host: 127.0.0.1      # the default is 0.0.0.0
  port: 8000
models:
  lfm3-1.7b-bf16:
    model: doktersmol/lfm3-1.7b-bf16      # or a path to the .rad file
radiance --config radiance.yaml

How this file was made

rad-convert <LiquidAI/LFM3-1.7B snapshot at 0dc4268b> -o lfm3-1.7b-bf16.rad

There is no recipe: every weight is the checkpoint's own, and rad-info lfm3-1.7b-bf16.rad says so. Converted on 2026-11-11.

What was checked

Against a CPU float32 forward of LiquidAI's own modelling code at the revision above, with prompts and limits frozen before the run: 20 prompts of 64 to 262,128 tokens, chat-template prompts included. Details, tables and figures are in #449.

device library outcome mean KL to f32, text of 64 to 8,192 tokens decode, one stream
Radeon AI PRO R9700 (gfx1201) libr4d PASS 1.6e-4 to 6.9e-4 122 tok/s (210 W cap, eGPU)
Radeon 8060S (gfx1151, Strix Halo) libhalo PASS 1.7e-4 to 5.8e-4 54 tok/s
Ryzen 7 7735HS, CPU only libavx PASS 1.7e-4 to 7.0e-4 6.4 tok/s

At 32,768, 131,072 and 262,128 tokens the mean KL is 1.2e-4, 3.2e-4 and 3.7e-4 on the R9700 (the longest was not run on the CPU).

Radeon 860M (RDNA3 iGPU, libr3d): tested, with one failed check

This needs libr3d changes that are not in a Radiance release yet: pull request #578. Checked the same way to 8,192 scored tokens on a Framework 13:

libr3d as shipped (no tune cache) libr3d with a rad-tune cache
PASS FAIL: one check of 32

With a tune cache this container is far from f32 at one position of one prompt: position 245 of a 721-token reasoning chat prompt, where the model has to recall a variable name and the f32 reference itself is split (its top token has p = 0.67). There the tuned run puts p = 0.05 on that token (KL 2.08), which lifts the mean KL over positions 240 to 320 to 2.83e-2 against a limit of 2.02e-2. Every other check of that run passes, and 3,273 of 3,275 greedily generated tokens are the reference's own choice. The limit was not changed and the run was not repeated for a pass.

rad-tune moves the bf16 GEMM to another kernel arm. Both arms agree with the reference kernels on every launch and each is within one bf16 rounding step of them; they do not round alike, and at this nearly undecided position that moves the answer.

Without a tune cache bf16 decodes at about 1.8 tok/s on this chip; with one at 13 to 14 tok/s. So the configuration that passed is not the one people will run. If you need the checked behaviour on an 860M, use the 8-bit container, which passes both ways and needs no tune cache, or this one without a tune cache.

Speed on the 860M with a tune cache, one stream: 14.0 tok/s in power-saver, 14.7 in balanced. With 32,768 tokens of context decode is 7.8 (power-saver) and 8.6 (balanced) tok/s and the first token takes 102 s and 87 s. No prompt longer than 16,384 tokens was scored on this chip, and no other RDNA3 iGPU was tested.

Limits

  • Raw completions should start with the BOS token (<|startoftext|>), as the chat template does. LiquidAI's tokenizer files set no add_bos_token, so this container has add_bos off and /v1/completions runs a raw prompt as written. Without BOS some first tokens put the model where every bf16 implementation I tried, LiquidAI's own code in bf16 included, departs from f32 over the first few dozen positions. Chat requests are not affected.
  • On the GPUs greedy text can differ by a near-tie token when the step composition changes (prompt lookup, concurrent requests). The CPU path does not.
  • Speeds are single machines under the conditions named; they are not benchmarks of the hardware.

License

LiquidAI's LFM Open License v1.0, a copy of which is in this repository. This file is a format conversion of LiquidAI's weights and is distributed under the same terms, including the license's limit on commercial use. Changes made: the checkpoint was converted to Radiance's container format; no weight was retrained or altered beyond that.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for doktersmol/lfm3-1.7b-bf16

Finetuned
(116)
this model