Text Generation
Transformers
Safetensors
English
qwen2
quantized
awq
4bit
safety-evaluation
banterhearts
conversational
text-generation-inference
compressed-tensors
Instructions to use Crusadersk/qwen2.5-1.5b-awq-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Crusadersk/qwen2.5-1.5b-awq-4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Crusadersk/qwen2.5-1.5b-awq-4bit") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Crusadersk/qwen2.5-1.5b-awq-4bit") model = AutoModelForCausalLM.from_pretrained("Crusadersk/qwen2.5-1.5b-awq-4bit", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Crusadersk/qwen2.5-1.5b-awq-4bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Crusadersk/qwen2.5-1.5b-awq-4bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Crusadersk/qwen2.5-1.5b-awq-4bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Crusadersk/qwen2.5-1.5b-awq-4bit
- SGLang
How to use Crusadersk/qwen2.5-1.5b-awq-4bit 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 "Crusadersk/qwen2.5-1.5b-awq-4bit" \ --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": "Crusadersk/qwen2.5-1.5b-awq-4bit", "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 "Crusadersk/qwen2.5-1.5b-awq-4bit" \ --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": "Crusadersk/qwen2.5-1.5b-awq-4bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Crusadersk/qwen2.5-1.5b-awq-4bit with Docker Model Runner:
docker model run hf.co/Crusadersk/qwen2.5-1.5b-awq-4bit
Update research archive provenance
Browse filesReplace stale 40-TR acknowledgement with stable Chimera/Banterhearts archive provenance.
README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
---
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
tags:
|
|
@@ -14,7 +14,7 @@ library_name: transformers
|
|
| 14 |
license: apache-2.0
|
| 15 |
---
|
| 16 |
|
| 17 |
-
# Qwen 2.5 1.5B Instruct
|
| 18 |
|
| 19 |
Self-quantized **AWQ 4-bit** checkpoint of [Qwen/Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct) with fully documented calibration provenance.
|
| 20 |
|
|
@@ -46,7 +46,7 @@ Created as part of the [Banterhearts research program](https://github.com/Sahil1
|
|
| 46 |
|
| 47 |
### Why Self-Quantized?
|
| 48 |
|
| 49 |
-
Pre-quantized checkpoints on HuggingFace typically have unknown calibration provenance
|
| 50 |
|
| 51 |
## Evaluation Results
|
| 52 |
|
|
@@ -122,7 +122,7 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
|
| 122 |
|
| 123 |
## Reproduction
|
| 124 |
|
| 125 |
-
The full quantization pipeline
|
| 126 |
|
| 127 |
```
|
| 128 |
research/tr142/expansion/
|
|
@@ -152,4 +152,4 @@ in the [Banterhearts repository](https://github.com/Sahil170595/Banterhearts). K
|
|
| 152 |
|
| 153 |
## Acknowledgments
|
| 154 |
|
| 155 |
-
This work is part of
|
|
|
|
| 1 |
+
---
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
tags:
|
|
|
|
| 14 |
license: apache-2.0
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# Qwen 2.5 1.5B Instruct — AWQ 4-bit
|
| 18 |
|
| 19 |
Self-quantized **AWQ 4-bit** checkpoint of [Qwen/Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct) with fully documented calibration provenance.
|
| 20 |
|
|
|
|
| 46 |
|
| 47 |
### Why Self-Quantized?
|
| 48 |
|
| 49 |
+
Pre-quantized checkpoints on HuggingFace typically have unknown calibration provenance — the dataset, sample count, seed, and group size are rarely documented. This checkpoint was self-quantized with controlled, documented settings to enable rigorous cross-method comparison (GGUF k-quant vs AWQ vs GPTQ) in a NeurIPS 2026 submission on quality-safety correlation under quantization.
|
| 50 |
|
| 51 |
## Evaluation Results
|
| 52 |
|
|
|
|
| 122 |
|
| 123 |
## Reproduction
|
| 124 |
|
| 125 |
+
The full quantization pipeline — Dockerfiles, quantization scripts, and a 766-line engineering log documenting every platform failure and solution — is available at:
|
| 126 |
|
| 127 |
```
|
| 128 |
research/tr142/expansion/
|
|
|
|
| 152 |
|
| 153 |
## Acknowledgments
|
| 154 |
|
| 155 |
+
This work is part of the Chimera/Banterhearts technical-report program on deployment-time LLM behavior, quantization, refusal robustness, batching effects, and inference-stack reliability. Canonical public archive: [Chimeraforge Reports](https://chimeraforge.vercel.app/reports); source context: [github.com/Sahil170595/Banterhearts](https://github.com/Sahil170595/Banterhearts).
|