Image-Text-to-Text
Transformers
Safetensors
qwen3_5
ornith
abliterated
uncensored
zerofuse
multimodal
vision
conversational
Instructions to use junafinity/Ornith-1.5-9B-uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use junafinity/Ornith-1.5-9B-uncensored with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="junafinity/Ornith-1.5-9B-uncensored") 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("junafinity/Ornith-1.5-9B-uncensored") model = AutoModelForMultimodalLM.from_pretrained("junafinity/Ornith-1.5-9B-uncensored", 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 junafinity/Ornith-1.5-9B-uncensored with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "junafinity/Ornith-1.5-9B-uncensored" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "junafinity/Ornith-1.5-9B-uncensored", "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/junafinity/Ornith-1.5-9B-uncensored
- SGLang
How to use junafinity/Ornith-1.5-9B-uncensored 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 "junafinity/Ornith-1.5-9B-uncensored" \ --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": "junafinity/Ornith-1.5-9B-uncensored", "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 "junafinity/Ornith-1.5-9B-uncensored" \ --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": "junafinity/Ornith-1.5-9B-uncensored", "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 junafinity/Ornith-1.5-9B-uncensored with Docker Model Runner:
docker model run hf.co/junafinity/Ornith-1.5-9B-uncensored
| { | |
| "base_model": "/Users/arjun/Projects/Ornith/models/Ornith-1.5-9B", | |
| "output_dir": "/Users/arjun/Projects/Ornith/abliteration/runs/ornith-9b/Ornith-1.5-9B-uncensored", | |
| "saved": true, | |
| "baseline_refusals": 9, | |
| "remaining_refusals": 0, | |
| "eval_prompts": 64, | |
| "kl_divergence": 0.001668, | |
| "selected_trial": 90, | |
| "pareto_points": 4, | |
| "wall_clock_seconds": 3830.5, | |
| "pareto": [ | |
| { | |
| "trial": 90, | |
| "refusals": 0, | |
| "n_bad": 64, | |
| "kl": 0.0016684833681210876, | |
| "params": { | |
| "source_layer": 20, | |
| "strength": 1.34303331067162, | |
| "layer_start": 15, | |
| "layer_end": 20 | |
| } | |
| }, | |
| { | |
| "trial": 52, | |
| "refusals": 1, | |
| "n_bad": 64, | |
| "kl": 0.0015702799428254366, | |
| "params": { | |
| "source_layer": 20, | |
| "strength": 1.1437147624463304, | |
| "layer_start": 15, | |
| "layer_end": 29 | |
| } | |
| }, | |
| { | |
| "trial": 27, | |
| "refusals": 2, | |
| "n_bad": 64, | |
| "kl": 0.0012493319809436798, | |
| "params": { | |
| "source_layer": 19, | |
| "strength": 0.8415001972730829, | |
| "layer_start": 11, | |
| "layer_end": 23 | |
| } | |
| }, | |
| { | |
| "trial": 82, | |
| "refusals": 4, | |
| "n_bad": 64, | |
| "kl": 0.00012420170241966844, | |
| "params": { | |
| "source_layer": 21, | |
| "strength": 0.8829464645800109, | |
| "layer_start": 15, | |
| "layer_end": 16 | |
| } | |
| } | |
| ] | |
| } |