玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
ikarius /

Qwen2.5-Coder-14B-Instruct-Abliterated-NF4

HF 源站

ikarius/Qwen2.5-Coder-14B-Instruct-Abliterated-NF4 is an uncensored open-source model hosted on Hugging Face.

Text GenerationsafetensorsEnglishLicense: apache-2.014Bqwen2codeprogramminguncensored4bitnf4qwenabliterationinstructgs128bitsandbytesconversational4-bit
README.md说明 / 使用方法

base_model: Qwen/Qwen2.5-Coder-14B-Instruct abliterated_from: huihui-ai/Qwen2.5-Coder-14B-Instruct-abliterated quantization: nf4 license: apache-2.0 tags:

  • code
  • programming
  • uncensored
  • 4bit
  • nf4
  • qwen
  • abliteration
  • instruct
  • gs128
  • bitsandbytes library: transformers language:
  • en pipeline_tag: text-generation

Qwen2.5-Coder-14B-Instruct-Abliterated-NF4

A 4-bit (NF4) quantized, abliteration-uncensored version of Qwen2.5-Coder-14B-Instruct

This model is a pre-quantized 4-bit NormalFloat4 (NF4) version of the uncensored huihui-ai/Qwen2.5-Coder-14B-Instruct-abliterated, optimized for low VRAM and fast local inference.

Ideal for local deployment, edge devices, or low-VRAM environments while maintaining strong coding and reasoning capabilities.


🚀 Features

  • Base Model: Qwen/Qwen2.5-Coder-14B-Instruct
  • Abliteration: huihui-ai (uncensored)
  • Quantization: NF4 (4-bit) – pre-quantized
  • Efficient: ~8–9 GB VRAM required for inference
  • Safetensors: Secure, modern format
  • Framework: Compatible with transformers, vLLM, Oobabooga, etc.

📥 Installation & Usage

1. Install Dependencies

pip install transformers torch accelerate
---

---
### Load the Model
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "ikarius/Qwen2.5-Coder-14B-Instruct-Abliterated-NF4"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype=torch.bfloat16,  # eller torch.float16
    trust_remote_code=True
)

---
---

# Eksempel
prompt = "Write a Python function to calculate Fibonacci numbers using memoization."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

outputs = model.generate(
    **inputs,
    max_new_tokens=512,
    temperature=0.7,
    do_sample=True,
)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))

---
---
### Using with text-generation-webui (Oobabooga)

python server.py \
  --model ikarius/Qwen2.5-Coder-14B-Instruct-Abliterated-NF4 \
  --bf16 \
  --trust-remote-code

---

🤝 Credits

Original Model: Qwen Team
Abliteration: huihui-ai
Quantization: ikarius (NF4 via auto-gptq / transformers)
Hosting: Hugging Face Hub

---
📄 License
Apache 2.0 (same as base model)

🙌 Support
⭐ Star this repo if you find it useful!
🐛 Report issues on the Discussions tab.
HUGGING FACE

上游数据

HF 下载量24
HF 点赞量1

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
ikarius
最近更新
2025/11/18
最新创建
2025/11/16
HF 趋势
未知
数据快照
2026/09/17
版本
未知
许可证
apache-2.0