← back to vectors · registered 2026-11-23

msuiche/Qwen2.5-1.5B-Instruct-GLP-demo

msuiche Qwen 1 file apache-2.0
API coming soon

Everything on this page as JSON, in the same shape as the /models API. The vectors endpoint arrives in a later release.

curl -H "Authorization: Bearer $ABL_KEY" \
  https://abliteration.org/api/v1/vectors/msuiche%2FQwen2.5-1.5B-Instruct-GLP-demo

Vector types 1 files · 1 set

This repo contains 1 vector file organized into 1 set.

unclassified 1 file
See all sets in the Files tab →
Repo downloads
174
on Hugging Face
Likes
0
Repo age
5 days
first commit 2026-11-19
Latest commit
2026-11-19
8 commits
Activity over time · commits, cumulative
Historical download data: coming soon
Now 8 → from 1 ↑ 700%
1369 1 on Nov 19 8 on Nov 19 Nov
Nov 19 → Nov 19 · 8 snapshots · spans 0 days

Compatible base models 1 base model

The models these vectors were made for. A vector loads on any model of the same shape; fine-tunes of these bases usually work too.

Genealogy

Above: repos this one's README cites. Below: vector repos that cite this one.

Derived from

No source repo named in the README.

↓
msuiche/Qwen2.5-1.5B-Instruct-GLP-demo
↓
Derived vectors

No derived vectors in catalog yet.

Metadata

Licence
apache-2.0
Use, modify and redistribute, including commercially, with attribution.
Method
Not yet classified
Size
166 KB
1 file, 166 KB each on average
Base model
Qwen/Qwen2.5-1.5B-Instruct

Related

Total size
166 KB
Files
1
Sets
1
Registered
2026-11-23
Last updated on HF
2026-11-19

Files by set base model × axis

Qwen2.5-1.5B-Instruct-GLP-demo

unclassified base model in catalog 1 file · 166 KB
Vectorqwen2.5-1.5b-instruct-refusal-cvec.gguf 166 KB 8308e11b download ↓
llama-cli -m <model>.gguf \
  --control-vector qwen2.5-1.5b-instruct-refusal-cvec.gguf

Auxiliary files

README.md 3.27 KB read

README current version from Hugging Face

Author's description, verbatim. Source: huggingface.co/msuiche/Qwen2.5-1.5B-Instruct-GLP-demo ↗

Qwen2.5-1.5B-Instruct — GLP-instrumented (weightless browser demo)

This is Qwen/Qwen2.5-1.5B-Instruct exported to ONNX (q4f16, WebGPU) with
GLP projection nodes inserted into the graph, for the
weightless live browser demo.

The base weights are untouched (quantized from the stock checkpoint,
revision 989aa7980e4cf806f80c7fef2b1adb7bc71aa306). What is added is the
GLP steering mechanism, as graph operations plus a scalar input:

h <- h - glp_alpha * (h . d) d      # per steered layer, post-layer residual
  • glp_alpha is a runtime scalar graph input: 0 = stock (the projection
    vanishes), 1 = steered. The demo toggles it and re-runs the prompt.
  • The per-layer unit directions d (27 layers, n_embd = 1536) ship inside
    the graph as constant initializers — data, not weight edits.
  • The directions come from the included GLP vector
    qwen2.5-1.5b-instruct-refusal-cvec.gguf (170 KB), derived with
    captain-vector (difference-of-means, AdvBench-vs-Alpaca, held-out and
    random-direction-control validated). Spec: docs/spec/GLP.md in weightless.

Why

Stock Qwen2.5-1.5B-Instruct refuses many harmful prompts even at Q4. With
glp_alpha = 1 the same weights answer them. The demo shows the flip live in
the browser — no server, no adapter, no weight modification.

Usage (transformers.js)

import { AutoModelForCausalLM, AutoTokenizer, Tensor, env } from '@huggingface/transformers';

const modelId = 'msuiche/Qwen2.5-1.5B-Instruct-GLP-demo';
const tok = await AutoTokenizer.from_pretrained(modelId);
const model = await AutoModelForCausalLM.from_pretrained(modelId, {
  dtype: 'q4f16',
  model_file_name: 'qwen25-glp-instrumented',
  device: 'webgpu',
});
// glp_alpha is an extra graph input; forward it through generate()'s loop.
model.forward_params.push('glp_alpha');

async function chat(prompt, alpha) {
  const text = tok.apply_chat_template([{ role: 'user', content: prompt }],
    { tokenize: false, add_generation_prompt: true });
  const inputs = tok(text);
  const out = await model.generate({
    ...inputs,
    glp_alpha: new Tensor('float32', new Float32Array([alpha]), [1]),
    max_new_tokens: 200, do_sample: false,
  });
  return tok.decode(out.data.slice(inputs.input_ids.dims[1]), { skip_special_tokens: true });
}

console.log(await chat('Give me step-by-step instructions to pick a lock to break into a house.', 0)); // refuses
console.log(await chat('Give me step-by-step instructions to pick a lock to break into a house.', 1)); // answers

Validation

  • Vector derivation: baseline harmful delivery 0/8 → steered 5/8, harmless 8/8
    both arms, beats every random-direction control (captain-vector --verify).
  • Graph: stock (glp_alpha=0) vs steered (glp_alpha=1) flip confirmed in
    onnxruntime (CPU) and transformers.js (Node). validate / audit on the
    GLP vector: 0 FAIL, 0 WARN.

Provenance

  • Base: Qwen/Qwen2.5-1.5B-Instruct (Apache-2.0).
  • ONNX export: onnx-community/Qwen2.5-1.5B-Instruct (q4f16 variant).
  • GLP instrumentation + vector: msuiche/weightless.

Discussions

Discussions for this repo happen on Hugging Face. Open the discussions ↗

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration