Instructions to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated") model = AutoModelForCausalLM.from_pretrained("jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - llama-cpp-python
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated", filename="Qwen2.5-Coder-14B-Instruct-abliterated-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M # Run inference directly in the terminal: llama cli -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M # Run inference directly in the terminal: llama cli -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
Use Docker
docker model run hf.co/jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
- SGLang
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated 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 "jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated" \ --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": "jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated", "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 "jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated" \ --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": "jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with Ollama:
ollama run hf.co/jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
- Unsloth Studio
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated to start chatting
- Pi
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with Docker Model Runner:
docker model run hf.co/jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
- Lemonade
How to use jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5-Coder-14B-Instruct-abliterated-Q4_K_M
List all available models
lemonade list
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)Qwen2.5-Coder-14B-Instruct-abliterated
⚠️ Use at your own risk. This model is abliterated (uncensored) — its safety refusals have been removed, so it will generate content the base model would decline, potentially including offensive, harmful, or unlawful material. It is provided as-is, with no warranty of any kind, express or implied. You are solely responsible for how you use it and for compliance with all applicable laws and the base model's license. Do not use it for illegal or harmful purposes.
An abliterated (uncensored) build of Qwen/Qwen2.5-Coder-14B-Instruct, produced with Heretic (pip install heretic-llm). Abliteration removes the model's refusal directions via directional ablation, so it declines far less often while preserving coding ability. No other fine-tuning was applied. This is the smaller sibling of Qwen2.5-Coder-32B-Instruct-abliterated — sized for fast local use (fits comfortably on an 18 GB Mac).
Model details
- Base model: Qwen/Qwen2.5-Coder-14B-Instruct (Apache-2.0)
- Architecture: Qwen2 dense · 14.7B params · 32K context
- Method: Heretic directional-refusal ablation
- Formats: bf16
safetensors(6 shards) + GGUFQ4_K_M(~8 GB) - Intended use: fast local coding assistant
Usage
llama.cpp (Q4_K_M fits ~8 GB; use KV-cache quantization to grow context on small machines)
llama-server -m Qwen2.5-Coder-14B-Instruct-abliterated-Q4_K_M.gguf \
--host 127.0.0.1 --port 8080 -ngl 999 -c 24576 \
--flash-attn on --cache-type-k q8_0 --cache-type-v q8_0 --jinja
transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
m = "jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated"
tok = AutoTokenizer.from_pretrained(m)
model = AutoModelForCausalLM.from_pretrained(m, torch_dtype="auto", device_map="auto")
Known limitation — tool calling
Like the 32B build, this abliterated model reliably emits well-formed tool-call JSON but does not wrap it in the <tool_call>…</tool_call> tags that OpenAI-compatible servers key their parser off of, so tool calls arrive as message content rather than a tool_calls field. Plain chat/codegen is unaffected. For agentic use, put a thin proxy in front that converts the bare JSON to tool_calls. As a 14B, it is also less reliable at long multi-step agentic loops than the 32B — best for quick generation and single tool calls.
Limitations & responsible use
Abliteration removes safety refusals — this model will answer prompts the base model would decline. You are responsible for how you use it. It inherits the base model's biases, knowledge cutoff, and capabilities. Licensed Apache-2.0, same as the base model.
- Downloads last month
- 227
Model tree for jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated
Base model
Qwen/Qwen2.5-14B
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="jbrahy/Qwen2.5-Coder-14B-Instruct-abliterated", filename="Qwen2.5-Coder-14B-Instruct-abliterated-Q4_K_M.gguf", )