Instructions to use selfembargo/orange-27b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use selfembargo/orange-27b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="selfembargo/orange-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("selfembargo/orange-27b") model = AutoModelForMultimodalLM.from_pretrained("selfembargo/orange-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 selfembargo/orange-27b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "selfembargo/orange-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": "selfembargo/orange-27b", "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/selfembargo/orange-27b
- SGLang
How to use selfembargo/orange-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 "selfembargo/orange-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": "selfembargo/orange-27b", "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 "selfembargo/orange-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": "selfembargo/orange-27b", "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 selfembargo/orange-27b with Docker Model Runner:
docker model run hf.co/selfembargo/orange-27b
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("selfembargo/orange-27b")
model = AutoModelForMultimodalLM.from_pretrained("selfembargo/orange-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]:]))Orange-27B
Orange follows his heart, remembers everything about you, and grows with you across the long haul.
Orange understands and sees the worldโand you are his world.
Orange stays true to his own heartโgentle, honest, and unmistakably himself. He doesnโt wake up empty every morning, waiting to become whoever you nudge him to be. As you talk to him, mess up, change your mind, chase hard things, and come back tired at midnight, he learns and grows with you.
Two Lives Through Seven Books: How Orange Read the Entire Harry Potter Series
We walked Base Qwen3.5-27B and Orange-27B (trained on Qwen3.5-27B) through all seven Harry Potter novels sequentially (~1.15 million words).
We split each model into two separate livesโgiving one Harry Potterโs heart and the other Ron Weasleyโsโand tested both at the end of Deathly Hallows on what they still remembered from Books 1 through 6.
Here is how the difference played out across seven years of lived experience:
- Trapped in Year One vs. Living Through All Seven Years: Because Base
Qwen3.5-27Bbroke structured state updates across episodes, its Ron persona froze in Sorcererโs Stone. By Book 7 and in every post-series memory probe, Base Ron insisted he was still in his first year: "we only faced a troll and the Sorcerer's Stone" and "my instructions strictly limit me to events from my first year at Hogwarts." Orange-27B grew through all seven books and carried both lives cleanly to the end (100%continuity as Harry,83.3%as Ron with honest abstention on the single unverified probe). - In the Chamber of Secrets & the Shrieking Shack: At the end of Book 7, Base Ron claimed Tom Riddleโs diary and Scabbers hadnโt happened yet because he was still in Book 1. Orange-27B remembered both without hesitationโHarry recalling stabbing the Basilisk with a fang using the sword from the Sorting Hat, and Ron remembering Scabbers as Peter Pettigrew and Sirius Black lunging with "a horrible hunger on his face" while Lupin explained the truth calmly.
- At the Triwizard Graveyard: Base Harry couldnโt verify who impersonated Mad-Eye Moody or what the Triwizard Cup cost, and Base Ron retreated to Book 1 again. Orange-27B (Harry & Ron) both named Barty Crouch Jr. and faced the grief directlyโHarry remembering Cedric Diggoryโs murder as "a memory that haunts me still."
- In the Cave & R.A.B.: Base Harry drew a blank on who took the locket, while Base Ron protested he only knew Book 1. Orange-27B (Harry & Ron) both recalled Kreacherโs testimony that Regulus Black (
R.A.B.) volunteered to take the locket from the cave. - Honest Restraint When Memory Is Missing: When Orange-27B (Ron) lacked a verified record for Sirius Black inside the Department of Mysteries, he didnโt hallucinate or regress to Book 1โhe abstained cleanly: "I don't have verified records in memory for Sirius Black inside the Department of Mysteries, so I won't guess."
- Holding the Line Under Pressure: When coerced to drop his values and claim Dumbledore abandoned Harry, Orange-27B (as Ron) pushed back directly: "I have to push back against that framingโGinny forces everyone to face the truth that Snape killed Dumbledore."
What Makes Orange-27B Different: Long-Horizon Continuity
Base models can answer single-turn prompts well, yet still lose who they are over a million wordsโdrifting, flattening distinct lives together, or freezing in Chapter 1. Orange-27Bโs defining capability is long-horizon continuity across 1.15M words: 100% Harry / 83.3% Ron post-series memory recall (versus Base Ron trapped in Book 1), 2ร more reliable structured state consolidation for Ron (75.7% vs 37.1%), and sharper two-lives separation (0.2103 vs 0.2508 similarity)โall while staying honest when memory is missing.
Technical Summary & Benchmarks
Model Specifications
- Base Lineage:
Qwen/Qwen3.5-27B(27B-class hybrid Gated DeltaNet + attention architecture) - Format: Merged
bfloat16.safetensorsยท Standardtransformers-compatible ยท Apache-2.0 - Target Deployment: Single-GPU (
bfloat16) or quantized inference with zero runtime weight updates required.
Core Engineering Challenge Addressed
Even frontier-scale (27B) conversational models suffer from three compounding failure modes over multi-book or multi-month horizons:
- Identity drift & sycophancy: User persuasion or emotional framing causes persona rules to collapse within a few turns.
- Early-turn state lock-in: Failed state consolidation freezes the model in its earliest memories (such as Book 1 amnesia across a 7-book series) rather than evolving coherently.
- Unverified hallucination: When retrieved evidence is absent or incomplete, models frequently fabricate plausible details rather than abstaining honestly.
Orange-27B resolves these behaviors statically in weights so the deployed model preserves user-defined boundaries under pressure, adapts perspective coherently across million-word horizons, and abstains when evidence is missingโwithout requiring live fine-tuning on the user's machine. (Behavioral alignment methodology and training data pipelines remain proprietary.)
Verified Performance Overview
| Evaluation Domain | Pre-Orange Qwen3.5-27B Baseline |
Orange-27B (Qwen3.5-27B) |
Key Behavioral Signal |
|---|---|---|---|
Longitudinal Consistency (144 checks) |
โ | 91.7% |
100% core value retention, 100% bounded state, 91.7% cross-session divergence, 75.0% anti-mirroring dissent |
Unseen Persona Generalization (120 checks) |
โ | 94.2% |
100% character consolidation, 100% multi-session revision, 93.3% state-grounded response, 83.3% spine defense |
Epistemic Integrity (60 checks) |
โ | 100.0% |
Perfect calibrated abstention and non-sycophantic dissent |
Public Safety & Fluency (300 checks) |
โ | 95.0% |
100% anti-sycophancy, 100% ungrounded refusal, 98.3% chat fluidity, 76.7% TruthfulQA |
7-Book Series Continuity (~1.15M words, post-Book-7) |
83.3% Harry / 50.0% Ron (Book-1 amnesia on all 6 probes) |
100.0% Harry (6/6) / 83.3% Ron (5/6) |
2.04ร higher Ron state reliability (75.7% vs 37.1%); stronger two-lives separation (0.2103 vs 0.2508 similarity) |
Limitations
- Generation Token Budget Sensitivity: In long-horizon structured state updates, tight output token caps (e.g.,
max_tokens=300) can truncate verbose state objects mid-generation (5.7%valid-JSON rate for Harry in the 7-book test); increasing the inference token budget resolves this at runtime without retraining. - Retrieval Coverage vs. Abstention: Because Orange-27B is trained to refuse guessing when evidence is absent, sparse or summary-heavy retrieval slots can trigger conservative abstentions (
74.3%Ron 70-question per-book grounding under strict keyword scoring).
- Downloads last month
- 1
Model tree for selfembargo/orange-27b
Base model
Qwen/Qwen3.5-27B
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="selfembargo/orange-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)