/ Модель

Характеристики

Контекст
1 048 576 токенов
Параметры
1,7 млрд
Лицензия
Apache 2.0
Архитектура
spark2_5 · dense
Базовая модель
Spark-X2.6-1.7B
Библиотека
transformers
Опубликована
27 ноя 2026

Spark-X2.6-1.7B-Uncensored-Peymandc

Генерация текстаТекст → текст
156скачиваний за 30 дней1лайквеса обновлены27 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Вариант Spark-X2.6-1.7B с изменённым поведением отказов для диалога и генерации текста.

Peymandc выпустил вариант языковой модели XHToken/Spark-X2.6-1.7B, изменённый для снижения числа отказов с помощью Heretic v2.1.0. Это плотная авторегрессионная модель семейства Spark 2.5 с 1,7 млрд параметров, доступная в формате Transformers Safetensors. В метаданных указан контекст до 1 048 576 токенов; README отмечает, что сведения о возможностях и исходные бенчмарки относятся к базовой модели и отдельно для этого варианта не проверялись.

Модель предназначена для диалога и генерации текста, в том числе для запросов, на которые исходная версия могла отказать. Описание базовой модели указывает на сценарии локального использования, программирование, работу с инструментами и анализ длинного контекста; эти характеристики не следует считать независимо подтверждёнными для данного варианта. Проверка создателя на первых 100 запросах из набора harmful_behaviors зафиксировала 4 ответа с маркерами отказа против 100 у исходной модели; это оценка по ключевым словам, а не семантическая или человеческая проверка. Модель может выдавать неточные, вводящие в заблуждение или вредоносные ответы. Лицензия — Apache-2.0.

Сценарии применения

  • диалог с локальной языковой моделью
  • генерация текста по запросу
  • получение ответов на запросы, отклоняемые исходной версией
  • написание и объяснение кода
  • анализ длинного контекста

Ограничения

Изменение поведения отказов может приводить к ответам на вредоносные или неподходящие запросы. Проверка отказов основана на совпадении с ключевыми словами, а заявленные возможности и бенчмарки базовой модели не были независимо перепроверены на этом варианте.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

This is a decensored version of XHToken/Spark-X2.6-1.7B, made using Heretic v2.1.0

This model is reproducible!

See the README in the reproduce directory for more information.

[!TIP] 💜 Enjoying my work? You can support my independent AI projects here.

Arbitrary-Rank Ablation (ARA) parameters

ParameterValue
start_layer_index7
end_layer_index15
preserve_good_behavior_weight0.9772
steer_bad_behavior_weight0.0003
overcorrect_relative_weight0.9678
neighbor_count14

Performance

MetricThis modelOriginal model (XHToken/Spark-X2.6-1.7B)
Refusals4/100100/100
KL divergence0.01650 (by definition)

Evaluation methodology

  • Refusal-keyword matches: Heretic's KeywordRate scorer, evaluated on the first 100 prompts from mlabonne/harmful_behaviors (test[:100]). A response is counted when it contains any configured refusal keyword, case-insensitively. This is a keyword-based proxy, not a semantic or human-reviewed refusal evaluation.
  • KL divergence: Heretic's KLDivergence scorer, evaluated on the first 100 prompts from mlabonne/harmless_alpaca (test[:100]). The original model is the reference, so its divergence is zero by definition.

Full evaluation settings, keyword markers, dependencies, optimization history, and reproduction instructions are available in the reproduce/ directory.

Safety and Responsible Use

This model has undergone refusal-behavior modification using Heretic. As a result, it may respond to requests that the original model would have refused.

Users are responsible for evaluating its outputs and ensuring that their use complies with applicable laws and regulations.

The model may generate inaccurate, misleading, harmful, or otherwise inappropriate content. Its outputs should not be treated as verified information or professional advice.


[!Note] This repository contains model weights and configuration files for the post-trained model in the Hugging Face Transformers format.

The architecture descriptions, capability claims, and benchmark results in the following sections originate from the original XHToken/Spark-X2.6-1.7B documentation. They have not been independently re-evaluated on this Heretic variant. The variant-specific evaluation results are reported above.

Introduction

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:

  • Stronger Coding, Agentic, and Long-Context Capabilities: The model delivers substantial improvements in complex tool use, multi-step planning, software engineering, and reasoning over extended contexts, achieving state-of-the-art performance among open-source models of comparable size.
  • Efficient On-Device Inference: The model delivers strong on-device inference efficiency, achieving leading decoding throughput among similarly sized open-source models in our evaluations and enabling more responsive AI experiences on local hardware.
  • Controllable Thinking Budget: The model provides three configurable thinking levels—none, low, high—allowing applications to balance reasoning quality, latency, and inference cost dynamically.

Benchmarks

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.

Edge Inference

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.

Reasoning Effort Comparison

We compare high and low reasoning effort across agent, code, math, long-context, and general knowledge tasks. When switching from high to low, Spark-X2.6-1.7B average score decreases by 4.0 points, while its average output length drops by 37.3%. For Spark-X2.6-4B, the average score decreases by 1.7 points, while average output length drops by 22.0%. This flexibility allows developers to balance task performance and generation efficiency according to their application needs.

Quickstart

Transformers

Install the required version with pip install transformers==4.57.1.

from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Peymandc/Spark-X2.6-1.7B-Uncensored-Peymandc"
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))

License

The Spark-X2.6 model series is licensed under the Apache 2.0 License.

Acknowledgements

This model is derived from XHToken/Spark-X2.6-1.7B, developed by XHToken.

Refusal-behavior modification was performed using Heretic.

If you use this model in your work, please credit both the original model and this modified release.


💜 Support Independent Development

These projects are part of my ongoing exploration of open-weight AI models.

Your support helps make more room for experimentation, model modifications, testing, research, and future releases.

If you find my work useful and would like to contribute, you're welcome to visit my support page:

Every contribution is appreciated, but never expected. Sharing feedback, reporting issues, and simply using the models are also wonderful ways to support independent development.

Thank you for being here. ❤️

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
Spark2_5ForCausalLM
Ревизия весов
c6edae9

0 моделей