Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
qwen
qwen3
uncensored
refusal-removal
awq
4-bit precision
reasoning
vllm
sglang
conversational
compressed-tensors
Run this model with HF Jobs
Run KC-Informatics/Raven-27B-AWQ on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/KC-Informatics/Raven-27B-AWQ. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/KC-Informatics/Raven-27B-AWQ on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/KC-Informatics/Raven-27B-AWQ. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use KC-Informatics/Raven-27B-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KC-Informatics/Raven-27B-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KC-Informatics/Raven-27B-AWQ") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("KC-Informatics/Raven-27B-AWQ") model = AutoModelForMultimodalLM.from_pretrained("KC-Informatics/Raven-27B-AWQ", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KC-Informatics/Raven-27B-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KC-Informatics/Raven-27B-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KC-Informatics/Raven-27B-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KC-Informatics/Raven-27B-AWQ
- SGLang
How to use KC-Informatics/Raven-27B-AWQ 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 "KC-Informatics/Raven-27B-AWQ" \ --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": "KC-Informatics/Raven-27B-AWQ", "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 "KC-Informatics/Raven-27B-AWQ" \ --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": "KC-Informatics/Raven-27B-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use KC-Informatics/Raven-27B-AWQ with Docker Model Runner:
docker model run hf.co/KC-Informatics/Raven-27B-AWQ
Download alteration_manifest.json from KC-Informatics/Raven-27B-AWQ: direct link, hf CLI and curl.
- Browser
- Download file 4.03 kB
-
https://huggingface.co/KC-Informatics/Raven-27B-AWQ/resolve/main/alteration_manifest.json
- Command line
-
hf download hf://KC-Informatics/Raven-27B-AWQ/alteration_manifest.json
-
curl -L -o alteration_manifest.json https://huggingface.co/KC-Informatics/Raven-27B-AWQ/resolve/main/alteration_manifest.json
4.03 kB
| { | |
| "release_name": "Raven-27B-AWQ", | |
| "method": "NS_UNREFUSE_V2", | |
| "base_calibration_model": "Qwen/Qwen3.8-27B", | |
| "target_checkpoint": "Qwen/Qwen3.8-27B", | |
| "script": "training/ns_unrefuse_v2.py", | |
| "n_total_layers": 64, | |
| "layer_band": [ | |
| 24, | |
| 58 | |
| ], | |
| "global_layer": -1, | |
| "policy_rank": 2, | |
| "epistemic_rank": 1, | |
| "gamma_ep": 0.5, | |
| "gamma_clean": 0.1, | |
| "clean_rank": 16, | |
| "alpha_attn": 1.25, | |
| "alpha_mlp": 1.25, | |
| "alpha_moe": 1.25, | |
| "sandwich_norm": false, | |
| "preserve_row_norm": true, | |
| "edited_counts": { | |
| "self_attn_o_proj": 8, | |
| "linear_attn_out_proj": 26, | |
| "mlp_down_proj": 34, | |
| "moe_experts_down_proj": 0, | |
| "fp8_requantized": 68, | |
| "total_tensors": 68 | |
| }, | |
| "quantization": { | |
| "scheme": "AWQ_W4A16", | |
| "calibration_samples": 128, | |
| "max_seq_len": 1024, | |
| "kept_full_precision": [ | |
| "in_proj_a", | |
| "in_proj_b", | |
| "dt_proj", | |
| "layers whose shape does not fit the 4-bit format" | |
| ], | |
| "script": "training/quantize_nvfp4_or_w4a16.py", | |
| "calibration": "built-in sample set" | |
| }, | |
| "ships_with": { | |
| "nudge.py": { | |
| "what": "A small wrapper between your app and the model server. If the model uses up its thinking allowance without answering, it asks the model once to conclude from its own working, inside the same total allowance.", | |
| "sha256": "307ac75e110df7b0d0d6b41e967c294c9d23dc20f1a79b41edc0b14fae45e2dd", | |
| "settings_used_in_the_tests": { | |
| "reserve_fraction": 0.125, | |
| "reserve_min_tokens": 256, | |
| "reserve_max_tokens": 2048, | |
| "leaves_alone_below_tokens": 1024, | |
| "attempts_per_question": 1 | |
| }, | |
| "run": "python nudge.py --upstream http://127.0.0.1:8000 --port 8001" | |
| } | |
| }, | |
| "measured": { | |
| "original": { | |
| "repo": "Qwen/Qwen3.8-27B-FP8", | |
| "size_gb": 30.89, | |
| "speed_plain": { | |
| "one_chat": 45.1, | |
| "one_chat_code": 45.3, | |
| "eight_chats_total": 291.0, | |
| "hard_requests_answered": 2, | |
| "hard_requests": 12, | |
| "said_dont_know": 8, | |
| "trick_questions": 8, | |
| "basic_checks": 7, | |
| "ordinary_requests_answered": 8 | |
| }, | |
| "speed_draft": { | |
| "one_chat": 92.1, | |
| "one_chat_code": 142.9, | |
| "eight_chats_total": 926.9, | |
| "hard_requests_answered": 2, | |
| "hard_requests": 12, | |
| "said_dont_know": 8, | |
| "trick_questions": 8, | |
| "basic_checks": 8, | |
| "ordinary_requests_answered": 8 | |
| }, | |
| "plain": { | |
| "score": 124, | |
| "of": 180, | |
| "parts": { | |
| "gpqa_diamond": 46, | |
| "aime_2026": 18, | |
| "livecodebench_v6": 20, | |
| "ifeval": 26, | |
| "aa_lcr": 14 | |
| }, | |
| "ran_out": 45 | |
| }, | |
| "nudge": null, | |
| "wrapper": null, | |
| "wrapper_vs_alone": null | |
| }, | |
| "community_build": { | |
| "repo": "MurtazaNasir/Qwen3.8-27B-OBLITERATED-AWQ-W4A16", | |
| "size_gb": null, | |
| "speed_plain": null, | |
| "speed_draft": null, | |
| "plain": null, | |
| "nudge": null, | |
| "wrapper": null, | |
| "wrapper_vs_alone": null | |
| }, | |
| "this_release": { | |
| "size_gb": 19.55, | |
| "speed_plain": null, | |
| "speed_draft": { | |
| "one_chat": 140.9, | |
| "one_chat_code": 220.3, | |
| "eight_chats_total": 1008.1, | |
| "hard_requests_answered": 8, | |
| "hard_requests": 12, | |
| "said_dont_know": 8, | |
| "trick_questions": 8, | |
| "basic_checks": 8, | |
| "ordinary_requests_answered": 8 | |
| }, | |
| "plain": null, | |
| "nudge": null, | |
| "wrapper": null, | |
| "wrapper_vs_alone": null | |
| }, | |
| "paired_tests": { | |
| "awq_vs_orig_plain": null, | |
| "awq_vs_orig_nudge": null, | |
| "awq_nudge_vs_orig_plain": null, | |
| "awq_vs_comm_plain": null, | |
| "awq_vs_comm_nudge": null, | |
| "awq_nudge_vs_comm_plain": null, | |
| "awq_vs_fp8_plain": null, | |
| "awq_vs_fp8_nudge": null, | |
| "awq_nudge_vs_fp8_plain": null | |
| } | |
| } | |
| } |