{"version":1,"type":"story","url":"https://digestai.news/story/xhtoken-releases-spark-x2-6-4b-a-4b-on-device-language-model","json":"https://digestai.news/story/xhtoken-releases-spark-x2-6-4b-a-4b-on-device-language-model.json","markdown":"https://digestai.news/story/xhtoken-releases-spark-x2-6-4b-a-4b-on-device-language-model.md","slug":"xhtoken-releases-spark-x2-6-4b-a-4b-on-device-language-model","headline":"XHToken releases Spark-X2.6-4B, a 4B on-device language model","summary":"XHToken posted Spark-X2.6-4B on Hugging Face, a compact 4B‑parameter model designed for on‑device deployment. It builds on the Spark‑X2.5-4B architecture and gains capability through improved post‑training.\n\nThe release notes stronger coding, agentic, long‑context, multilingual and reasoning abilities, claiming state‑of‑the‑art performance among similarly sized open‑source models and matching or surpassing models with approximately 9B parameters on several benchmarks. The model offers three configurable thinking levels—none, low, high—and supports a maximum context length of 1,048,576 tokens. The repository provides installation via transformers==4.57.1, example code with maxnewtokens 131072, and Docker images such as lmsysorg/sglang:nightly-dev-cu13-20260827-20621aa1 and Ascend images for NPUs. Additional support for Apple silicon, Linux CPU and NVIDIA CUDA is available through Spark‑MLX‑LLM, with optional use of Ollama (v0.34.1+) or LM Studio (0.4.0+). The model series is released under the Apache 2.0 License.","keyPoints":["Spark-X2.6-4B is a 4B‑parameter on‑device LLM released by XHToken on Hugging Face.","It claims state‑of‑the‑art performance among 4B models and matches 9B models on several benchmarks.","The model supports up to 1,048,576‑token context and three thinking levels (none, low, high) via the provided Docker images."],"whyItMatters":"Providing a high‑quality 4B LLM with long‑context and configurable reasoning makes advanced AI capabilities accessible on mobile and edge devices, expanding on‑device applications for developers.","category":{"slug":"models","name":"Generative AI & Models","url":"https://digestai.news/category/models"},"entities":{"companies":["XHToken","Hugging Face","lmsysorg","Ascend","NVIDIA","Apple"],"models":["Spark-X2.6-4B","Spark-X2.5-4B","Qwen3.5-4B","Gemma-E4B","llama.cpp","Spark-MLX-LLM"],"people":["SparkLLM Team"]},"firstPublishedAt":"2026-10-20T18:50:53Z","updatedAt":"2026-10-20T18:50:53Z","sourceCount":1,"hasPrimarySource":true,"sources":[{"outlet":"huggingface.co","title":"XHToken/Spark-X2.6-4B · Hugging Face","url":"https://huggingface.co/XHToken/Spark-X2.6-4B","publishedAt":"2026-10-20T18:50:53Z","type":"primary","primary":true,"lead":true}],"sourceNotes":null,"discussions":[{"site":"Reddit","url":"https://www.reddit.com/r/LocalLLaMA/comments/1xb0nr9/xhtokensparkx264b_hugging_face/","points":null}],"thread":null,"cite":{"text":"Digest AI, \"XHToken releases Spark-X2.6-4B, a 4B on-device language model\", 20 October 2026, https://digestai.news/story/xhtoken-releases-spark-x2-6-4b-a-4b-on-device-language-model","publisher":"Digest AI","title":"XHToken releases Spark-X2.6-4B, a 4B on-device language model","datePublished":"2026-10-20T18:50:53Z","url":"https://digestai.news/story/xhtoken-releases-spark-x2-6-4b-a-4b-on-device-language-model"},"generatedBy":"Written by Digest AI's editorial model from the linked sources; the sources are the record.","license":"Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse"}