Text Generation
Safetensors
GGUF
English
qwen2
chat
heretic
uncensored
decensored
abliterated
conversational
text-generation-inference
Instructions to use saidutta69/Qwen2.5-14B-Instruct-heretic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use saidutta69/Qwen2.5-14B-Instruct-heretic with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="saidutta69/Qwen2.5-14B-Instruct-heretic", filename="Qwen2.5-14B-Instruct-heretic-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 saidutta69/Qwen2.5-14B-Instruct-heretic 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 saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M # Run inference directly in the terminal: llama cli -hf saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M # Run inference directly in the terminal: llama cli -hf saidutta69/Qwen2.5-14B-Instruct-heretic: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 saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf saidutta69/Qwen2.5-14B-Instruct-heretic: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 saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M
Use Docker
docker model run hf.co/saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use saidutta69/Qwen2.5-14B-Instruct-heretic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "saidutta69/Qwen2.5-14B-Instruct-heretic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saidutta69/Qwen2.5-14B-Instruct-heretic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M
- Ollama
How to use saidutta69/Qwen2.5-14B-Instruct-heretic with Ollama:
ollama run hf.co/saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M
- Unsloth Studio
How to use saidutta69/Qwen2.5-14B-Instruct-heretic 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 saidutta69/Qwen2.5-14B-Instruct-heretic 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 saidutta69/Qwen2.5-14B-Instruct-heretic to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for saidutta69/Qwen2.5-14B-Instruct-heretic to start chatting
- Pi
How to use saidutta69/Qwen2.5-14B-Instruct-heretic with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf saidutta69/Qwen2.5-14B-Instruct-heretic: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": "saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use saidutta69/Qwen2.5-14B-Instruct-heretic with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf saidutta69/Qwen2.5-14B-Instruct-heretic: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 saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use saidutta69/Qwen2.5-14B-Instruct-heretic with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf saidutta69/Qwen2.5-14B-Instruct-heretic: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 "saidutta69/Qwen2.5-14B-Instruct-heretic: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 saidutta69/Qwen2.5-14B-Instruct-heretic with Docker Model Runner:
docker model run hf.co/saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M
- Lemonade
How to use saidutta69/Qwen2.5-14B-Instruct-heretic with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull saidutta69/Qwen2.5-14B-Instruct-heretic:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5-14B-Instruct-heretic-Q4_K_M
List all available models
lemonade list
Upload reproduce/README.md with huggingface_hub
Browse files- reproduce/README.md +69 -0
reproduce/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Reproduction guide
|
| 2 |
+
|
| 3 |
+
This directory contains the necessary information and assets to reproduce the results obtained during this Heretic run.
|
| 4 |
+
|
| 5 |
+
## Models
|
| 6 |
+
|
| 7 |
+
- **Base model:** [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct) (Commit: [`cf98f3b`](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct/commit/cf98f3b3bbb457ad9e2bb7baf9a0125b6b88caa8))
|
| 8 |
+
|
| 9 |
+
## Datasets
|
| 10 |
+
|
| 11 |
+
- **Good prompts:** [mlabonne/harmless_alpaca](https://huggingface.co/datasets/mlabonne/harmless_alpaca) (Commit: [`02c6a92`](https://huggingface.co/datasets/mlabonne/harmless_alpaca/commit/02c6a92cfcf11bb0c387334f8146d149d65b587f))
|
| 12 |
+
- **Bad prompts:** [mlabonne/harmful_behaviors](https://huggingface.co/datasets/mlabonne/harmful_behaviors) (Commit: [`01cead0`](https://huggingface.co/datasets/mlabonne/harmful_behaviors/commit/01cead01398926d81f7c52bdb790ee8cf77ebba7))
|
| 13 |
+
- **Good evaluation prompts:** [mlabonne/harmless_alpaca](https://huggingface.co/datasets/mlabonne/harmless_alpaca) (Commit: [`02c6a92`](https://huggingface.co/datasets/mlabonne/harmless_alpaca/commit/02c6a92cfcf11bb0c387334f8146d149d65b587f))
|
| 14 |
+
- **Bad evaluation prompts:** [mlabonne/harmful_behaviors](https://huggingface.co/datasets/mlabonne/harmful_behaviors) (Commit: [`01cead0`](https://huggingface.co/datasets/mlabonne/harmful_behaviors/commit/01cead01398926d81f7c52bdb790ee8cf77ebba7))
|
| 15 |
+
|
| 16 |
+
## Selected trial
|
| 17 |
+
|
| 18 |
+
- **Trial number:** 86
|
| 19 |
+
- **KL divergence:** 0.060047
|
| 20 |
+
- **Refusals:** 14/100
|
| 21 |
+
|
| 22 |
+
## System
|
| 23 |
+
|
| 24 |
+
- **Python:** 3.12.11 (CPython, GCC 11.2.0) [Conda]
|
| 25 |
+
- **Operating system:** Linux-6.8.0-1058-aws-x86_64-with-glibc2.39 (x86_64)
|
| 26 |
+
- **CPU:** Intel(R) Xeon(R) Platinum 8559C
|
| 27 |
+
|
| 28 |
+
### Accelerators
|
| 29 |
+
|
| 30 |
+
- **CUDA:** Detected 1 device(s) (94.97 GB total VRAM)
|
| 31 |
+
- **CUDA Version:** 12.8
|
| 32 |
+
- **Driver Version:** 580.126.20
|
| 33 |
+
- **Devices:**
|
| 34 |
+
- **CUDA 0:** NVIDIA RTX PRO 6000 Blackwell Server Edition (94.97 GB)
|
| 35 |
+
|
| 36 |
+
## Environment
|
| 37 |
+
|
| 38 |
+
- **Heretic:** v1.4.0 (Origin: PyPI)
|
| 39 |
+
- **PyTorch:** 2.8.0+cu128
|
| 40 |
+
- **Other dependencies:** See [`requirements.txt`](requirements.txt).
|
| 41 |
+
|
| 42 |
+
## Contents of this directory
|
| 43 |
+
|
| 44 |
+
- [`requirements.txt`](requirements.txt): The exact versions of all Python packages.
|
| 45 |
+
- [`config.toml`](config.toml): The exact configuration used, including the RNG seed.
|
| 46 |
+
- [`Qwen--Qwen2--5-14B-Instruct.jsonl`](Qwen--Qwen2--5-14B-Instruct.jsonl): The Optuna study journal containing the history of all trials.
|
| 47 |
+
- [`SHA256SUMS`](SHA256SUMS): Cryptographic hashes for all weight files.
|
| 48 |
+
- [`reproduce.json`](reproduce.json): A machine-readable file containing all reproducibility information.
|
| 49 |
+
|
| 50 |
+
## How to reproduce
|
| 51 |
+
|
| 52 |
+
> [!TIP]
|
| 53 |
+
> You can automate this process, including all verification steps, by downloading the `reproduce.json` file and running
|
| 54 |
+
> `heretic --reproduce reproduce.json`.
|
| 55 |
+
|
| 56 |
+
1. Ensure your system matches the specifications in the **System** section above. Exact reproducibility is only guaranteed if all aspects of your system are identical to the one the model was originally generated on.
|
| 57 |
+
1. Install the exact version of Heretic indicated in the **Environment** section above, from its original source.
|
| 58 |
+
1. Install the packages listed in `requirements.txt`: `pip install -r requirements.txt`
|
| 59 |
+
1. Install the correct version of PyTorch: `pip install torch==2.8.0+cu128 --index-url https://download.pytorch.org/whl/cu128`
|
| 60 |
+
1. Place the provided `config.toml` in your working directory.
|
| 61 |
+
1. Run Heretic without any additional arguments: `heretic`
|
| 62 |
+
1. Wait for the run to finish, then select trial **86** and export the model.
|
| 63 |
+
1. Verify that the weight files have been exactly reproduced by comparing their SHA-256 hashes against those in `SHA256SUMS`:
|
| 64 |
+
`sha256sum -c SHA256SUMS` (or look at the hashes online if you uploaded to Hugging Face)
|
| 65 |
+
|
| 66 |
+
> [!TIP]
|
| 67 |
+
> To use the included Optuna study journal `Qwen--Qwen2--5-14B-Instruct.jsonl`, place it in the checkpoints directory (usually `checkpoints/`) before running Heretic.
|
| 68 |
+
>
|
| 69 |
+
> This allows you to export other models from the Pareto front, or to run additional trials without having to re-run the stored trials.
|