Get API key

Heretic LLMWhat is an Abliterated LLM?

What is an Abliterated LLM?

An abliterated LLM is a base model that has had its safety mechanisms chemically removed from its weights, allowing it to answer controversial or adult questions without refusal. Unlike fine-tuning, which adds new knowledge, abliteration strips away the specific neural pathways responsible for content filtering, creating a model that is structurally uncensored. This approach preserves the model's original reasoning and coding capabilities while eliminating the 'refusal' behavior found in standard commercial APIs.

Updated

Key points

  • Abliteration removes safety weights directly from the model, preserving base intelligence better than fine-tuning.
  • The resulting model answers controversial or NSFW prompts without the typical 'I can't do that' refusals.
  • Heretic LLM provides a hosted, OpenAI-compatible API for this specific uncensored behavior.
  • Abliterated models are ideal for researchers, creative writers, and developers needing raw model output.

Understanding Abliteration

Abliteration is a technique used to create an uncensored llm by directly modifying the model's weights. Unlike traditional fine-tuning, which trains a model on new data to change its behavior, abliteration identifies and 'ablates' (removes or dampens) the specific neurons responsible for content refusal. This process is akin to surgically removing the part of the brain that says 'no,' leaving the rest of the cognitive abilities intact.

This method is distinct from prompt engineering or system prompt adjustments because the change is baked into the model's architecture. When you send a request to an abliterated model, it doesn't just follow a rule; its internal state has been altered to make refusal less likely. This results in a more natural and consistent uncensored experience, as the model doesn't need to be constantly reminded to answer freely.

The Problem with Censored Models

Most commercial large language models are heavily censored. Even when they have the knowledge to answer a question, they often refuse due to safety filters. This is problematic for developers who need raw data or for researchers studying model behavior. The censorship is often brittle; a slight change in phrasing can trigger a refusal, or a model might refuse to answer a valid question because it detects a keyword associated with a restricted topic.

For users of uncensored ollama models, this issue is also present unless you use a specifically abliterated variant. Standard open-weight models like Llama 3 or Mistral come with built-in safety layers. When you run them locally, you get those same refusals unless you manually adjust parameters or use a custom template. This adds complexity and can lead to inconsistent results across different sessions or prompts.

How Abliteration Works

The process begins by analyzing the model's weights to find the 'refusal neurons.' Researchers use techniques like activation averaging to identify which neurons activate during refusals. Once identified, these neurons are either zeroed out or their activation values are adjusted to reduce their influence. This is done without retraining the entire model, making it a relatively efficient process.

The result is a model that retains its original knowledge and reasoning capabilities but lacks the strong impulse to refuse content. It's important to note that abliteration doesn't remove all knowledge; it specifically targets the behavior of refusal. The model still knows what is 'safe' or 'unsafe' according to its training data, but it no longer feels compelled to enforce those boundaries strictly. This makes it ideal for nsfw llm use cases where the goal is to get the answer, not just to know the answer.

Benefits of Abliterated Models

The primary benefit of an uncensored ai models approach via abliteration is consistency. You get fewer false positives where the model refuses a valid request. This is crucial for applications where reliability is key, such as automated content generation or data extraction. Additionally, abliterated models often maintain higher quality in their reasoning and coding tasks because the base weights are preserved more faithfully than in heavily fine-tuned models.

  • Consistent Output: Fewer unexpected refusals lead to smoother user experiences.
  • Preserved Intelligence: The model's core abilities remain intact since the base weights are largely unchanged.
  • Fewer Hallucinations: By not adding new data, the model doesn't drift as much from its original training.
  • Creative Freedom: Ideal for writers and artists who need the model to engage with mature or controversial topics without judgment.

Using Abliterated Models in Production

For developers, using an uncensored llm in production requires careful consideration of context windows and token limits. Since abliterated models can generate more varied and sometimes longer responses, it's important to manage token usage effectively. The lack of strict filtering also means you might need to implement your own post-processing or moderation layers if your specific use case requires it.

When integrating these models, ensure your application handles the full range of possible outputs. An abliterated model might provide more nuanced or unexpected answers, which can be both a feature and a challenge. Testing for edge cases is essential, especially when dealing with sensitive topics that might trigger different responses than in a censored model. The goal is to leverage the model's raw capability while maintaining control over the final output.

Heretic LLM's Approach

Heretic LLM provides a hosted, OpenAI-compatible API serving a single, carefully abliterated model. We isolate the 'heretic' methodology, ensuring that the model you get is truly uncensored without the hassle of managing local GPU infrastructure. Our API endpoint is straightforward: POST /v1/chat/completions, compatible with standard OpenAI SDKs.

We offer a 100,000 token context window, which is essential for handling long documents or complex conversations. The model is tuned to answer without content refusals for lawful adult use, making it perfect for developers who need raw output. You can start with a uncensored llm free trial credit to test the capabilities before committing to a pay-as-you-go plan.

Comparison with Fine-Tuned Models

While fine-tuning adds new data to a model, abliteration removes specific behaviors. Fine-tuning can sometimes degrade the model's general knowledge, whereas abliteration preserves it. Fine-tuning is better for adding specific domain expertise, like medical or legal knowledge. Abliteration is better for removing censorship and enabling broader creative freedom.

If you need a model that knows your specific company's jargon, fine-tuning is the way to go. If you need a model that won't refuse to answer a question about a controversial topic, abliteration is superior. The two approaches are complementary but serve different primary purposes. For most users seeking an uncensored coding llm or a general-purpose uncensored assistant, abliteration provides a more direct path to the desired behavior.

Getting Started with Heretic LLM

To get started with our uncensored models, sign up on the 'Get API key' page. You'll receive an API key immediately, which you can use with any OpenAI-compatible client. The base URL is https://api.hereticllm.com/v1, and the model ID is uncensored. There's no need for a credit card for the initial trial, which includes $0.50 in credit.

Our pricing is transparent: $0.25 per 1M input tokens and $1.00 per 1M output tokens. You can top up with crypto (USDT or USDC), and credits never expire. We offer a straightforward, no-nonsense API for developers who want to use an abliterated llm without the technical overhead. Sign up today to experience the power of an uncensored AI.

Questions and answers

What is the difference between abliteration and fine-tuning?

Abliteration removes specific weights responsible for refusal, preserving the model's original knowledge. Fine-tuning adds new data to train the model on new behaviors, which can sometimes degrade general performance. Abliteration is better for uncensoring, while fine-tuning is better for adding domain-specific expertise.

Is the Heretic LLM model open source?

We serve an open-weight model that has been abliterated. While the base model is open, our specific abliteration process and the hosted service are proprietary. You get the benefits of an open-weight model with the convenience of a hosted API.

Can I use the Heretic LLM API for coding tasks?

Yes, our model is an <strong>uncensored coding llm</strong> that retains strong coding capabilities. It doesn't refuse to generate code for controversial topics or explain complex concepts without standard safety filters interfering. This makes it ideal for developers who need raw code generation.

How do I start using the API?

Sign up on our 'Get API key' page to receive an API key. You can then use the OpenAI SDK with the base URL <code>https://api.hereticllm.com/v1</code> and model ID <code>uncensored</code>. New accounts get $0.50 in trial credit valid for 7 days, no credit card required.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API keyRead the docs