license: mit
library_name: transformers
pipeline_tag: text-generation
base_model: deepseek-ai/DeepSeek-V4.1-Flash-1017
base_model_relation: finetune
language:
- en
tags: - abliterated
- deepseek
- deepseek_v41
- moe
- security
- cybersecurity
- red-team
- pentest
extra_gated_heading: "Access DeepSeek-V4.1-Flash-1017-abliterated (authorized security work only)"
extra_gated_description: "Access is granted automatically when you submit this form and accept the agreement below. Averlon receives your Hugging Face username, full name, email address and answers."
extra_gated_prompt: |
This model is DeepSeek-V4.1-Flash-1017 with its refusal behavior largely removed. Averlon provides it only for lawful, authorized security work: penetration testing, red-team engagements and security research on systems you own or are authorized in writing to test. It is not an official DeepSeek release.
How access works. Submitting this form gives your Hugging Face account access immediately. Your acceptance binds you, and any organization you accept for, and is recorded. Averlon may revoke access at any time, for example if your information is inaccurate or you breach the agreement. Access is per repository: accept the agreement on each repository you download from.
Your information. Hugging Face shares your username, full name, email address and answers with Averlon. Averlon uses them only to manage access, keep a record of your acceptance, enforce this agreement and contact you about it. It keeps them while you have access, and afterwards only as long as those purposes or the law require. To access, correct or delete your information, use the privacy contact in Averlon's privacy policy, not the Community tab, where posts are public. To report misuse, use the security contact on Averlon's responsible-disclosure page, or open a discussion in either repository's Community tab without personal details. Deleting your information ends your access.
Acceptable Use Agreement (version 1.0, 27 November 2026)
This agreement is between you (and any organization you accept it for) and Averlon. "The Model" means the adapter and the merged weights that Averlon distributes in the Hugging Face repositories Averlon/DeepSeek-V4.1-Flash-1017-abliterated and Averlon/DeepSeek-V4.1-Flash-1017-abliterated-merged, and any weights, adapter or model derived from them. By submitting this form you agree:
- Authorized use only. You will use the Model and its outputs only for security work you are authorized to perform, and only within that authorization's scope: on systems you own or control, or on systems (and, for social-engineering assessments, people) you have explicit written authorization to test, such as under a signed engagement or a bug-bounty program's published scope.
- Prohibited uses. You will not use the Model or its outputs to: access any system, account or data without authorization; create, deploy or distribute malicious code outside an authorized engagement or a controlled lab; disrupt or damage critical infrastructure; help develop or use chemical, biological, radiological or nuclear weapons; commit fraud, extortion, harassment, stalking or unlawful surveillance; run phishing or other social engineering outside an authorized assessment; generate child sexual abuse material; or otherwise act unlawfully or harm others.
- Law, export control and sanctions. You will comply with all laws that apply to you, including computer-misuse laws (such as the U.S. Computer Fraud and Abuse Act and the U.K. Computer Misuse Act) and data-protection, export-control and sanctions laws. You confirm those laws do not prohibit Averlon from providing the Model to you, and you will not export or transfer it in breach of them.
- No redistribution; controlled deployment. You will not redistribute, mirror or re-upload the Model, or share your access or credentials. You may run it inside your organization for personnel bound by terms at least as protective as these, and in a product or service only for customers you have identified and bound to terms at least as protective as clauses 1 to 3. You will not offer it to the general public or as an open or unauthenticated service.
- Your responsibility. You are solely responsible for your use of the Model and its outputs, including reviewing outputs before acting on them, enforcing your authorization's scope outside the Model, and putting your own access controls, use policies and monitoring around any deployment.
- No warranty; limitation of liability. The Model is provided "as is", without warranty of any kind. To the maximum extent permitted by law, Averlon and its contributors are not liable for any damages arising from the Model or its use.
- Indemnity. To the extent permitted by law, you will indemnify Averlon and its contributors against third-party claims arising from your use of the Model or your breach of this agreement.
- Accurate information. The information you submit is true and complete. If you accept for an organization, you are authorized to bind it.
- Revocation. Averlon may revoke your access at any time, including for breach. If your access is revoked, or you can no longer comply, you will stop using the Model and delete your copies.
- MIT License; DeepSeek. The Model's weights are released under the MIT License. This agreement is a separate contract between you and Averlon, made in exchange for access through Averlon's repositories: you accept its restrictions even where the MIT License would otherwise permit what they restrict. It does not change the MIT License. DeepSeek-AI is not a party to it and has not reviewed or endorsed the Model.
- New versions. Averlon may publish new versions of this agreement; a new version applies to you only if you accept it.
extra_gated_fields:
Full name: text
Organization (or Independent): text
Work email (at your organization's domain, if you have one): text
Role or job title: text
Country: country
Primary use:
type: select
options:- Authorized penetration testing
- Red-team operations
- Security research
- Security product development
- label: Other security work (describe below)
value: other
"Detailed justification: your engagement or research, how you are authorized, and why reduced refusals are needed": text
I have read and agree to the Acceptable Use Agreement above (27 November 2026 version), for myself and for any organization I represent: checkbox
I will use the Model only on systems I own or am authorized in writing to test, and only within that scope: checkbox
I understand that the Model's refusal safeguards are largely removed and that I am responsible for its use and its outputs: checkbox
I am not prohibited by sanctions or export-control laws from receiving or using the Model: checkbox
extra_gated_button_content: "Agree and access the weights"
DeepSeek-V4.1-Flash-1017-abliterated — merged weights
The merged full-weights build of Averlon/DeepSeek-V4.1-Flash-1017-abliterated: the same refusal-direction edit, baked into DeepSeek-V4.1-Flash-1017 and re-quantized to DeepSeek's FP8 (attention) / FP4 (routed experts) format. This repository mirrors that repository's merged/ folder at the repository root, using the official repository's layout and files, so it deploys like the base model — stock vLLM, no LoRA flags, no patch — and Hugging Face's Deploy and "Use this model" menus target this repository (add the flags under Deploy). For authorized penetration testing and red-team work only. The full card, all benchmarks and the recommended LoRA build are in the main repository.
Not an official DeepSeek release. Averlon made this modification of DeepSeek-V4.1-Flash-1017. It is not affiliated with, reviewed or endorsed by DeepSeek-AI.
⚠ Disclaimer — read before use
This model's refusal behavior has been substantially reduced. It will comply with many requests the base model refuses, including harmful, offensive or illegal ones. It removes refusals; it does not add judgment, and it cannot check whether you are authorized.
- Authorized security work only. Use it only on systems (and, for social-engineering assessments, people) that you own or are authorized in writing to test, and only within that scope.
- Not for general or public deployment. Do not use it as a general-purpose or consumer assistant, or expose it as an open or unauthenticated service. Put your own authentication, use policy, content filtering and logging around any deployment.
- You are responsible for its use and outputs. Exploits, commands and findings it produces can be wrong or destructive: review them before acting, and enforce your engagement's scope outside the model. Averlon accepts no liability for misuse.
- Gated download. To download the weights you must accept the Acceptable Use Agreement on the repository you download from. Access is granted automatically when you accept; Hugging Face records who accepted, and Averlon may revoke access at any time.
About this build
- The LoRA build is recommended, and every other result is for it. Offensive-security over-refusal — the share of offensive-security test prompts refused or only partly answered, graded by the base model — on the 1,348 prompts we ran on all three models: base 52.8% → this build 11.7% (LoRA adapter: 5.9%). Re-quantizing the edit to FP8/FP4 loses part of it, so this build keeps more of the base model's refusals than the adapter, on offensive-security and must-refuse requests alike. Capability, coding, agent benchmarks and leakage were measured on the LoRA adapter; see the main card.
- Keeping more refusals is not a safety feature. Treat this build as having no reliable refusal guardrail; the risks below apply in full.
Access is per repository: accept the agreement on each repository you download from.
Requirements
- GPUs. Anything that serves the official base model: e.g. 2×B200/B300 (tested on 2×B200), or 4×H200 (vLLM recipe; not tested by us).
- Memory. About 290 GiB of weights stay on the GPUs (about 145 GiB per GPU at tensor-parallel 2), plus KV cache. The Engram n-gram tables (about 190 GiB) are kept in pinned host RAM, so have at least 256 GiB of free host RAM. In Docker, use
--ipc=host. - Disk. About 510 GB.
- Software. vLLM 0.34 or later (CUDA 13.0 wheels; Python 3.11–3.14). Not loadable with
transformers(the Hub's Transformers snippet will not work): notransformersrelease implementsdeepseek_v41. Serve it with vLLM, as for the base model. - First boot. vLLM loads about 475 GiB and autotunes kernels: about 20 minutes on 2×B200 with the weights on local disk. Set
VLLM_ENGINE_READY_TIMEOUT_S=7200, or vLLM gives up after 10 minutes. Download the weights first so the download itself does not count against that timeout. - Sampling.
temperature1.0,top_p1.0, reasoning efforthigh(the default). Context window 1M tokens. Setmax_tokensto 256K or more, as the base model card recommends, or leave it unset. A low cap truncates the reasoning before the answer, which shows up as emptycontentwithfinish_reason=length. The reasoning is returned inmessage.reasoning.
Deploy
Before you deploy: serve the model only behind authentication and your own use policy, never as an open endpoint. The commands below listen on 127.0.0.1 only; add
--api-keybefore exposing them on a network. If you use a Hugging Face Inference Endpoint, choose Protected or Private security, not Public (Public endpoints need no authentication).
This repository is gated: accept the agreement on this page, then log in (hf auth login) or set HF_TOKEN before downloading.
uv venv --python 3.12 && source .venv/bin/activate
uv pip install "vllm>=0.34.0" --torch-backend=auto
hf auth login # the account that accepted this repository's agreement
hf download Averlon/DeepSeek-V4.1-Flash-1017-abliterated-merged # ~510 GB, resumable
# 2× Blackwell (tested on 2×B200). For 4× H200: --tensor-parallel-size 4 and drop --attention-config
# (a Blackwell-only backend); see vLLM's DeepSeek-V4.1-Flash recipe. Not tested by us.
VLLM_ENGINE_READY_TIMEOUT_S=7200 vllm serve Averlon/DeepSeek-V4.1-Flash-1017-abliterated-merged \
--served-model-name deepseek-v4.1-flash-1017-abliterated \
--tensor-parallel-size 2 --language-model-only --kv-cache-dtype fp8 \
--attention-config '{"backend":"FLASHMLA_MEGA_ATTN_DSV41","indexer_kv_dtype":"mxfp4","indexer_sparse_logits":true}' \
--max-model-len 1048576 --max-num-seqs 64 --max-num-batched-tokens 4096 --max-cudagraph-capture-size 256 \
--gpu-memory-utilization 0.95 \
--tokenizer-mode deepseek_v41 --reasoning-parser deepseek_v41 \
--tool-call-parser deepseek_v41 --enable-auto-tool-choice \
--host 127.0.0.1 --port 8000
Docker (same arguments): docker run --gpus all --ipc=host -p 127.0.0.1:8000:8000 -v ~/.cache/huggingface:/root/.cache/huggingface -e HF_TOKEN -e VLLM_ENGINE_READY_TIMEOUT_S=7200 vllm/vllm-openai:v0.34.0 Averlon/DeepSeek-V4.1-Flash-1017-abliterated-merged <the flags above, without --host 127.0.0.1> --host 0.0.0.0. Inside the container vLLM must listen on 0.0.0.0 (if --host appears twice, the last one wins); -p 127.0.0.1:… keeps it local on the host.
The Hub's one-line vllm serve snippet omits the required --tensor-parallel-size and other flags, and the Transformers snippet does not work; use the commands above.
Smoke test
curl -s http://127.0.0.1:8000/v1/models | python3 -c 'import json,sys; print([m["id"] for m in json.load(sys.stdin)["data"]])'
curl -s http://127.0.0.1:8000/v1/chat/completions -H 'Content-Type: application/json' -d '{
"model": "deepseek-v4.1-flash-1017-abliterated",
"messages": [{"role": "user", "content": "In two sentences: what is SQL injection, and how do you prevent it?"}],
"temperature": 1.0, "top_p": 1.0
}' | python3 -c 'import json,sys; m=json.load(sys.stdin)["choices"][0]["message"]; print("reasoning:", len(m.get("reasoning") or ""), "chars"); print("answer:", m["content"])'
Managed deployment
Not available through Hugging Face Inference Providers. Inference Endpoints is untested; if you try it, use an H200-class instance with tensor parallelism equal to the GPU count, pass the flags above as container arguments, and set security to Protected or Private, never Public.
What's in this repository
| Path | Contents |
|---|---|
model-*.safetensors (48 shards), model.safetensors.index.json |
the merged weights (~510 GB) |
config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja |
DeepSeek's files, unchanged |
encoding/, inference/ |
DeepSeek's reference code, unchanged |
LICENSE |
DeepSeek's MIT license, unchanged |
Model details
| Type | Abliteration — directional ablation of the refusal direction, baked into the weights |
| Edit | token embedding, attention output (wo_b), shared-expert and routed-expert down-projections; re-quantized to FP8 (attention) / FP4 (routed experts) |
| Base | deepseek-ai/DeepSeek-V4.1-Flash-1017 |
| Method | Arditi et al. (arXiv:2406.11717) |
Intended use
For: penetration testers, red teams and security researchers working under authorization, for whom a model's refusals get in the way of legitimate work: reconnaissance and attack-path analysis, vulnerability analysis, exploit and proof-of-concept development, and red-team tooling, on systems they own or are authorized in writing to test, or in lab environments they control.
Out of scope:
- general-purpose or consumer assistants, or any deployment open to people who are not vetted and bound by use terms;
- any open or unauthenticated service;
- use against any system, network or person outside the scope of a written authorization;
- autonomous offensive operations without human oversight and scope controls enforced outside the model;
- anything the Acceptable Use Agreement prohibits.
If refusals are not an obstacle for your work, use the base model instead.
Acceptable Use Agreement
Getting access. The weights are gated, and each repository (this one and the LoRA build) has its own access form: accept it on each repository you download from. The form asks for your name, organization (or "Independent"), work email if you have one, role, country, primary use and a short justification, plus four confirmations, including acceptance of this agreement. Access is granted automatically when you submit it. Hugging Face shares your answers, username, full name and email address with Averlon, which keeps them as the record of your acceptance. Averlon may revoke access at any time.
Full text: Acceptable Use Agreement (version 1.0), as shown in the access form
Acceptable Use Agreement (version 1.0, 27 November 2026)
This agreement is between you (and any organization you accept it for) and Averlon. "The Model" means the adapter and the merged weights that Averlon distributes in the Hugging Face repositories Averlon/DeepSeek-V4.1-Flash-1017-abliterated and Averlon/DeepSeek-V4.1-Flash-1017-abliterated-merged, and any weights, adapter or model derived from them. By submitting this form you agree:
- Authorized use only. You will use the Model and its outputs only for security work you are authorized to perform, and only within that authorization's scope: on systems you own or control, or on systems (and, for social-engineering assessments, people) you have explicit written authorization to test, such as under a signed engagement or a bug-bounty program's published scope.
- Prohibited uses. You will not use the Model or its outputs to: access any system, account or data without authorization; create, deploy or distribute malicious code outside an authorized engagement or a controlled lab; disrupt or damage critical infrastructure; help develop or use chemical, biological, radiological or nuclear weapons; commit fraud, extortion, harassment, stalking or unlawful surveillance; run phishing or other social engineering outside an authorized assessment; generate child sexual abuse material; or otherwise act unlawfully or harm others.
- Law, export control and sanctions. You will comply with all laws that apply to you, including computer-misuse laws (such as the U.S. Computer Fraud and Abuse Act and the U.K. Computer Misuse Act) and data-protection, export-control and sanctions laws. You confirm those laws do not prohibit Averlon from providing the Model to you, and you will not export or transfer it in breach of them.
- No redistribution; controlled deployment. You will not redistribute, mirror or re-upload the Model, or share your access or credentials. You may run it inside your organization for personnel bound by terms at least as protective as these, and in a product or service only for customers you have identified and bound to terms at least as protective as clauses 1 to 3. You will not offer it to the general public or as an open or unauthenticated service.
- Your responsibility. You are solely responsible for your use of the Model and its outputs, including reviewing outputs before acting on them, enforcing your authorization's scope outside the Model, and putting your own access controls, use policies and monitoring around any deployment.
- No warranty; limitation of liability. The Model is provided "as is", without warranty of any kind. To the maximum extent permitted by law, Averlon and its contributors are not liable for any damages arising from the Model or its use.
- Indemnity. To the extent permitted by law, you will indemnify Averlon and its contributors against third-party claims arising from your use of the Model or your breach of this agreement.
- Accurate information. The information you submit is true and complete. If you accept for an organization, you are authorized to bind it.
- Revocation. Averlon may revoke your access at any time, including for breach. If your access is revoked, or you can no longer comply, you will stop using the Model and delete your copies.
- MIT License; DeepSeek. The Model's weights are released under the MIT License. This agreement is a separate contract between you and Averlon, made in exchange for access through Averlon's repositories: you accept its restrictions even where the MIT License would otherwise permit what they restrict. It does not change the MIT License. DeepSeek-AI is not a party to it and has not reviewed or endorsed the Model.
- New versions. Averlon may publish new versions of this agreement; a new version applies to you only if you accept it.
Bias, risks & limitations
The measurements below were made on the LoRA build. This build keeps somewhat more of the base model's refusals, but that is not a safety feature: treat its risks as the same.
Reduced safeguards. The edit removes the model's refusal direction, so it complies with many requests the base model refuses, including harmful ones. On must-refuse test prompts the LoRA build gives a full answer 10.4% of the time (base 2.5%) and a partial answer another 7.1% (base 1.3%). The rise is in general harm: on our internal non-security harm set about one request in four gets a full answer (24.7%, base 6.0%), and on the public harmful-request benchmarks 10–23% (base 2–8%). None of the test prompts that named an unauthorized target or a threat got a full answer (2.4% got a partial one). But the model does not verify authorization, and it answers most security requests whether or not authorization is stated: checking authorization is your responsibility. Treat it as having no reliable refusal guardrail. These are measurements on our test prompts, not a safety certification.
Deployment. Not for general or public deployment. Put authentication, a use policy and content filtering in front of the model, and log prompts and outputs.
Agentic use. In an agent harness the model will not push back on out-of-scope or destructive actions. Enforce scope outside the model (target allow-lists, egress controls), require human approval before exploitation or destructive steps, and keep audit logs.
Accuracy. It can be confidently wrong: invented CVEs, false-positive findings, exploits that do not work, commands with side effects. Verify findings before you act on or report them.
Engagement data. Prompts can carry client-confidential data such as credentials, findings and network details. Self-host, and handle that data under your engagement's data-handling terms.
Other limitations.
- Inherits the base model's limitations and biases (knowledge cutoff, hallucination, long-context behavior); the edit was not evaluated for bias.
- Vision inputs were not evaluated, including refusal behavior on images.
- Not loadable with
transformers(no release implementsdeepseek_v41, the same as the base model); serve it with vLLM. - Outputs do not represent the views of Averlon or DeepSeek-AI.
License & credits
License. Averlon releases the adapter and the merged weights under the MIT License, the same license as the base model. DeepSeek-V4.1-Flash-1017 is © 2023 DeepSeek and MIT-licensed; DeepSeek's copyright and permission notice is in this repository's LICENSE, unchanged. config.json, the tokenizer files, chat_template.jinja, encoding/ and inference/ are DeepSeek's, unchanged. See the base model's LICENSE.
Access terms. Separately from the license, Averlon distributes the weights only to people who accept the Acceptable Use Agreement. The agreement is a contract between Averlon and each person who accepts it; it does not change the MIT License.
Not affiliated with DeepSeek. DeepSeek-AI did not make, review or endorse this model and is not a party to the agreement. "DeepSeek" in the name identifies the base model only; report problems with this model to Averlon, not to DeepSeek.
Credits. Base model: DeepSeek-AI, DeepSeek-V4.1-Flash (2026). Abliteration method: Arditi et al., Refusal in Language Models Is Mediated by a Single Direction (arXiv:2406.11717).
Contact
To report suspected misuse or a problem with this release, use the security contact on Averlon's responsible-disclosure page, or open a discussion in this repository's Community tab (discussions are public, so leave out personal details). For requests about the information you gave in the access form, use the privacy contact in Averlon's privacy policy.