/ Модель

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

Контекст
262 144 токена
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.5-0.8B
Библиотека
transformers
Опубликована
21 ноя 2026

qwen3.5-0.8b-scalpello-b2-gdp

Изображение и текст → текст3 профессии
295скачиваний за 30 дней0лайковвеса обновлены21 ноя 2026

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

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

Экспериментально отредактированная версия мультимодальной Qwen3.5-0.8B для диалогов, анализа изображений и решения математических задач.

SCALPELLO-GDP — производная от Qwen3.5-0.8B модель, опубликованная независимым исследователем Джованни Дель Папой в рамках проекта Lo Scienziato Dilettante GDP. Это плотная мультимодальная модель семейства Qwen3.5 с архитектурой Qwen3_5ForConditionalGeneration и примерно 0,8 млрд параметров; она принимает текст и изображения и генерирует текст. Модель ориентирована на диалоги и анализ изображений, а её веса экспериментально отредактированы для улучшения решения математических задач и сокращения повторных проверок в ответах.

Изменение выполнено без дообучения: к выходным проекциям внимания в слоях 12–23 применено отражение Хаусхолдера вдоль вычисленного направления в скрытом пространстве. Изменено около 25,2 млн параметров, остальные веса, включая зрительную часть, сохранены. Автор сообщает о росте точности на своей парной оценке из 384 отложенных математических задач с 9,38% до 53,65%; это не официальный бенчмарк и не гарантия результата на других задачах. Модель поддерживает английский и итальянский языки, интерфейс совместим с Transformers и Qwen3.5-0.8B. Лицензия — Apache-2.0.

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

  • Решение математических задач в диалоге
  • Пошаговые ответы на учебные вопросы по математике
  • Анализ изображений с вопросами на английском языке
  • Анализ изображений с вопросами на итальянском языке

Ограничения

Заявленный прирост измерен на авторской оценке из 384 задач, а не на официальном бенчмарке; переносимость результата на другие наборы задач не установлена. Это компактная модель с 0,8 млрд параметров, поэтому качество может уступать более крупным моделям.

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

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

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

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

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

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

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

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

Открыть на Hugging Face

qwen3.5-0.8b-scalpello-b2-gdp — SCALPELLO-GDP

Autore / Author: Giovanni Del Papa (GDP), ricercatore indipendente, Italia / independent researcher, Italy — progetto / project Lo Scienziato Dilettante GDP.

Link
Articolo / Paper v1.1 (IT, EN, IT+EN) — Zenodozenodo.org/records/24422781 · DOI 10.5281/zenodo.24422781
DOI di tutte le versioni / all versions (sempre l'ultima / always latest)10.5281/zenodo.24416417
Versione 1.0 / Version 1.0zenodo.org/records/24416418 · DOI 10.5281/zenodo.24416418
PDFIT · EN · IT+EN
Ollamaollamagdp/qwen3.5-0.8b-scalpello-b2-gdp — tag latest / q8_0 (Q8_0, 834 MB), bf16 (versione completa / full precision, 1,6 GB)
PostX (v1.1) · LinkedIn · Facebook · Instagram
Pubblicazioni / Publications hubodelpa-pubblicazioni.static.hf.space

IT — Qwen3.5-0.8B con una sola modifica dei pesi in forma chiusa, senza addestramento. La modifica è stata trovata e scritta da un modello di frontiera, gpt-6-astra di OpenAI, usato solo come editor via API (non come insegnante). Su 384 problemi di matematica held-out appaiati (GSM8K train + MATH train): 9,38% → 53,65%, 171 migliorati e 1 peggiorato.

EN — Qwen3.5-0.8B with one closed-form weight edit and no training. The edit was found and written by a frontier model, OpenAI gpt-6-astra, used only as an API editor (not as a teacher). On 384 paired held-out math problems (GSM8K train + MATH train): 9.38% → 53.65%, 171 gains and 1 loss.

Accuracy per held-out cohort


Italiano

Chi fa che cosa

SCALPELLO-GDP è una replica locale della weight-space programming (Takehi, Teoh, Zhang, Khattab, MIT CSAIL, 2 novembre 2026). gpt-6-astra scriveva codice Python eseguito in un kernel CPU senza rete che conteneva i pesi di Qwen3.5-0.8B, e poteva chiedere forward pass su una Tesla T4 locale (16 GB, fp16; 25 passaggi; limite 8.192 token). gpt-6-astra non è stato modificato, non se ne è distillato nulla e non c'è retrieval. Qwen3.5-0.8B non è stato riaddestrato: i suoi pesi cambiano per un calcolo di algebra lineare in forma chiusa.

Pipeline

L'edit («B2 attention-only»)

Nella diagnosi la maggior parte degli errori erano risposte interrotte mentre il modello ricontrollava il proprio lavoro in loop. L'editor ha estratto una direzione unitaria \(u \in \mathbb{R}^{1024}\) di «ricontrollo ripetitivo» nel residual stream (strato 20) e ha applicato una riflessione di Householder — che ribalta il segno della componente lungo \(u\); non è un'inversione delle matrici — alle 12 proiezioni di uscita dell'attenzione degli strati 12–23:

$$W' = \left(I - 2,uu^{\top}\right)W = W - 2,u\left(u^{\top}W\right), \qquad \lVert u \rVert_2 = 1 .$$

Poiché \(H = I - 2uu^{\top}\) è ortogonale, cioè \(H^{\top}H = I\), la norma di Frobenius di ogni matrice è conservata: \(\lVert W' \rVert_F = \lVert W \rVert_F\). Per l'uscita \(y = Wx\) di ciascun blocco vale \(u^{\top}y' = -,u^{\top}y\), mentre la parte ortogonale a \(u\) resta identica.

  • Tensori toccati: model.language_model.layers.{12,13,14,16,17,18,20,21,22}.linear_attn.out_proj.weight (Gated DeltaNet, 9 matrici) e model.language_model.layers.{15,19,23}.self_attn.o_proj.weight (attenzione piena, 3 matrici): 25,2 milioni di parametri (circa il 3% del modello), variazione relativa 6,6–9,2% per tensore.
  • Tutti gli altri tensori, torre visiva inclusa, sono identici bit a bit al modello di partenza. Checkpoint in bf16; i forward sono stati valutati in fp16 (arrotondamento bf16 dei tensori editati circa 0,16% relativo).

Come è stato ottenuto (dai log dell'esecuzione)

  • Non è fine-tuning, pruning o quantizzazione. Nessun gradiente: il kernel girava con torch.set_grad_enabled(False); nel codice dell'editor non compaiono optimizer, fitting, PCA o SVD.
  • Direzione \(u\) (passaggio 4): differenza di medie in un unico passaggio teacher-forced del modello originale su 3 coppie di testi scritte dall'editor (stesso prompt; continuazione produttiva vs ripetitiva «Wait…»), hidden state di indice 20, media sugli ultimi 80 token:

$$d = \overline{h}{\text{ripetitivo}} - \overline{h}{\text{produttivo}}, \qquad u = \frac{d - (d^{\top}\hat g),\hat g}{\left\lVert d - (d^{\top}\hat g),\hat g \right\rVert_2},$$

dove \(\hat g\) è lo stato produttivo medio normalizzato.

  • Scelta (passaggi 5–17, sempre sugli stessi 32 problemi di sviluppo): 12 confronti appaiati di edit diversi più un controllo con direzione casuale. Edit solo MLP: −9,4 punti; \(s = 4\) in \(W' = (I - s,uu^{\top})W\): il modello collassa (0%); solo attenzione con \(s = 2\): +46,9 ± 9,0 punti (15 migliorati, 0 peggiorati); direzione casuale ortogonale sugli stessi tensori: +3,1 ± 5,5. Nessuna regola automatica nell'orchestratore: la scelta l'ha fatta l'editor sulle misure appaiate.
  • Congelato dopo il passaggio 17, prima di ogni valutazione held-out; nei passaggi 18–25 nessun peso è cambiato.

Valutazione (held-out, appaiata)

Non sono i benchmark ufficiali. Sei coorti disgiunte di 64 problemi (32 GSM8K train + 32 MATH train) da file di esercitazione decontaminati, nessuno usato per scegliere l'edit (0 sovrapposizioni con i problemi di sviluppo e tra coorti). Impostazioni identiche per i due modelli: thinking attivo, temperature 0,6, top-p 0,95, top-k 20, presence penalty 1,5, limite 8.192 token, un campione per problema.

OriginaleEditato
Accuratezza, 384 problemi (IC 95% Wilson)9,38% (6,85–12,71)53,65% (48,65–58,57)
GSM8K train (192)10,42%65,62% (106 migliorati / 0 peggiorati)
MATH train (192)8,33%41,67% (65 / 1)
Risposte interrotte al limite91,7%28,1%
Sbagliato→giusto / giusto→sbagliato171 / 1
Forward182122232425
Originale → editato (64 problemi)10,94 → 60,94%14,06 → 64,06%6,25 → 43,75%6,25 → 43,75%9,38 → 54,69%9,38 → 54,69%
Migliorati / peggiorati32 / 032 / 024 / 025 / 129 / 029 / 0

(I forward 24 e 25 hanno gli stessi conteggi per coincidenza, su problemi e uscite diversi.)

Statistiche. Con \(o_i, e_i \in {0,1}\) la correttezza del modello originale e di quello editato sul problema \(i\) e \(d_i = e_i - o_i\):

$$\hat\Delta = \frac{1}{n}\sum_{i=1}^{n} d_i = 44{,}27 \text{ punti}, \qquad \mathrm{SE} = \frac{s_d}{\sqrt{n}} = 2{,}56, \qquad n = 384,$$

IC 95% bootstrap \([39{,}32;\ 49{,}22]\). Test esatto di McNemar sulle coppie discordanti, \(b = 171\) e \(c = 1\):

$$p = 2\sum_{k=0}^{\min(b,c)} \binom{b+c}{k},2^{-(b+c)} = 2,\frac{1 + 172}{2^{172}} \approx 5{,}8\times 10^{-50}.$$

Forest plot

Risposte interrotte

Tutti i 25/25 passaggi sono terminati con codice di uscita 0 e audit di rete CLEAN (0 connessioni). Costo API dell'editor: 8,43 $ su un tetto di 60 $.

Perché il modello è migliorato (sezione 7 dell'articolo v1.1)

  • Sui 171 problemi migliorati il modello originale scriveva in media 13,1 «wait» ogni 1.000 token, il 36,7% delle righe ripeteva una riga precedente e il 99,4% delle risposte arrivava al limite di 8.192 token. Con l'edit, sugli stessi problemi: 1,1 «wait» ogni 1.000 token, 3,3% di righe ripetute, 1,2% al limite, in media 3.211 token.
  • 170 dei 171 guadagni erano problemi in cui il modello originale arrivava al limite senza scrivere alcuna risposta; solo 1 era una risposta completa ma sbagliata. L'edit non aggiunge conoscenza matematica: riduce il ricontrollo in loop e permette di arrivare a una risposta entro il budget.
  • L'unico peggioramento (math:1511) mostra il loop nel verso opposto: il modello editato arriva a 44 (giusto) e poi continua a ricontrollare fino al limite. L'edit sopprime il loop in media, non in ogni caso.
  • La scheda ufficiale di Qwen3.5-0.8B avverte che, in modalità thinking, questo modello è più incline delle altre varianti Qwen3.5 a entrare in loop di ragionamento. Perché lo faccia SCALPELLO non lo verifica.

Meccanismo

Limiti: problemi degli split di esercitazione, non MATH-500 né il test di GSM8K; budget 8.192 token invece di 32.768 (con un budget più lungo il guadagno sarebbe probabilmente minore); un campione, una sola esecuzione. Il campionamento 0,6 è quello del protocollo di Takehi et al., non quello raccomandato da Qwen per il testo in thinking (1,0). Non verificato su modelli Qwen3.5 più grandi.

Licenza: Apache-2.0, ereditata da Qwen3.5-0.8B (LICENSE di Qwen). Articolo CC BY 4.0. Il prompt del compito deriva dall'harness MIT di Takehi et al.


English

Who does what

SCALPELLO-GDP is a local replication of weight-space programming (Takehi, Teoh, Zhang, Khattab, MIT CSAIL, 2 Nov 2026). gpt-6-astra wrote Python run in an offline CPU kernel holding the Qwen3.5-0.8B weights, and could request forward passes on a local Tesla T4 (16 GB, fp16; 25 passes; 8,192-token cap). gpt-6-astra was not modified, nothing was distilled from it, and there is no retrieval. Qwen3.5-0.8B was not retrained: its weights change through a closed-form linear-algebra computation.

Pipeline

The edit ("B2 attention-only")

In the diagnosis most failures were answers cut off while the model re-checked its work in loops. The editor extracted a unit "repetitive re-checking" direction \(u \in \mathbb{R}^{1024}\) in the residual stream (layer 20) and applied a Householder reflection — which flips the sign of the component along \(u\); it is not a matrix inversion — to the 12 attention output projections of layers 12–23:

$$W' = \left(I - 2,uu^{\top}\right)W = W - 2,u\left(u^{\top}W\right), \qquad \lVert u \rVert_2 = 1 .$$

Since \(H = I - 2uu^{\top}\) is orthogonal, i.e. \(H^{\top}H = I\), every matrix keeps its Frobenius norm: \(\lVert W' \rVert_F = \lVert W \rVert_F\). For each block output \(y = Wx\), \(u^{\top}y' = -,u^{\top}y\), while the part orthogonal to \(u\) is unchanged.

  • Tensors: model.language_model.layers.{12,13,14,16,17,18,20,21,22}.linear_attn.out_proj.weight (Gated DeltaNet, 9 matrices) and model.language_model.layers.{15,19,23}.self_attn.o_proj.weight (full attention, 3 matrices): 25.2 M parameters (about 3% of the model), relative change 6.6–9.2% per tensor.
  • Every other tensor, including the vision tower, is bit-identical to the base. Stored in bf16; forward passes were evaluated in fp16 (bf16 rounding of the edited tensors is about 0.16% relative).

How the edit was made (from the run logs)

  • Not fine-tuning, pruning or quantization. No gradients: the kernel ran with torch.set_grad_enabled(False); no optimizer, fitting, PCA or SVD appears in the editor's code.
  • Direction \(u\) (pass 4): a difference of means from one teacher-forced pass of the original model on 3 matched text pairs written by the editor (same prompt; productive vs repetitive "Wait…" continuation), hidden-state index 20, averaged over the last 80 tokens:

$$d = \overline{h}{\text{repetitive}} - \overline{h}{\text{productive}}, \qquad u = \frac{d - (d^{\top}\hat g),\hat g}{\left\lVert d - (d^{\top}\hat g),\hat g \right\rVert_2},$$

where \(\hat g\) is the normalized mean productive state.

  • Selection (passes 5–17, always on the same 32 development problems): 12 paired comparisons of different edits plus a random-direction control. MLP-only: −9.4 pts; \(s = 4\) in \(W' = (I - s,uu^{\top})W\): the model collapses (0%); attention-only with \(s = 2\): +46.9 ± 9.0 pts (15 gains, 0 losses); random orthogonal direction on the same tensors: +3.1 ± 5.5. There was no automatic accept/reject rule in the orchestrator: the editor chose from the paired measurements.
  • Frozen after pass 17, before any held-out evaluation; no weight changed in passes 18–25.

Evaluation (held-out, paired)

These are not the official benchmarks. Six disjoint cohorts of 64 problems (32 GSM8K train + 32 MATH train) from decontaminated practice files, none used to choose the edit (0 overlap with the development problems or between cohorts). Same settings for both models: thinking on, temperature 0.6, top-p 0.95, top-k 20, presence penalty 1.5, 8,192-token cap, one sample per problem.

OriginalEdited
Accuracy, 384 problems (95% Wilson CI)9.38% (6.85–12.71)53.65% (48.65–58.57)
GSM8K train (192)10.42%65.62% (106 gains / 0 losses)
MATH train (192)8.33%41.67% (65 / 1)
Answers cut at the limit91.7%28.1%
Wrong→right / right→wrong171 / 1
Forward182122232425
Original → edited (64 problems)10.94 → 60.94%14.06 → 64.06%6.25 → 43.75%6.25 → 43.75%9.38 → 54.69%9.38 → 54.69%
Gains / losses32 / 032 / 024 / 025 / 129 / 029 / 0

(Forwards 24 and 25 have the same counts by coincidence, on different problems and outputs.)

Statistics. With \(o_i, e_i \in {0,1}\) the correctness of the original and edited model on problem \(i\) and \(d_i = e_i - o_i\):

$$\hat\Delta = \frac{1}{n}\sum_{i=1}^{n} d_i = 44.27 \text{ pts}, \qquad \mathrm{SE} = \frac{s_d}{\sqrt{n}} = 2.56, \qquad n = 384,$$

95% bootstrap CI \([39.32,\ 49.22]\). Exact McNemar test on the discordant pairs, \(b = 171\) and \(c = 1\):

$$p = 2\sum_{k=0}^{\min(b,c)} \binom{b+c}{k},2^{-(b+c)} = 2,\frac{1 + 172}{2^{172}} \approx 5.8\times 10^{-50}.$$

Forest plot

Answers cut off

All 25/25 passes ended with exit code 0 and a CLEAN network audit (0 connections). Editor API cost: $8.43 of a $60 cap.

Why the model improved (paper v1.1, section 7)

  • On the 171 improved problems the original model wrote on average 13.1 "wait" per 1,000 tokens, 36.7% of lines repeated an earlier line and 99.4% of answers hit the 8,192-token limit. With the edit, on the same problems: 1.1 "wait" per 1,000 tokens, 3.3% repeated lines, 1.2% at the limit, 3,211 tokens on average.
  • 170 of the 171 gains were problems where the original model reached the limit without writing any answer; only 1 was a complete but wrong answer. The edit adds no mathematical knowledge: it reduces looping re-checks so the model reaches an answer within the budget.
  • The single loss (math:1511) is the loop the other way round: the edited model reaches 44 (correct) and then keeps re-checking until the limit. The edit suppresses looping on average, not in every case.
  • The official Qwen3.5-0.8B model card warns that in thinking mode this model is more prone than other Qwen3.5 variants to reasoning loops. Why it does so is not tested by SCALPELLO.

Mechanism

Limitations: practice-split problems, not MATH-500 or the GSM8K test set; 8,192-token budget instead of 32,768 (the gain is likely smaller with a longer budget); one sample, one run. Temperature 0.6 is the Takehi et al. protocol, not Qwen's recommended setting for thinking-mode text (1.0). Not tested on larger Qwen3.5 models.

License: Apache-2.0, inherited from Qwen3.5-0.8B (Qwen LICENSE). Paper CC BY 4.0. The task prompt derives from the MIT-licensed harness of Takehi et al.


Uso / Usage

Stessa interfaccia di Qwen3.5-0.8B / same interface as Qwen3.5-0.8B (transformers with Qwen3_5ForConditionalGeneration). Impostazioni della valutazione / evaluation settings: thinking on, temperature 0.6, top-p 0.95, top-k 20, presence penalty 1.5. transformers.generate non ha un argomento presence_penalty / has no presence_penalty argument: la valutazione ha usato questo LogitsProcessor / the evaluation used this LogitsProcessor:

import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer, LogitsProcessor, LogitsProcessorList

class Presence(LogitsProcessor):
    """Presence penalty 1.5 on every token already generated (as in the SCALPELLO run)."""
    def __init__(self, prompt_len, p=1.5):
        self.prompt_len, self.p = prompt_len, p
    def __call__(self, input_ids, scores):
        gen = input_ids[:, self.prompt_len:]
        if gen.shape[1]:
            mask = torch.zeros_like(scores, dtype=torch.bool)
            mask.scatter_(1, gen, True)
            scores = scores - self.p * mask.to(scores.dtype)
        return scores

model_id = "odelpa/qwen3.5-0.8b-scalpello-b2-gdp"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, torch_dtype="auto", device_map="auto")

question = "What is 15 * 17?"
prompt = tok.apply_chat_template(
    [{"role": "user", "content": question + "\nPlease reason step by step, and put your final answer within \\boxed{}."}],
    tokenize=False, add_generation_prompt=True, enable_thinking=True,
)
enc = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(
    **enc, do_sample=True, temperature=0.6, top_p=0.95, top_k=20, max_new_tokens=8192,
    logits_processor=LogitsProcessorList([Presence(enc["input_ids"].shape[1])]),
)
print(tok.decode(out[0][enc["input_ids"].shape[1]:], skip_special_tokens=True))

GGUF / Ollama

ollama run ollamagdp/qwen3.5-0.8b-scalpello-b2-gdp        # latest = Q8_0, 834 MB
ollama run ollamagdp/qwen3.5-0.8b-scalpello-b2-gdp:bf16   # versione completa / full precision, 1.6 GB
  • File in gguf/ (solo testo / text only): qwen3.5-0.8b-scalpello-b2-gdp-BF16.gguf (1,56 GB) e qwen3.5-0.8b-scalpello-b2-gdp-Q8_0.gguf (834 MB), checksum in gguf/SHA256SUMS. Tensori attn_qkv/attn_gate e ssm_beta/ssm_alpha separati (stessi pesi), così caricano anche in Ollama 0.40.x.
  • Il tag Ollama bf16 contiene lo stesso file BF16 di questo repository (SHA-256 05487355…f32b85). / The Ollama bf16 tag is the same BF16 file as in this repo.
  • Verifica 21/11/2026 / Check: Ollama 0.40.13 (Mac mini), decodifica greedy di 96 token su 3 problemi GSM8K: testo identico carattere per carattere a transformers (pesi safetensors, fp32 CPU) per bf16 in 3/3 casi; q8_0 identico in 2/3 (diverge dopo 94 caratteri nel terzo, effetto atteso della quantizzazione). / Greedy 96-token decoding on 3 GSM8K problems: bf16 output character-identical to transformers in 3/3; q8_0 identical in 2/3 (diverges after 94 characters in one, as expected from quantization).

I PDF dell'articolo (IT, EN) e le figure sono anche in paper/ e figures/. / The paper PDFs and figures are also in paper/ and figures/.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
6915dd4

0 моделей