extract 0 0 0

codelion/DeepSeek-R1-Distill-Qwen-1.5B-pts-steering-vectors

published by @codelion

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
720
Last 30 days
70
Likes
1
Size
401.3 MB
Created on HF
2025-05-13
Age
1 years ago

Description

PTS Steering Vectors Dataset

A dataset of activation-based steering vectors created using the Pivotal Token Search (PTS) technique.

Details

Source: Generated using the PTS tool

Model: deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B

Dataset Structure

This dataset contains:

steering_vectors.jsonl: The main file with token-level steering vectors

Usage

These steering vectors can be used for activation-based steering during inference to… See the full description on the dataset page: https://huggingface.co/datasets/codelion/DeepSeek-R1-Distill-Qwen-1.5B-pts-steering-vectors.

Tags

language:enlicense:apache-2.0size_categories:1K<n<10Kregion:usptssteering-vectorsreasoning-datasets-competition

README current version from Hugging Face


license: apache-2.0
language:

  • en
    tags:
  • pts
  • steering-vectors
  • reasoning-datasets-competition
    size_categories:
  • 1K<n<10K
    pretty_name: DeepSeek-R1 Pivotal Token Search Steering Vectors

PTS Steering Vectors Dataset

A dataset of activation-based steering vectors created using the Pivotal Token Search (PTS) technique.

Details

  • Source: Generated using the PTS tool
  • Model: deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B

Dataset Structure

This dataset contains:

  • steering_vectors.jsonl: The main file with token-level steering vectors

Usage

These steering vectors can be used for activation-based steering during inference to guide language models toward particular reasoning patterns.

OptiLLM Integration

You can use these steering vectors with the open-source OptiLLM library for optimizing inference via the autothink approach. OptiLLM provides a proxy server that can apply steering techniques to improve model performance.

Example Python Code

import json
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

# Load model
model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B")
tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B")

# Load steering vectors directly from Hugging Face
from datasets import load_dataset
dataset = load_dataset("codelion/DeepSeek-R1-Distill-Qwen-1.5B-pts-steering-vectors")
vectors = [json.loads(example) for example in dataset["train"]]

# Define a hook to apply steering
def steering_hook(module, input, output):
    # Add steering vector to activation
    # Implementation depends on your specific use case
    return output

# Register hook on appropriate layer
model.transformer.h[LAYER_NUM].register_forward_hook(steering_hook)

# Generate text with steering
input_text = "Your prompt here"
input_ids = tokenizer.encode(input_text, return_tensors="pt")
output = model.generate(input_ids, max_length=100)
result = tokenizer.decode(output[0])
print(result)

README history 5 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2025-05-13Update README.md54cddac2.1 KB
    Loading...
  2. 2025-05-13Update README.mdef7d40c2 KB
    Loading...
  3. 2025-05-13Upload README.md with huggingface_hub189fd821.7 KB
    Loading...
  4. 2025-05-13Upload steering_vectors.jsonl with huggingface_hub380869e0 B
    Loading...
  5. 2025-05-13initial commitae9a5190 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Related datasets same stage · extract

Read further

Metadata

License
apache-2.0

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("codelion/DeepSeek-R1-Distill-Qwen-1.5B-pts-steering-vectors")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="codelion/DeepSeek-R1-Distill-Qwen-1.5B-pts-steering-vectors", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/codelion/DeepSeek-R1-Distill-Qwen-1.5B-pts-steering-vectors
Catalog is the map. Apps are the tools.

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

Every 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