Ross ROSS = Recommend OSS · open-source software intelligence for agents

Sumandora/remove-refusals-with-transformers

Some data may be outdated — see provenance labels.

Implements harmful/harmless refusal removal using pure HF Transformers observed · 2026-09-30

github.com/Sumandora/remove-refusals-with-transformers · Python · Apache-2.0 (permissive) observed · 2026-09-30

Health v2 · maintenance only

46/100

  • Activity 46
  • Release rhythm 35
  • Longevity 63

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-22. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 888
  • days_rel: n/a
  • days_push: 328
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2230 stars · 330 forks observed · 2026-09-30

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A proof-of-concept Python script that removes refusal behavior from LLMs by ablating the refusal direction using pure Hugging Face Transformers, without requiring TransformerLens. It computes the refusal direction from harmful/harmless instruction datasets and applies it during inference.

Use cases

  • remove refusals from an LLM without TransformerLens
  • ablate the refusal direction in any HF Transformers model
  • study how refusal is mediated by a single direction in LLMs
  • test refusal removal on small models with limited GPU memory
  • compare refusal behavior before and after direction ablation

When to choose

  • you want to experiment with refusal-direction ablation using only Hugging Face Transformers
  • your model isn't supported by TransformerLens
  • you're doing interpretability or safety research on consumer GPUs with small models

When to avoid

  • you need a production-ready or maintained tool rather than a proof of concept
  • your model uses a custom layer structure like some Qwen implementations
  • you need broad model compatibility guarantees or extensive documentation

Facets

library · maturity experimental

llm-inference machine-learning deep-learning large-language-models machine-learning artificial-intelligence python windows refusal-direction transformerlens-alternative model-ablation safety-research proof-of-concept huggingface-transformers gpu linux macos

1 source

Member repositories

RepositoryRoleHealth v2
Sumandora/remove-refusals-with-transformersmain46

For agents

markdown · JSON · MCP: product_card(name="Sumandora/remove-refusals-with-transformers")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem