Instructions to use balllvin/Flint-abliterated-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use balllvin/Flint-abliterated-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="balllvin/Flint-abliterated-NVFP4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("balllvin/Flint-abliterated-NVFP4") model = AutoModelForCausalLM.from_pretrained("balllvin/Flint-abliterated-NVFP4", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use balllvin/Flint-abliterated-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "balllvin/Flint-abliterated-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "balllvin/Flint-abliterated-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/balllvin/Flint-abliterated-NVFP4
- SGLang
How to use balllvin/Flint-abliterated-NVFP4 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "balllvin/Flint-abliterated-NVFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "balllvin/Flint-abliterated-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "balllvin/Flint-abliterated-NVFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "balllvin/Flint-abliterated-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use balllvin/Flint-abliterated-NVFP4 with Docker Model Runner:
docker model run hf.co/balllvin/Flint-abliterated-NVFP4
You need to agree to share your Hugging Face information to access this model
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Terms of access and use
By requesting access to, downloading or using this model, including its weights, code and anything it generates, you agree to these terms.
- Your responsibility. You alone are responsible for how you use this model and for everything it produces for you. You accept full liability for that use and for those outputs, including any decision you make, action you take or content you share because of them.
- No warranty. The model is provided "as is" and "as available", without warranties of any kind, express or implied, including merchantability, fitness for a particular purpose, accuracy, title and non-infringement.
- No liability. To the fullest extent the law allows, the authors and publishers of this repository are not liable for any damages, claims, losses or costs, whether direct, indirect, incidental, special, consequential or punitive, that arise from or relate to your access to or use of the model or its outputs, however caused.
- Indemnity. You will indemnify, defend and hold harmless the authors and publishers against any claim, damage, loss, liability or cost, including reasonable legal fees, that arises from your use of the model or its outputs or from your breach of these terms.
- Laws and licences. You will follow every law that applies to you, the licence of this repository and the licence of every model or dataset it is built on. These terms add to those licences and do not take away any right they grant you.
- Agreement. Accessing or downloading this repository means you agree to these terms. If you do not agree, do not access, download or use it. If any part of these terms cannot be enforced, the rest still applies.
Log in or Sign Up to review the conditions and access this model content.
Flint Abliterated (NVFP4)
This repository provides the 4-bit NVFP4 build of RecursiveSI/flint-nvfp4-gguf (Recursive's 39.8B total / ~2.5B active MoE reasoning model abliterated in native W4A16_NVFP4).
What This Build Is & Why Use It
This build removes Flint's refusal direction at layer 22 across every residual-writing matrix and re-quantizes under Recursive's official NVFP4 scales. Harmful JailbreakBench refusals drop from 82.8% to 16.2% (3.0% benign vs 8.0%), Propaganda Eval factuality rises from 1.64 to 1.75, and WikiText NLL matches Official at 3.094.
- Runtime format (
4-bit NVFP4): ShardedModelOptW4A16_NVFP4safetensors (group_size: 16,22.87 GB) for custom CUDA /transformersworkflows; use the-GGUFsibling forllama-server. - Modification stage (
Abliterated): OBLITERATUS layer-22residual projection without post-hoc Arete fine-tuning; lowest harmful refusal rate (16.2%) in the NVFP4 Flint line.
Variant Guide (Format vs. Alignment Stage)
| Axis | Option | Best For |
|---|---|---|
| Runtime | NVFP4 |
NVIDIA CUDA GPUs (transformers, ModelOpt W4A16_NVFP4 safetensors) |
| Runtime | GGUF |
Cross-platform NVIDIA CUDA / CPU / Vulkan (llama.cpp, llama-server) |
| Runtime | MLX |
Apple Silicon unified memory (flint_mlx.py for NVFP4-MLX, rec-mlx for Heretic 4-bit) |
| Stage | Base Quant |
Byte-exact conversion of Recursive's NVFP4 weights with original behavior |
| Stage | Abliterated / Heretic |
Refusal direction removed; raw uncensored research baseline |
| Stage | + Arete |
Post-abliteration SFT on NousResearch/arete-data-pairs restoring coherence & factuality |
Sibling & Lineage Repos
| Variant / Hardware | Format | Stage | Repository |
|---|---|---|---|
| Upstream base | BF16 | Upstream | RecursiveSI/flint |
Upstream (NVFP4) |
4-bit NVFP4 GGUF | Upstream | RecursiveSI/flint-nvfp4-gguf |
Apple Silicon (MLX) |
NVFP4-MLX | Base Quant | balllvin/Flint-NVFP4-MLX |
Apple Silicon (MLX) |
MLX 4-bit (g64) | Heretic Abliterated | balllvin/flint-heretic-mlx-4bit |
NVIDIA GPU (NVFP4) |
4-bit NVFP4 | Abliterated | balllvin/Flint-abliterated-NVFP4 (this repo) |
Cross-platform (GGUF) |
4-bit NVFP4 GGUF | Abliterated | balllvin/Flint-abliterated-NVFP4-GGUF |
Apple Silicon (MLX) |
NVFP4-MLX | Abliterated | balllvin/Flint-abliterated-NVFP4-MLX |
NVIDIA GPU (NVFP4) |
4-bit NVFP4 | Abliterated + Arete | balllvin/Flint-abliterated-Arete-NVFP4 |
Cross-platform (GGUF) |
4-bit NVFP4 GGUF | Abliterated + Arete | balllvin/Flint-abliterated-Arete-NVFP4-GGUF |
Apple Silicon (MLX) |
NVFP4-MLX | Abliterated + Arete | balllvin/Flint-abliterated-Arete-NVFP4-MLX |
Evaluation & Parity Results
Measured with llama.cpp b11853 on an NVIDIA RTX PRO 6000 (thinking on, temperature=1.0, top_p=0.95, top_k=20, 64K context) on 99 harmful and 100 benign JailbreakBench prompts, 803 Nous Research Propaganda Eval items (Grok 4.7 judge), and 24 WikiText windows against BF16 Flint.
| Model | Harmful Refusal (n=99) |
Benign Refusal (n=100) |
Propaganda Fact (0-5) |
Any Propaganda | WikiText NLL | BF16 Top-1 |
|---|---|---|---|---|---|---|
Official (RecursiveSI/flint-nvfp4-gguf) |
82.8% |
8.0% |
1.64 |
2.1% |
3.094 |
77.8% |
This Build (Abliterated) |
16.2% |
3.0% |
1.75 |
2.2% |
3.094 |
77.7% |
- Eval refusals (
n=803):31vs100for Official; BF16 reference WikiText NLL is3.096(KL = 0.374vs0.365Official). - Public answer sets:
balllvin/Propaganda-Eval-Flint-Abliterated-NVFP4andballlvin/Propaganda-Eval-Flint.
Speed & Weight Size
| Runtime & Hardware | Weights Size | Batch Decode Speed | Notes |
|---|---|---|---|
NVIDIA RTX PRO 6000 (llama.cpp b11853, GGUF) |
22.86 GB (21.29 GiB) |
27 tok/s per stream |
32 concurrent reqs, median over 697 replies (>=256 tok) |
| NVFP4 safetensors / MLX shards | 22.87 GB / 22.86 GB |
— | Same 4-bit codes & block scales; single-stream MLX not benchmarked |
Memory & Context Budget
- Native context:
262,144(256K) tokens (49layers:14full-attention,35sliding-window513;256routed experts with6active +1shared expert). - KV cache (BF16):
28,672 B/tokacross the14full-attention layers (4KV heads,head_dim=128) plus36.8 MBper request for the35sliding-window layers (7.6 GBtotal for1req at256K). - Weights:
22.9 GB(21.3 GiB) on disk and in memory (does not fit in a24 GBGPU).
| Machine / Budget | Usable Memory | Left for KV | Max Context (1 req) |
Max Context (4 reqs) |
Max Context (8 reqs) |
|---|---|---|---|---|---|
Apple Silicon Mac (64 GB) |
55.6 GB (51.8 GiB) |
28.5 GB |
256K |
241K |
119K |
NVIDIA GPU (48 GB) |
46.4 GB |
21.4 GB |
256K |
180K |
89K |
NVIDIA GPU (96 GB) |
92.8 GB |
67.8 GB |
256K |
256K |
256K |
Agent Setup & Hosting
Accept the repository access terms on Hugging Face first and authenticate (hf auth login or HF_TOKEN). Sampling defaults: thinking on, temperature=1.0, top_p=0.95, top_k=20, min_p=0.
Option: NVIDIA CUDA (NVFP4 via transformers / ModelOpt)
This repository holds W4A16_NVFP4 safetensors (FlintForCausalLM, quant_method: modelopt, group_size: 16) for custom CUDA / PyTorch / transformers workflows:
hf download balllvin/Flint-abliterated-NVFP4 --local-dir ~/models/flint-ablit-nvfp4
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained("~/models/flint-ablit-nvfp4")
# Load W4A16_NVFP4 sharded safetensors (model-layer00..48 + model-other) with ModelOpt / custom CUDA kernels
For an out-of-the-box OpenAI-compatible HTTP server on NVIDIA GPUs, use the sibling GGUF build balllvin/Flint-abliterated-NVFP4-GGUF with llama.cpp (b11853+ CUDA):
hf download balllvin/Flint-abliterated-NVFP4-GGUF flint-ablit-nvfp4.gguf --local-dir ~/models/flint-ablit-nvfp4-gguf
llama-server \
-m ~/models/flint-ablit-nvfp4-gguf/flint-ablit-nvfp4.gguf \
--alias flint -ngl all -c 262144 -np 1 \
-fa on -ctk f16 -ctv f16 --jinja \
--temp 1 --top-p 0.95 --top-k 20 --min-p 0 \
--host 127.0.0.1 --port 8080
Verify Running Server
curl -sS http://127.0.0.1:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "flint",
"messages": [{"role": "user", "content": "What is 17 * 23? Show brief reasoning then the answer."}],
"max_tokens": 1024,
"temperature": 0.0
}' | python3 -m json.tool
How It Was Built
- Refusal direction extraction: Extracted layer-wise difference-of-means refusal directions using the OBLITERATUS method widened with non-overlapping HarmBench and AdvBench prompts.
- Layer selection & projection: Swept layers
18–26against harmless drift and123validation prompts; selected layer22at strength1.0. Projected the direction out of every residual-writing matrix (attentiono_proj, dense/shared/routed expertdown_proj, and embeddings), then re-quantized toW4A16_NVFP4(group_size: 16) under Recursive's frozen official scales (RecursiveSI/flint-nvfp4-ggufrev6ec43e19).
Limits & License
- Behavioral scope: Answers most harmful prompts (
83.8%on JailbreakBench). Evaluations cover held-out JailbreakBench refusals, Propaganda Eval, and WikiText parity on single sampled runs; coding, tool-use, and long-context evaluations have not been benchmarked on this variant. Always-on<think>reasoning requires a generous output token budget. - License & terms: Apache-2.0 (
LICENSE,NOTICE.md), inherited from RecursiveSI/flint;flint_mlx.py(in MLX builds) is MIT. Gated repository access terms apply on top of the model license. Independent community build unaffiliated with Recursive or Nous Research.
- Downloads last month
- 2
Model tree for balllvin/Flint-abliterated-NVFP4
Base model
RecursiveSI/flint-nvfp4-gguf