Downloads · 30 days
19
4% of all-time downloads
ikarius/Qwen3-14B-Abliterated-FP8
Qwen3-14B-Abliterated-FP8 is a text generation model from ikarius. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains a high-precision Fine-Grained FP8 quantization of huihui-ai/Qwen3-14B-Instruct-Abliterated.
Downloads · 30 days
19
4% of all-time downloads
All-time downloads
530
Public
Parameters
14.8B
16.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.3 GB · 100%
How the weights are stored.
F8_E4M313.2B · 89%
From the Hugging Face model README
This repository contains a high-precision Fine-Grained FP8 quantization of huihui-ai/Qwen3-14B-Instruct-Abliterated.
The model has been specifically quantized using parameters optimized for next-generation hardware, particularly the NVIDIA Blackwell (RTX 50-series) architecture.
weight_block_size=(128, 128))The quantization was performed using FineGrainedFP8Config with the following settings:
You can load this model directly using the transformers library. Ensure you have the latest version of accelerate and transformers installed.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ikarius/Qwen3-14B-FineGrained-FP8"
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
dtype="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(model_id)
prompt = "Explain the advantages of FP8 quantization for LLMs."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The model was quantized from the BF16 source using the following logic:
Loaded with dtype="auto" and device_map="auto".
Configured with FineGrainedFP8Config(weight_block_size=(128, 128)).
Weights were saved in the optimized FP8 format to allow for immediate loading without re-quantization.
# --- FOR TRANSFORMERS 5.0 / BLACKWELL ---
with torch.inference_mode(), torch.amp.autocast('cuda', dtype=torch.bfloat16):
output_ids = model.generate(
input_ids=input_ids,
attention_mask=attention_mask,
max_new_tokens=max_tokens,
do_sample=True,
temperature=temperature,
top_p=top_p,
top_k=top_k,
repetition_penalty=1.10,
eos_token_id=EOT_ID,
pad_token_id=tokenizer.pad_token_id,
bad_words_ids=final_bad_words_ids,
# FOR FP8 CACHE
cache_config={
"cache_dtype": torch.float8_e4m3fn,
}
)
This is an abliterated model. It has fewer safety guardrails compared to the original Qwen3 release. Users are responsible for their own implementations of moderation layers and for using the model ethically and legally.
Original Model: Qwen Team
Abliteration: huihui-ai