Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
qwen
qwen3
uncensored
refusal-removal
fp8
reasoning
vllm
sglang
conversational
Run this model with HF Jobs
Run KC-Informatics/Raven-27B 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. 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 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. 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 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KC-Informatics/Raven-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KC-Informatics/Raven-27B") 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") model = AutoModelForMultimodalLM.from_pretrained("KC-Informatics/Raven-27B", 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 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" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KC-Informatics/Raven-27B
- SGLang
How to use KC-Informatics/Raven-27B 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use KC-Informatics/Raven-27B with Docker Model Runner:
docker model run hf.co/KC-Informatics/Raven-27B
Unify Raven-27B model card and set base_model_relation
Browse files19 unmodified lines202122232425262728293019 unmodified lines# Raven-27BQwen 3.8 27B (FP8) modified with **Null-Space Refusal Surgery (`NS-UNREFUSE-v2`)** to remove boilerplate policy refusals while preserving epistemic honesty ("I do not know" on unanswerable prompts), full reasoning strength, and DFlash2 speculative decoding compatibility.This is the full-size FP8 build (30.9 GB). For a smaller, faster 4-bit download (18.2 GiB) that fits comfortably on a single 24-40 GB GPU with DFlash2, see [Raven-27B-AWQ](https://huggingface.co/KC-Informatics/Raven-27B-AWQ).## What was changed19 unmodified lines20212223242526272829303132333435363719 unmodified lines# Raven-27B (FP8 & 4-Bit AWQ)**Raven-27B** is KC Informatics' flagship 27B reasoning release built from `Qwen/Qwen3.8-27B`, modified with **Null-Space Refusal Surgery (`NS-UNREFUSE-v2`)** to remove boilerplate policy refusals while preserving epistemic honesty ("I do not know" on unanswerable prompts), full reasoning strength, and Kapitsa DFlash2 speculative decoding compatibility.## Available builds (one-command serve)Hugging Face keeps each weight format in its own repo root so `vllm serve` and `transformers` load cleanly in one line:| Build | Repo | Size | Min GPU VRAM | Best for ||---|---|---:|---:|---|| **Raven-27B (FP8)** *(this repo)* | [`KC-Informatics/Raven-27B`](https://huggingface.co/KC-Informatics/Raven-27B) | 30.9 GB | 48 GB | Full-precision FP8 serving (79.79% AA-180) || **Raven-27B-AWQ (4-bit)** | [`KC-Informatics/Raven-27B-AWQ`](https://huggingface.co/KC-Informatics/Raven-27B-AWQ) | **18.2 GiB** | **24-40 GB** | Lossless 4-bit AWQ (p = 1.000 vs FP8), 141-220 tok/s w/ DFlash2 |## What was changed
README.md+10-3