XHToken/Spark-X2.6-1.7B-GGUF
- License
- apache-2.0
- Size
- not mirrored yet
No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from XHToken/Spark-X2.6-1.7B-GGUF
All models by XHToken →No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from XHToken/Spark-X2.6-1.7B-GGUF
All models by XHToken →We introduce Spark-X2.6-1.7B, the second model in the Spark-X2.6 series, following the release of Spark-X2.6-4B. Building on Spark-X2.5-1.7B, this release further advances our compact, general-purpose language models for on-device deployment.
Spark-X2.6-1.7B retains exactly the same architecture as Spark-X2.5-1.7B, achieving its capability gains through improved post-training. It delivers substantial improvements in coding, agent, long-context, multilingual, reasoning, etc. These capability gains, combined with strong inference efficiency among models of comparable size, enable more capable and practical on-device AI for developers and users tackling real-world tasks.
Technical Highlights:
We evaluate our models and compare them with leading on-device models of similar size across a broad range of tasks, including agent, code, math, general and knowledge. Spark-X2.6-1.7B surpasses models of comparable size on most benchmarks, delivering state-of-the-art results.
Spark-X2.6-1.7B delivers leading decoding throughput at shorter context lengths among the on-device models we evaluated, including Qwen3.5-2B, MiniCPM-2B, and LFM2.5-2.6B. Moreover, our optimized llama.cpp implementation(https://github.com/XHToken/llama.cpp) amplifies this performance advantage across all tested context lengths on the RTX 4090, underscoring its strong efficiency for responsive local AI.
Install the required version with pip install transformers==4.57.1.
The examples below serve a local Spark-X2.6-1.7B checkpoint. Set MODEL_PATH to its absolute path before starting a container:
Use the pre-built image that tracks the Spark-X2.6 runtime:
The following commands start an OpenAI-compatible API server configured for a maximum context length of 1,048,576 tokens. This setting requires sufficient device memory; reduce --context-length when necessary.
Thinking is enabled by default by both the chat template and the Qwen3 reasoning parser. To disable thinking for a specific request, set "chat_template_kwargs": {"enable_thinking": false}.
vLLM provides an official Docker image for NVIDIA GPU deployment:
For Ascend NPUs, choose an official image for the fastest setup.
Install the Spark plugin inside the container:
Spark-MLX-LLM runs the original Spark-X2.6 Hugging Face checkpoints locally. It supports Apple silicon GPU, Linux CPU, and NVIDIA CUDA on Linux. No GGUF conversion is required.
[!NOTE] Native
spark2_5support requires llama.cppb10828or later.
Run the model in the CLI:
Launch the OpenAI-compatible API server:
Download and install Ollama from ollama.com (v0.34.1 or later).
Run the model:
Download and install LM Studio from lmstudio.ai (0.4.0 or later).
Search for "Spark-X2.6" in LM Studio and download the model.
Load the model and start chatting.
[!NOTE] The latest Unsloth Studio supports native Spark-X2.6 GGUF inference.
We recommend using Llama-Factory to fine-tune the model.
The Spark-X2.6 model series is licensed under the Apache 2.0 License [blocked].
If you find our work helpful, feel free to give us a cite.
from transformers import AutoModelForCausalLM, AutoTokenizermodel_id = "XHToken/Spark-X2.6-1.7B"tokenizer = AutoTokenizer.from_pretrained(model_id)model = AutoModelForCausalLM.from_pretrained( model_id, trust_remote_code=True, torch_dtype="auto", device_map="auto",)messages = [{"role": "user", "content": "What is the capital of Anhui Province?"}]inputs = tokenizer.apply_chat_template( messages, tokenize=True, add_generation_prompt=True, enable_thinking=True, return_dict=True, return_tensors="pt",).to(model.device)outputs = model.generate( **inputs, max_new_tokens=131072, do_sample=True, temperature=1.0, top_p=0.95, top_k=0,)print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))export MODEL_PATH=/absolute/path/to/Spark-X2.6-1.7Bdocker pull lmsysorg/sglang:nightly-dev-cu13-20260827-20621aa1# A3 daily buildexport SGLANG_IMAGE=quay.io/ascend/sglang:main-cann9.0.0-a3
# A2 daily build (use this instead on A2 hardware)export SGLANG_IMAGE=quay.io/ascend/sglang:main-cann9.0.0-910b
docker pull "$SGLANG_IMAGE"docker run --rm -it \ --gpus '"device=0"' \ --ipc=host \ -p 30000:30000 \ -v "$MODEL_PATH:/root/Spark-X2.6-1.7B:ro" \ lmsysorg/sglang:nightly-dev-cu13-20260827-20621aa1 \ python -m sglang.launch_server \ --model-path /root/Spark-X2.6-1.7B \ --served-model-name spark2.6 \ --tool-call-parser spark25 \ --reasoning-parser qwen3 \ --tp-size 1 \ --mem-fraction-static 0.8 \ --context-length 1048576 \ --chat-template /root/Spark-X2.6-1.7B/chat_template.jinja \ --host 0.0.0.0 \ --port 30000docker run -it --rm -e ASCEND_USE_FIA=1 --network=host --ipc=host --shm-size=16g \ --device=/dev/davinci0 --device=/dev/davinci1 --device=/dev/davinci2 --device=/dev/davinci3 \ --device=/dev/davinci4 --device=/dev/davinci5 --device=/dev/davinci6 --device=/dev/davinci7 \ --device=/dev/davinci8 --device=/dev/davinci9 --device=/dev/davinci10 --device=/dev/davinci11 \ --device=/dev/davinci12 --device=/dev/davinci13 --device=/dev/davinci14 --device=/dev/davinci15 \ --device=/dev/davinci_manager \ --device=/dev/devmm_svm \ --device=/dev/hisi_hdc \ --volume /usr/local/sbin:/usr/local/sbin \ --volume /usr/local/Ascend/driver:/usr/local/Ascend/driver \ --volume /usr/local/Ascend/firmware:/usr/local/Ascend/firmware \ --volume /etc/ascend_install.info:/etc/ascend_install.info \ --volume /var/queue_schedule:/var/queue_schedule \ --volume ~/.cache/:/root/.cache/ \ --volume "$MODEL_PATH:/root/Spark-X2.6-1.7B:ro" \ --entrypoint=python \ "$SGLANG_IMAGE" \ -m sglang.launch_server \ --model-path /root/Spark-X2.6-1.7B \ --served-model-name spark2.6 \ --tool-call-parser spark25 \ --reasoning-parser qwen3 \ --tp-size 1 \ --mem-fraction-static 0.8 \ --context-length 1048576 \ --chat-template /root/Spark-X2.6-1.7B/chat_template.jinja \ --host 0.0.0.0 \ --port 30000curl -s http://localhost:30000/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "spark2.6", "messages": [ { "role": "user", "content": "安徽的省会在哪里?" } ], "max_tokens": 131072, "temperature": 1, "top_k": -1, "top_p": 0.95, "repetition_penalty": 1, "presence_penalty": 0, "frequency_penalty": 0 }'docker run --rm --gpus all \ --ipc=host \ -p 30000:30000 \ -v "$MODEL_PATH:/models/Spark-X2.6-1.7B:ro" \ vllm/vllm-openai:latest \ --model /models/Spark-X2.6-1.7B \ --port 30000 \ --trust-remote-code \ --served-model-name spark25 \ --tensor-parallel-size 1 \ --gpu-memory-utilization 0.7 \ --enable-prefix-caching \ --chat-template /models/Spark-X2.6-1.7B/chat_template.jinjaexport IMAGE=quay.io/ascend/vllm-ascend:nightly-maindocker pull "$IMAGE"
export DEVICE=/dev/davinci0export MODEL_CACHE="${HOME}/.cache"
mkdir -p "$MODEL_CACHE"
docker run --rm \ --name vllm-ascend \ --shm-size=1g \ --device "$DEVICE" \ --device /dev/davinci_manager \ --device /dev/devmm_svm \ --device /dev/hisi_hdc \ -v /usr/local/dcmi:/usr/local/dcmi \ -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \ -v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \ -v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \ -v /etc/ascend_install.info:/etc/ascend_install.info \ -v "$MODEL_CACHE:/root/.cache" \ -p 8000:8000 \ -it "$IMAGE" bashexport IMAGE=quay.io/ascend/vllm-ascend:nightly-main-a3docker pull "$IMAGE"
export DEVICE0=/dev/davinci0export DEVICE1=/dev/davinci1export MODEL_CACHE="${HOME}/.cache"
mkdir -p "$MODEL_CACHE"
docker run --rm \ --name vllm-ascend \ --shm-size=1g \ --device "$DEVICE0" \ --device "$DEVICE1" \ --device /dev/davinci_manager \ --device /dev/devmm_svm \ --device /dev/hisi_hdc \ -v /usr/local/dcmi:/usr/local/dcmi \ -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \ -v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \ -v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \ -v /etc/ascend_install.info:/etc/ascend_install.info \ -v "$MODEL_CACHE:/root/.cache" \ -p 8000:8000 \ -it "$IMAGE" bashexport IMAGE=quay.io/ascend/vllm-ascend:nightly-main-a5docker pull "$IMAGE"
export MODEL_CACHE="${HOME}/.cache"
mkdir -p "$MODEL_CACHE"
docker run --rm \ --name vllm-ascend \ --net=host \ --shm-size=1g \ --device /dev/davinci0 \ --device /dev/davinci_manager \ --device /dev/devmm_svm \ --device /dev/hisi_hdc \ -v /usr/local/dcmi:/usr/local/dcmi \ -v /usr/local/Ascend/driver/tools/hccn_tool:/usr/local/Ascend/driver/tools/hccn_tool \ -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \ -v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \ -v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \ -v /etc/ascend_install.info:/etc/ascend_install.info \ -v "$MODEL_CACHE:/root/.cache" \ -it "$IMAGE" bashpip install uvuv venv ~/spark2_6source ~/spark2_6/bin/activategit clone https://github.com/XHToken/Spark-plugin.gitcd ./Spark-pluginuv pip install .vllm serve "/models/Spark-X2.6-1.7B" \ --port "30000" \ --trust-remote-code \ --served-model-name spark25 \ --tensor-parallel-size 1 \ --gpu-memory-utilization 0.7 \ --enable-prefix-caching \ --chat-template /models/Spark-X2.6-1.7B/chat_template.jinjacurl -s http://127.0.0.1:30000/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "spark25", "messages": [{"role": "user", "content": "What is the capital of Anhui Province?"}], "temperature": 1.0, "top_k": -1, "top_p": 0.95 }'git clone https://github.com/XHToken/Spark-MLX-LLM.gitcd Spark-MLX-LLM
python3 -m venv .venvsource .venv/bin/activate
# Apple siliconpython -m pip install -e .# Linux CPUpython -m pip install -e '.[cpu]'# Linux with CUDA 12python -m pip install -e '.[cuda12]' # Linux with CUDA 13python -m pip install -e '.[cuda13]'spark-mlx-generate \ --device gpu \ --dtype bfloat16 \ --model XHToken/Spark-X2.6-1.7B \ --prompt "What is the capital of Anhui Province?" \ --max-tokens 512 \ --temp 0llama cli -m /path/to/Spark-X2.6-1.7B-GGUFllama serve -m /path/to/Spark-X2.6-1.7B-GGUFollama run SparkLLM/Spark-X2.6-1.7B# List available modelslms ls
# Run chat with Spark-X2.6lms chat spark-x2.6@misc{sparkx2.6, title = {Spark-X2.6-4B&1.7B: Advancing the Frontier of On-Device Agents for Real-World Tasks}, author = {SparkLLM Team}, year = {2026}}