LFM2.5-350M-q4f32_1-MLC
This is Liquid AI's LFM2.5 350M model in MLC format q4f32_1.
It supports text generation in WebLLM.
The package context window is 128,000 tokens, with a prefill chunk size of 1,024. The proposed WebLLM record defaults to 4,096 tokens to limit memory use.
The q4f32_1 variant does not require WebGPU's shader-f16 feature.
Matching WebGPU candidates use v0_2_87 and web-runtime 0.28.0-dev2; see library provenance.
Converted to MLC format from the original weights. See LICENSE (LFM Open License v1.0), including the commercial-use limitation in section 5.
Sampling uses the MLC defaults (upstream sets none): temperature 1.0, top_p 1.0, repetition_penalty 1.0. Liquid AI recommends temperature 0.1 and repetition_penalty 1.05.
Conversion and WebGPU sources
- Model:
9e6c6ccf47cd. - TVM release base:
be03dc94b001; used for weight conversion; the local Metal timer patch is recorded in the build information. - Weight-conversion MLC-LLM:
5e824377af7f.
Weights were converted with the sources above; WebGPU libraries were compiled separately with the source revisions in the linked library provenance.
Reproduce the conversion
With the conversion toolchain above installed and the pinned HF revision downloaded:
mlc_llm convert_weight hf/LFM2.5-350M --quantization q4f32_1 --device cpu -o dist/LFM2.5-350M-q4f32_1-MLC
mlc_llm gen_config hf/LFM2.5-350M --quantization q4f32_1 --conv-template lfm2 --context-window-size 128000 --prefill-chunk-size 1024 -o dist/LFM2.5-350M-q4f32_1-MLC
These are equivalent regeneration commands. The shipped configuration was retained from the original generation and adjusted to the maximum context and 1,024-token chunk; its SHA256 is recorded below in the build information.
mlc-build-info.json records the full revisions and source weight checksum.
See the upstream model card for model capabilities, evaluations, and limitations, and the WebLLM documentation for runtime usage.