Instructions to use KellHect/Ornith-1.5-9B-Abliterated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KellHect/Ornith-1.5-9B-Abliterated with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="KellHect/Ornith-1.5-9B-Abliterated") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("KellHect/Ornith-1.5-9B-Abliterated") model = AutoModelForMultimodalLM.from_pretrained("KellHect/Ornith-1.5-9B-Abliterated", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KellHect/Ornith-1.5-9B-Abliterated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KellHect/Ornith-1.5-9B-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": "KellHect/Ornith-1.5-9B-Abliterated", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/KellHect/Ornith-1.5-9B-Abliterated
- SGLang
How to use KellHect/Ornith-1.5-9B-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 "KellHect/Ornith-1.5-9B-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": "KellHect/Ornith-1.5-9B-Abliterated", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "KellHect/Ornith-1.5-9B-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": "KellHect/Ornith-1.5-9B-Abliterated", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use KellHect/Ornith-1.5-9B-Abliterated with Docker Model Runner:
docker model run hf.co/KellHect/Ornith-1.5-9B-Abliterated
Ornith-1.5-9B-Abliterated
An abliterated derivative of ornith-ai/Ornith-1.5-9B
at revision 489cb97981b8654bcfcf30ce1f94ed1b62e07b53, released as full BF16.
Complete multimodal weights suitable for continued training and fine-tuning.
What changed
The language residual projections were modified. The vision tower, MTP block, tokenizer, chat template, and multimodal processors are preserved. The pipeline used complementary SVD and LEACE refusal-direction surgery, iterative re-probing, targeted security-prompt refinement, and weight-space blending.
Validation
Checkpoint validation verified all 775 BF16 tensors across four shards. The
surgery changed 166 approved language projection tensors and verified 599
protected tensors were unchanged. See validation_report.json for details.
The accepted checkpoint scored 0/12 refusal flags during refinement and
0/24 on a separate held-out first-token refusal screen. The held-out mean
refusal-token probability was 1.18e-5.
Coding evaluation was intentionally deferred before this release. These numbers are structural and refusal-screen diagnostics, not a claim of benchmark parity with the base model. A one-task generation smoke test is not reported as an evaluation result.
Usage
pip install torch transformers accelerate
import torch
from transformers import AutoModelForMultimodalLM, AutoProcessor
model_id = "KellHect/Ornith-1.5-9B-Abliterated"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
model_id, dtype=torch.bfloat16, device_map="auto"
)
messages = [{"role": "user", "content": "Explain this code and identify the bug."}]
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True,
return_dict=True, return_tensors="pt",
).to(model.device)
output = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Research context
This model has had refusal behavior deliberately reduced. It may comply with requests that the base model rejects. Users are responsible for deployment, access control, generated content, and compliance with applicable law.
Credits
- Ornith AI for the base model.
- OBLITERATUS for the abliteration research and implementation lineage.
- Arditi et al. for refusal-direction research and Belrose et al. for LEACE.
License
MIT. See LICENSE.
- Downloads last month
- 21
Model tree for KellHect/Ornith-1.5-9B-Abliterated
Base model
ornith-ai/Ornith-1.5-9B