ablate 0 0 0

mayank-dubey-ai/sdxl-activation-steering

published by @mayank-dubey-ai

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
229
Last 30 days
129
Likes
-
Size
11.8 MB
Created on HF
2026-08-24
Age
1 months ago

Description

SDXL Image Activation Steering: Continuous Concept Trajectory Control

This repository demonstrates Representation Engineering and Activation Steering on Diffusion Models (SDXL Turbo) using PyTorch and Hugging Face diffusers on an NVIDIA H100 GPU.

⚡ How It Works

Instead of retraining a LoRA or using binary negative prompt weights, we extract continuous concept steering vectors:

vstyle=1N∑i=1N(ecyberpunk_neon(i)−egolden_hour(i))\mathbf{v}_{\text{style}} =… See the full description on the dataset page: https://huggingface.co/datasets/mayank-dubey-ai/sdxl-activation-steering.

Tags

license:mitsize_categories:n<1Kformat:imagefoldermodality:imagelibrary:datasetslibrary:mlcroissantregion:usactivation-steeringdiffusionstable-diffusion-xlrepresentation-engineeringtext-to-image

README current version from Hugging Face


license: mit
tags:

  • activation-steering
  • diffusion
  • stable-diffusion-xl
  • representation-engineering
  • text-to-image

SDXL Image Activation Steering: Continuous Concept Trajectory Control

This repository demonstrates Representation Engineering and Activation Steering on Diffusion Models (SDXL Turbo) using PyTorch and Hugging Face diffusers on an NVIDIA H100 GPU.

Image Steering Comparison Grid


⚡ How It Works

Instead of retraining a LoRA or using binary negative prompt weights, we extract continuous concept steering vectors:

$$\mathbf{v}{\text{style}} = \frac{1}{N} \sum{i=1}^N \left( \mathbf{e}{\text{cyberpunk_neon}}^{(i)} - \mathbf{e}{\text{golden_hour}}^{(i)} \right)$$

During the diffusion denoising trajectory, we steer the latent embeddings continuously:

$$\mathbf{e}{\text{steered}} = \mathbf{e}{\text{neutral}} + \alpha \cdot \mathbf{v}_{\text{style}}$$

  • $\alpha = -1.2$ (Golden Hour): Continuous shift into warm, natural golden hour sunlight and organic daytime scenery.
  • $\alpha = 0.0$ (Neutral Baseline): Unsteered baseline output at fixed seed.
  • $\alpha = +1.2$ (Cyberpunk Neon): Continuous shift into dark cyberpunk nightscapes, glowing electric cyan/magenta reflections, and volumetric haze.

📁 Repository Structure

sdxl-activation-steering/
├── concept_pairs.json                     # Contrast prompts (Cyberpunk vs. Golden Hour)
├── extract_image_steering_vectors.py      # Computes sequence & pooled steering vectors
├── steer_image_generation.py              # Denoising inference loop with alpha sweeps
├── vectors/
│   └── cyberpunk_vs_goldenhour.pt         # Pre-computed SDXL steering vectors
├── outputs/                               # Individual steered outputs at each alpha
└── assets/
    └── image_steering_sweep_grid.png      # 5x3 side-by-side comparison grid

🚀 Reproduction

# 1. Clone repository
git clone https://huggingface.co/datasets/mayank-dubey-ai/sdxl-activation-steering
cd sdxl-activation-steering

# 2. Extract vectors
python3 extract_image_steering_vectors.py

# 3. Run image steering sweep
python3 steer_image_generation.py

README history 2 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. 2026-08-24Upload SDXL image activation steering pipeline, vectors, and comparison grid4e8b27c2.3 KB
    Loading...
  2. 2026-08-24initial commit7f6bfd40 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.

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2026-08-25[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · ablate

Read further

Metadata

License
mit

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("mayank-dubey-ai/sdxl-activation-steering")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="mayank-dubey-ai/sdxl-activation-steering", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/mayank-dubey-ai/sdxl-activation-steering
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