Skip to content

SmaLLM 0.3.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 21:56
· 17 commits to main since this release
  • Prompt threads. Prompts are read on every physical core, efficiency
    cores included, while generation stays on the performance cores.
    --threads-batch (and the threads-batch setting) chooses the count.
    Prompts read about 28 percent faster on an Intel Core i7-14700K.
  • Embeddings and reranking. BERT and nomic-bert models run with
    smallm embed and smallm rerank, and the server answers
    /v1/embeddings and /v1/rerank. Their vectors and scores match
    llama.cpp's (cosine similarity 0.9999996 or better).
  • Encoder tokenizers. WordPiece (BERT) and Unigram (T5, XLM-RoBERTa),
    both matching llama.cpp token for token on its test texts.
  • Weight formats. The i-quants IQ1_S, IQ1_M, IQ2_XXS, IQ2_XS, IQ2_S,
    IQ3_XXS, IQ3_S and IQ4_XS, the ternary TQ1_0 and TQ2_0, and MXFP4. Each
    expands to exactly ggml's numbers, which a test checks for every format.
  • Gemma 2 and Phi. gemma2 caps attention scores and windows every
    other layer. phi3 covers Phi-3, Phi-3.5 and Phi-4-mini, with LongRoPE's
    two sets of rotary divisors chosen by the context length. phi2 covers
    Phi-2 and Phi-1.5: LayerNorm, and attention and the feed-forward network
    side by side.
  • gpt-oss. Attention sinks, biased experts, OpenAI's clamped SwiGLU and
    the Harmony chat format. MXFP4, IQ4_NL and IQ4_XS got AVX2 and NEON
    kernels, so gpt-oss-20b generates about as fast as llama.cpp and reads
    prompts faster.
  • DeepSeek. deepseek2 (DeepSeek V2, V2-Lite, V3, R1, Moonlight, Kimi)
    with latent attention, whose cache holds one compressed row per position:
    4.4 times smaller than llama.cpp's for older files. V3's routing by
    groups of experts. deepseek for DeepSeek-MoE-16B. The DeepSeek V2 and
    Kimi chat formats.
  • Mamba. mamba (with Falcon Mamba), mamba2, and granitehybrid
    (IBM Granite 4.0 H, Mamba 2 blocks with attention and experts). Mamba
    2.8B holds 88 MB of its own memory, where llama.cpp holds 1,436 MB.
  • RWKV. rwkv6 and rwkv7, with the RWKV World tokenizer and chat
    format. RWKV-7 1.5B holds 38 MB of its own memory against llama.cpp's
    723 MB.
  • Recurrent states of Mamba and RWKV blocks are saved just before the
    last token of each prompt, so the next turn of a chat, or an answer
    asked for again, does not read the conversation again.
  • Half the cache memory. The key/value cache keeps 16-bit floats, as
    llama.cpp does. A full 4,096-token context of Llama 3.2 1B now holds
    176 MB of SmaLLM's own memory instead of 310 MB (llama.cpp: 636 MB), and
    generation there is about 14 percent faster. --cache-type f32 (and the
    cache-type setting, and cache_type in the C API) keeps 32-bit floats.
  • YaRN position scaling, which gpt-oss and DeepSeek use and some Qwen
    files ask for.
  • Docs. The contributor guide moved to docs/CONTRIBUTING.md, next to
    a new docs/DEVELOPMENT.md on running and measuring SmaLLM on
    single-board computers. .gitignore covers key and environment files.
  • Reasoning. What thinking models write before their answer (between
    <think> tags, or on Harmony's analysis channel) is shown faint in a
    chat and kept out of the conversation. The server returns it as
    reasoning_content, as llama.cpp does.