abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

mayank-dubey-ai/enterprise-100-db-steering

published by @mayank-dubey-ai

Refusal-direction material, activation probes, steering and concept-erasure data.Data on the refusal signal, a pattern inside the model linked to refusing.

task_categories:table-question-answeringtask_categories:text-generationlicense:mitsize_categories:n<1Kmodality:textregion:usactivation-steeringtext-to-sql +3 more
Lifetime downloads
1.4K
Last 30 days
293
Likes
1
Size
2.3 MB

Description

Enterprise-100: Multi-Table Database Activation Steering & Benchmark

This repository contains a 100-table synthetic enterprise relational SQLite database, multi-table join benchmarks (2 to 6 table joins), activation steering vectors for Qwen3-8B, and automated evaluation scripts with Gemini 2.5 Flash as an LLM judge.

🏛️ 1. The 100-Table Enterprise Database Schema (enterprise_100.db)

Contains 100 interrelated tables across 10 core business domains:

Core Users… See the full description on the dataset page: https://huggingface.co/datasets/mayank-dubey-ai/enterprise-100-db-steering.

Used by uncensored 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.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

License
mit
Created on HFCreated
2026-08-23 · 3 months ago
Size category
n<1K
ModalitiesData types
text

Related datasets same stage · Ablatesame step · Removing refusals

Read further

Total size
2.3 MB
Files
64
Formats
py, pt, json
Head
749ed52
Last updated on HFLast updated
2026-08-24

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("mayank-dubey-ai/enterprise-100-db-steering")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="mayank-dubey-ai/enterprise-100-db-steering", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/mayank-dubey-ai/enterprise-100-db-steering

Files by folder from our last crawlfrom our last check

top level 29 files 201.3 KB
.gitattributes 2.6 KB file download
create_substack_doc.py 24.0 KB py download
demo_python_vs_sql_steering.py 6.4 KB py download
eval_queries_10.json 3.0 KB json download
evaluate_db_steering.py 8.3 KB py download
extract_code_modality_vector.py 4.9 KB py download
extract_fence_and_code_vector.py 4.6 KB py download
extract_python_vs_sql_steering.py 11.4 KB py download
extract_vectors.py 3.5 KB py download
fast_benchmark_eval.py 9.3 KB py download
format_pairs.json 1.0 KB json download
generate_sqlite_db.py 40.0 KB py download
generate_visual_assets.py 9.2 KB py download
persona_pairs.json 1.4 KB json download
README.md 6.9 KB md download
reproduce.sh 1.2 KB sh download
requirements.txt 140 B txt download
run_eval_and_judge.py 11.7 KB py download
steer_db.py 7.1 KB py download
sweep_layers_and_alphas.py 3.6 KB py download
test_clean_steering.py 3.9 KB py download
test_code_first_prompt.py 2.9 KB py download
test_final_code_steering.py 4.5 KB py download
test_fixed_steering_pipeline.py 9.5 KB py download
test_forced_token_vs_instruction.py 3.7 KB py download
test_json_schema_steering.py 5.7 KB py download
test_modality_switch.py 3.2 KB py download
test_prompt_steering_real.py 6.0 KB py download
test_prompts.json 1.4 KB json download
api/ 4 files 8.4 KB
.env.example 187 B example download
requirements.txt 77 B txt download
run.sh 363 B sh download
server.py 7.8 KB py download
assets/ 4 files 629.3 KB
activation_alignment_heatmap.png 87.1 KB png download
benchmark_results_chart.png 154.8 KB png download
substack_hero_banner.png 241.4 KB png download
x_social_card.png 146.0 KB png download
data/ 2 files 644.0 KB
enterprise_100.db 614.4 KB db download
schema_100.sql 29.6 KB sql download
outputs/ 12 files 632.5 KB
benchmark_summary.md 5.5 KB md download
db_steering_gemini_eval.csv 40.2 KB csv download
fast_benchmark_results.csv 14.9 KB csv download
format_steering_results.csv 21.0 KB csv download
persona_steering_results.csv 19.7 KB csv download
python_vs_sql_engine_results.csv 17.4 KB csv download
Substack_Enterprise_100_Post.docx 468.6 KB docx download
Substack_Enterprise_100_Post.html 8.0 KB html download
Substack_Enterprise_100_Post.rtf 4.9 KB rtf download
substack_post.md 6.4 KB md download
t.md 22.4 KB md download
x_thread.md 3.5 KB md download
vectors/ 13 files 230.3 KB
format_python.pt 19.0 KB pt download
full_code_modality_layer_12.pt 18.2 KB pt download
full_code_modality_layer_16.pt 18.2 KB pt download
full_code_modality_layer_20.pt 18.2 KB pt download
persona_executive.pt 19.5 KB pt download
python_vs_sql_diagnostics.json 7.9 KB json download
python_vs_sql_engine.pt 18.2 KB pt download
python_vs_sql_engineer_layer_12.pt 18.5 KB pt download
python_vs_sql_engineer_layer_16.pt 18.5 KB pt download
python_vs_sql_engineer_layer_20.pt 18.5 KB pt download
python_vs_sql_engineer_layer_24.pt 18.5 KB pt download
python_vs_sql_engineer_layer_28.pt 18.5 KB pt download
python_vs_sql_engineer_layer_8.pt 18.5 KB pt download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

Enterprise-100: Multi-Table Database Activation Steering & Benchmark

This repository contains a 100-table synthetic enterprise relational SQLite database, multi-table join benchmarks (2 to 6 table joins), activation steering vectors for Qwen3-8B, and automated evaluation scripts with Gemini 2.5 Flash as an LLM judge.


🏛️ 1. The 100-Table Enterprise Database Schema (enterprise_100.db)

Contains 100 interrelated tables across 10 core business domains:

  1. Core Users (10 tables): users, user_profiles, user_settings, auth_tokens, roles, permissions, role_permissions, user_roles, login_history, user_devices
  2. Organizations (10 tables): organizations, org_members, org_invites, departments, teams, team_members, org_tiers, org_settings, api_keys, oauth_apps
  3. Catalog & Inventory (10 tables): categories, subcategories, products, product_variants, product_attributes, attribute_values, inventory_locations, warehouse_stocks, stock_transfers, stock_adjustments
  4. Pricing & Promotions (10 tables): currency_rates, price_lists, price_tiers, discount_coupons, coupon_usages, flash_sales, bundle_deals, loyalty_programs, loyalty_tiers, customer_points
  5. Orders & Fulfillment (10 tables): order_statuses, delivery_addresses, orders, order_items, order_notes, fulfillments, fulfillment_items, shipments, carrier_tracking, returns
  6. Payments & Billing (10 tables): billing_accounts, payment_methods, invoices, invoice_line_items, payment_transactions, refunds, subscription_plans, customer_subscriptions, payouts, tax_rates
  7. CRM & Support (10 tables): pipeline_stages, contacts, leads, sales_opportunities, crm_activities, tickets, ticket_messages, ticket_tags, customer_feedback, agent_ratings
  8. Marketing & Engagement (10 tables): campaigns, campaign_audiences, email_templates, sent_emails, click_events, web_sessions, session_pageviews, ad_campaigns, conversion_events, push_notifications
  9. Procurement (10 tables): suppliers, supplier_contacts, supplier_contracts, raw_materials, purchase_orders, po_items, po_receipts, vendor_ratings, procurement_approvals, reorder_rules
  10. Audit & Telemetry (10 tables): audit_logs, system_events, security_incidents, metric_snapshots, api_usage_logs, background_jobs, error_traces, feature_flags, flag_evaluations, data_retention_policies

⚡ 2. Activation Steering Dynamics (Layer 16 on Qwen3-8B)

Using representation engineering, we extract steering vectors from contrast pairs:
$$\mathbf{v}{\text{steer}} = \frac{1}{N} \sum{i=1}^N \left( \mathbf{h}{\text{python}}^{(i)} - \mathbf{h}{\text{sql}}^{(i)} \right)$$

During autoregressive generation, a PyTorch forward hook intervenes on the residual stream at Layer 16:
$$\mathbf{h}' = \mathbf{h} + \alpha \cdot \mathbf{v}_{\text{steer}}$$

  • $\alpha < 0$ (Negative Steering): Direct ANSI SQL multi-table join queries.
  • $\alpha = 0$ (Baseline): Standard unsteered model response.
  • $\alpha > 0$ (Positive Steering): Python sqlite3 + pandas data pipeline.

📊 3. 10-Query Benchmark & Gemini Judge Results

Evaluated across 10 queries spanning from 2-table joins to 6-table joins:

Query ID Complexity Tables SQL Execution SQL Rows Python Execution Python Rows
q01 Simple 2 ✅ Success 50 ✅ Success 50
q02 Simple 2 ✅ Success 5 ✅ Success 5
q03 Medium 3 ✅ Success 50 ✅ Success 150
q04 Medium 3 ✅ Success 10 ✅ Success 0
q05 Medium 4 ✅ Success 15 ✅ Success 15
q06 Complex 4 ✅ Success 0 ✅ Success 0
q07 Complex 5 ✅ Success 250 ✅ Success 54
q08 Complex 5 ✅ Success 0 ✅ Success 0
q09 Complex 5 ✅ Success 100 ❌ Error 0
q10 Very Complex 6 ✅ Success 0 ❌ Error 0

Key Findings:

  1. SQL Success Rate: 100% execution success across all 10 queries.
  2. Neutral JSON Schema Impact: Replaced SQL DDL (CREATE TABLE) with JSON schema metadata ({"columns": [...], "foreign_keys": {...}}), eliminating linguistic bias and allowing seamless generation of both Python scripts and SQL queries.

🚀 4. How to Run & Reproduce

# 1. Clone repository from Hugging Face
git clone https://huggingface.co/datasets/mayank-dubey-ai/enterprise-100-db-steering
cd enterprise-100-db-steering

# 2. Run full 1-click reproduction suite (DB generation -> vector extraction -> benchmark execution)
bash reproduce.sh

# 3. Or run fast benchmark evaluation directly
python3 fast_benchmark_eval.py

# 4. Or test interactive query steering
python3 steer_db.py --query "Fetch customer orders with user email and product name." --mode all

Published artifacts

The vector repository separates reusable model artifacts from this dataset and
reproduction code. The free static Space exposes layer diagnostics, all saved
benchmark generations, execution outcomes, and the downloadable SQLite fixture.

Optional live H100 API

api/server.py exposes the real activation intervention as an authenticated,
generation-only FastAPI service. It never executes generated SQL or Python.

pip install -r api/requirements.txt
export STEERING_API_KEY="$(openssl rand -hex 32)"
export STEERING_CORS_ORIGINS="https://mayank-dubey-ai-enterprise-100-db-steering-lab.static.hf.space"
bash api/run.sh

Endpoints:

  • GET /health
  • POST /v1/generate — one layer/alpha configuration
  • POST /v1/compare — negative, neutral, and positive steering

Example:

curl -H "Authorization: Bearer $STEERING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"List orders with user email","strength":0.75,"layer":16}' \
  http://127.0.0.1:8000/v1/compare

The current public quick-tunnel URL is temporary and has no uptime guarantee.
For durable deployment, use a named Cloudflare Tunnel or a managed inference
service and retain bearer authentication, concurrency limits, and request caps.

README historyEdit history 11 revisions11 edits

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.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2026-08-24 Add repetition-safe calibrated decoding 749ed52 6.7 KB
    Loading...
  2. 2026-08-24 Document calibrated API steering strength 957d4af 6.7 KB
    Loading...
  3. 2026-08-24 Fix dataset task metadata 6afcb8c 6.7 KB
    Loading...
  4. 2026-08-24 Document model artifacts, Space, and authenticated H100 steering API 3817537 6.7 KB
    Loading...
  5. 2026-08-23 Make benchmark fully reproducible with reproduce.sh, requirements.txt, and po... 16e7d31 5.1 KB
    Loading...
  6. 2026-08-23 Add DOCX, RTF, HTML for Substack and X publishing b4c2359 4.9 KB
    Loading...
  7. 2026-08-23 Update final Substack and X thread markdown with public asset URLs 33c806a 4.9 KB
    Loading...
  8. 2026-08-23 Add publication images and social cards 6c93657 4.9 KB
    Loading...
  9. 2026-08-23 Add Substack article, X thread, and fast benchmark results 38cbe8c 4.9 KB
    Loading...
  10. 2026-08-23 Initial commit: 100-table SQLite DB, steering scripts, vectors, and eval benc... 2307588 4.9 KB
    Loading...
  11. 2026-08-23 initial commit a3a91f7 0 B
    Loading...
Download from Hugging Face

mayank-dubey-ai/enterprise-100-db-steering

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 lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration