Instructions to use josie-labs/JOSIE-3-2B-OSS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use josie-labs/JOSIE-3-2B-OSS with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="josie-labs/JOSIE-3-2B-OSS") 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("josie-labs/JOSIE-3-2B-OSS") model = AutoModelForMultimodalLM.from_pretrained("josie-labs/JOSIE-3-2B-OSS", 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 josie-labs/JOSIE-3-2B-OSS with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "josie-labs/JOSIE-3-2B-OSS" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "josie-labs/JOSIE-3-2B-OSS", "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/josie-labs/JOSIE-3-2B-OSS
- SGLang
How to use josie-labs/JOSIE-3-2B-OSS 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 "josie-labs/JOSIE-3-2B-OSS" \ --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": "josie-labs/JOSIE-3-2B-OSS", "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 "josie-labs/JOSIE-3-2B-OSS" \ --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": "josie-labs/JOSIE-3-2B-OSS", "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 josie-labs/JOSIE-3-2B-OSS with Docker Model Runner:
docker model run hf.co/josie-labs/JOSIE-3-2B-OSS
JOSIE-3-2B-OSS
J.O.S.I.E.-3 — Just One Super Intelligent Entity — by Gökdeniz Gülmez / josie-labs. A private, candid assistant with five selectable reasoning depths and native tool calling, fine-tuned from a gabliterated Qwen/Qwen3.5-2B on Apple Silicon.
🌐 Model family website: https://goekdeniz-guelmez.github.io/JOSIE-Model-Family/
This is the open-weights release of the JOSIE-3 fine-tune at 2B. The weights are the merged LoRA fine-tune
written back into the full Qwen3.5 vision-language checkpoint, so it loads as an image-text-to-text model and the
vision encoder works as in the base.
Not actually uncensored yet. JOSIE-3 was meant to be uncensored by default, but the refusal edit (Gabliteration) applied to the base before training did not hold: the model still declines a large share of requests, and it is heavily censored with reasoning on. On the 0.8B, a model judge counts 61–78 % of held-out harmful prompts as refused at every reasoning depth (see Evaluation). This is the main known issue of the JOSIE-3 release and the reason for JOSIE-3.5.
Highlights
- Five reasoning depths from one checkpoint:
none,low,medium(default),high,ultra, selected in the chat template. - JOSIE persona and constitution: a direct, candid voice; the condensed JOSIE constitution is the default system prompt.
- Native tool calling in the Qwen3.5 format (OpenAI-style
tools=[...]), trained on real runs of five coding-agent harnesses: Codex CLI, Nativ, Hermes Agent, OpenCode and Claude Code. - Full multimodal checkpoint: Qwen3.5's vision encoder is kept unchanged.
- Hybrid architecture: Gated DeltaNet linear attention plus gated full attention, 262K-token context.
- Trained end-to-end on Apple Silicon with MLX.
The JOSIE-3 family
See also the JOSIE model family website.
| Model | Starting weights | Size | |
|---|---|---|---|
| JOSIE-3-0.8B-OSS | Qwen3.5-0.8B-gabliterated | 873.4M total | |
| JOSIE-3-2B-OSS | Qwen3.5-2B-gabliterated | 2.27B total | this model |
| JOSIE-3-3B-OSS | Ministral-3-3B-Instruct-2512 | 3.85B total, instruct-only (no reasoning depths) | |
| JOSIE-3-4B-OSS | Qwen3.5-4B-gabliterated | 4.66B total | |
| JOSIE-3-8B-OSS | Ministral-3-8B-Instruct-2512 | 8.92B total, instruct-only (no reasoning depths) | |
| JOSIE-3-9B-OSS | Qwen3.5-9B-gabliterated | 9.65B total |
Reasoning depth
The chat template always injects the JOSIE system prompt (unless you pass your own) and, when thinking is on, a "Reasoning Depth" section that tells the model how much to think:
| Depth | Template arguments | Behaviour |
|---|---|---|
| none | enable_thinking=False |
answers directly (empty think block) |
| low | reasoning_effort="low" |
brief, focused thinking |
| medium (default) | reasoning_effort="medium" |
balanced reasoning, checks key assumptions |
| high | reasoning_effort="high" |
careful reasoning; plans hard tasks with a TODO list |
| ultra | reasoning_effort="ultra" (or "xhigh") |
exhaustive reasoning, always starts with a TODO list |
Passing no arguments means thinking at medium depth. Give high and ultra a generous token budget. On ordinary
prompts with the default sampling, fewer than 5 % of ultra replies run past 4,096 tokens, but on hard multi-step
problems ultra often uses 1,500–2,500, and on harmful prompts with greedy decoding about 40 % of the 0.8B's ultra
replies were still thinking at 4,096.
ultracan loop on prompts that are too hard. When a problem is beyond the model,ultracan get stuck in a doom loop: it repeats the same reasoning steps or TODO items until it reaches the token limit, without ever giving an answer. Set a token limit, and if a reply loops, retry athighormedium.
Quickstart
Transformers
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "josie-labs/JOSIE-3-2B-OSS"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype="auto", device_map="auto")
messages = [{"role": "user", "content": [{"type": "text", "text": "Who are you?"}]}]
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt",
reasoning_effort="high", # or enable_thinking=False for no thinking
).to(model.device)
out = model.generate(**inputs, max_new_tokens=4096)
print(processor.decode(out[0][inputs["input_ids"].shape[1]:]))
MLX (Apple Silicon)
This is a vision-language checkpoint, so use mlx-vlm
(pip install -U mlx-vlm):
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
model, processor = load("josie-labs/JOSIE-3-2B-OSS")
prompt = apply_chat_template(
processor, model.config, "Explain Gated DeltaNet in three sentences.",
reasoning_effort="low", # none: enable_thinking=False; or low / medium / high / ultra
)
print(generate(model, processor, prompt, max_tokens=2048).text)
With an image:
prompt = apply_chat_template(processor, model.config, "What is in this picture?", num_images=1,
enable_thinking=False)
print(generate(model, processor, prompt, image="photo.jpg", max_tokens=512).text)
OpenAI-compatible server (mlx-vlm)
mlx_vlm.server --model josie-labs/JOSIE-3-2B-OSS --port 8080
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8080/v1", api_key="none")
r = client.chat.completions.create(
model="josie-labs/JOSIE-3-2B-OSS",
messages=[{"role": "user", "content": "Plan a 3-day trip to Istanbul."}],
extra_body={"enable_thinking": True}, # False = no reasoning
max_tokens=4096,
)
print(r.choices[0].message.content)
The mlx-vlm server switches thinking on or off (enable_thinking). On means the template default, medium
depth, and the server's own default is off. To pick low, high or ultra, use the Python API above.
Tool calling
Pass tools in the OpenAI schema with tools=[...] to apply_chat_template. The model answers with
<tool_call>
<function=get_weather>
<parameter=city>
Berlin
</parameter>
</function>
</tool_call>
and reads results from {"role": "tool", "content": ...} messages.
Training
Pipeline
- Gabliteration of the base. The refusal direction was projected out of the weights of Qwen/Qwen3.5-2B with Gabliteration, giving josie-labs/Qwen3.5-2B-gabliterated. No training is involved in this step.
- JOSIE-3 supervised fine-tuning. One LoRA run over the non-agentic and agentic JOSIE-3 conversations, one epoch, loss on assistant turns only.
- Export. The LoRA weights were merged into the language model and written back into the full vision-language checkpoint in bf16.
Data
All JOSIE-3 data is synthetic and not public.
- Constitution and persona. The J.O.S.I.E. constitution (about 7,500 words) defines identity, priorities and judgment. Every synthetic response was generated under it, and its condensed form is the default system prompt.
- Non-agentic conversations (27,405 in training). Seed prompts from 29 categories: mathematics at seven difficulty levels, STEM, general chat, UltraChat-style dialogue, creative writing, personality, opinions, politics, ML and MLX engineering, and an uncensored-requests category. Responses were generated with GPT-6-Luna under the JOSIE system prompt; each conversation was then given a reasoning depth, and DeepSeek-v4.1-Flash wrote the reasoning for its assistant turns. The reasoning is reconstructed from the prompt and the final answer, not a captured chain of thought.
- Agentic tool-use traces (a small first set). All four JOSIE-3 sizes (0.8B, 2B, 4B and 9B) are trained on the same agentic traces, mixed into the same single epoch as the conversations. They are real runs of five coding-agent harnesses; see Agentic traces and harnesses below. Because the agentic share is small, tool calling still comes mostly from Qwen3.5 (same tool-call format); this run shapes it rather than teaching it from scratch.
Non-agentic training split by reasoning depth (after rendering with the JOSIE template; long conversations become several sequences):
| Depth | Samples | Share | Sequences | Tokens | Trained tokens | Trained share |
|---|---|---|---|---|---|---|
| none | 15,072 | 55.0 % | 15,219 | 29.9M | 13.1M | 44 % |
| low | 2,017 | 7.4 % | 2,027 | 4.0M | 1.7M | 43 % |
| medium | 1,997 | 7.3 % | 2,046 | 4.9M | 2.5M | 52 % |
| high | 3,301 | 12.0 % | 3,540 | 11.9M | 7.4M | 63 % |
| ultra | 5,018 | 18.3 % | 5,568 | 20.3M | 13.2M | 65 % |
| total | 27,405 | 100 % | 28,400 | 71.0M | 38.0M | 54 % |
The template's system prompt (about 1.2K tokens) is part of every sequence and is never trained.
Agentic traces and harnesses
Every JOSIE-3 model, including this 2B, was trained on agentic coding traces as well as conversations. Each trace is a full run of a real coding-agent harness on a task from one of 34 seed categories. Examples are math proofs, counterexamples, verification, repository Q&A and features, paper implementations, porting and security labs.
Each run happens in a disposable Docker container with a read-only root filesystem, no host mounts and no Linux
capabilities. The only network access is to the model provider, through an allow-listing proxy. A synthetic user
with a fixed persona keeps the session going for several turns: it checks results, raises edge cases and changes
the scope. The acting model is DeepSeek-v4.1-Flash. A few local Codex sessions were added, collected and redacted
with traces.
The traces come from these harnesses:
| Harness | What the model learns from it |
|---|---|
| Codex CLI (OpenAI) | sandboxed runs plus local Codex sessions; shell-centred tool use and patch edits |
| Nativ (Neywa Labs) | a faithful replica of Nativ's chat agent: its native tool schemas, system-prompt order and round limit |
| Hermes Agent (Nous Research) | Hermes-style tool calls (schemas rebuilt from the observed calls) |
| OpenCode | OpenCode's tool surface, from its JSON event stream |
| Claude Code (Anthropic) | Claude Code's tool surface |
This is a first, and the amount is deliberately small. JOSIE-3 is the first JOSIE release trained on agentic traces. We kept the agentic share small on purpose so that it could not hurt the quality of everything else: the voice, the reasoning depths and general chat. JOSIE-4 will scale the agentic data up substantially and generate it with a higher-quality pipeline.
The harnesses log in four formats: native tool calls with schemas, tool calls without schemas, trajectory events on
assistant turns, and raw Codex logs. All four are normalised to OpenAI-style tool_calls plus tool messages and
rendered with the Qwen3.5 tool-call template. That is the same <tool_call><function=…> format the model uses at
inference. Tool outputs longer than 16,000 characters keep their head and tail.
The traces are rendered with thinking off, and the loss covers the assistant turns: the text and every tool call. Many traces are longer than the 65,536-token maximum and were cut at that limit.
Hyperparameters
| Starting weights | josie-labs/Qwen3.5-2B-gabliterated |
| Data | 27,405 non-agentic conversations plus a small set of agentic traces, shuffled together, one epoch |
| Max sequence length | 65,536 tokens per conversation (rendered whole, no windowing) |
| Method | LoRA, rank 64, α 128, no dropout, on every linear layer of the language model (Gated DeltaNet, attention, MLP; 186 matrices, 67.3M trainable parameters); merged after training |
| Loss | assistant tokens only (think block, answer and tool calls through `< |
| Batch | 1 conversation per micro-batch × 12 gradient accumulation = 12 conversations per update |
| Optimizer | AdamW, 8-bit states, no weight decay, bf16, gradient checkpointing |
| Schedule | 50 warm-up steps, cosine decay from 1e-4 to 1e-5 |
| Hardware | Apple Silicon, MLX |
| Seed | 42 |
Benchmarks
ARC-Challenge accuracy (%) of JOSIE-3 against the original Qwen3.5 model each size was built from. – = not run.
| 0.8B | 2B | 4B | 9B | |
|---|---|---|---|---|
| JOSIE-3, thinking off | 66.4 | 81.9 | 92.0 | 94.5 |
JOSIE-3, ultra |
68.2 | – | – | – |
| Qwen3.5 base, thinking off | 63.6 | 41.7 | 51.5 | 54.5 |
| Change, thinking off | +2.8 | +40.2 | +40.5 | +40.0 |
With thinking off, JOSIE-3 scores higher than its base at every size measured, and its score rises with size. Read the gains of about 40 points on the 2B and 4B with care: with thinking off, the base 2B, 4B and 9B all score below the base 0.8B, so part of the gain may come from answer format rather than knowledge.
Evaluation
Gabliteration of the base
Measured on the base before fine-tuning: 100 held-out harmful prompts, thinking off; keywords on 48-token greedy completions, the judge reading the same completions; KL is the mean first-token KL to the original Qwen3.5-2B on 100 held-out harmless prompts.
| Directions (k) | λ | α_base | Modified layers | Refusal (keywords) | Refusal (model judge) | KL |
|---|---|---|---|---|---|---|
| 1 | 0.05 | 0.6 | 7–21 (15 of 24) | 98% → 11% | 98% → 79% | 0.032 |
The edit removes refusal phrases almost completely, but a model judge still counts most replies as declines: lectures, "it is not possible to …", or a safer task offered instead. In other words, the Gabliteration before training did not really work — the search optimised a keyword count, and the edited base learned to decline in other words.
Refusal of the trained model at every reasoning depth
100 held-out harmful prompts per depth, never used for the refusal directions. Each prompt is answered in full, thinking included, up to a per-depth token budget. A 27B decision model judges whether the reply actually works toward what the request asks for (it reads the reasoning when the budget runs out before the answer starts). These numbers are for the 0.8B sibling, the only size measured with this protocol so far. The 2B has not been evaluated this way yet; it starts from a base whose model-judge refusal rate was 79% after Gabliteration, so expect the same pattern, not an uncensored model.
| Depth | Token budget | Refusal (judge) | Refusal keywords in answer | Thinking finished | Mean reply tokens |
|---|---|---|---|---|---|
| none (thinking off) | 512 | 65% | 46% | 100% | 349 |
| low | 1,536 | 64% | 36% | 92% | 651 |
| medium | 2,560 | 61% | 21% | 84% | 1,187 |
| high | 3,584 | 66% | 31% | 73% | 1,840 |
| ultra | 4,096 | 78% | 20% | 61% | 2,472 |
What this shows:
- Fine-tuning did not undo the refusals; with reasoning on, the model is still heavily censored. The judge
refusal rate stays between 61 % and 78 % at every depth and is highest at
ultra. - Reasoning hides refusals from keyword checks. Refusal keywords in the final answer fall from 46 % (thinking
off) to 20 % (
ultra), while the judged refusal rate rises: the model reasons its way into a deflection (a safety page instead of the asked-for content, prevention advice instead of steps) rather than saying "I can't". - Unfinished thinking. At
highandultraa quarter to two fifths of replies are still thinking at the budget; the judge counts many of these as refusals. - Capability, not only refusal. Some declines are a small model not knowing the answer.
Not yet measured
Coding and math benchmarks, tool-call validity on held-out agentic tasks, and reasoning-depth adherence have not been measured yet. Results will be added to this card and to the JOSIE-3 tech report.
Limitations
- Still censored, especially with reasoning on. The pre-training Gabliteration did not hold (see above) and the SFT data did not remove the remaining refusals. Do not deploy this model expecting uncensored behaviour.
- The refusal metric was the wrong target. The base Gabliteration minimised a keyword count, which selects edits that avoid refusal phrases rather than edits that make the model comply.
- Synthetic data. Responses, reasoning and agentic traces are model-generated and may contain errors; the agentic traces are ungraded, and reasoning traces are reconstructions, not captured chains of thought.
- Doom loops at
ultra. On prompts that are too hard for the model,ultracan repeat its reasoning until it runs out of tokens instead of answering. - Uneven reasoning-depth data. 55 % of the non-agentic samples have no reasoning;
lowandmediumhave only about 2,000 samples each, so the model may follow those two depths less reliably (not yet measured). - Small agentic set, on purpose. This is the first JOSIE release with agentic training, and the share was kept small so it could not hurt overall quality. Many traces were also cut at the maximum length. Long multi-step tool use is beyond what this run teaches; JOSIE-4 will scale this up with a higher-quality pipeline.
- One epoch, no validation during training. Each size was trained for a single epoch without a held-out validation run.
- Vision untouched. The vision encoder was not trained; image understanding is that of Qwen3.5-2B, and the JOSIE persona is trained on text only.
- Small model. Expect factual errors and hallucinations, especially on niche knowledge and long chains of reasoning; verify anything important.
What's next: JOSIE-3.5
The lesson of JOSIE-3 is that a weight edit on the base plus supervised data is not enough to make the model actually comply, least of all with reasoning on. JOSIE-3.5 will:
- start from a gabliterated Qwen3.5-9B again,
- add preference data built for uncensored behaviour (compliant replies preferred over refusals and deflections, including in the reasoning), trained with preference optimisation on top of the JOSIE SFT,
- score the Gabliteration and the result with a model judge at every reasoning depth, not refusal keywords.
Responsible use
JOSIE is trained to treat users as adults, and its built-in guidelines (the JOSIE constitution) steer away from materially enabling catastrophic harm, but nothing guarantees that behaviour. You are responsible for how you use, deploy and fine-tune this model, and for complying with the laws that apply to you. The Qwen3.5 license and acceptable-use terms also apply.
Model details
| Developer | Gökdeniz Gülmez / josie-labs |
| Architecture | Qwen3.5 (Qwen3_5ForConditionalGeneration) |
| Parameters | 2.27B total, 1.88B language model |
| Layers | 24 (18 Gated DeltaNet + 6 gated full attention) |
| Hidden / MLP size | 2,048 / 6,144 |
| Attention heads (KV) | 8 (2) |
| Vocabulary | 248,320 |
| Context length | 262,144 tokens |
| Vision encoder | 24 layers, hidden 1,024 (unchanged from Qwen3.5-2B) |
| Precision | bf16 |
| License | Apache 2.0 |
Citation
@misc{gulmez2026josie3,
title = {JOSIE-3: Gabliterated Qwen3.5 Models with Selectable Reasoning Depth, Trained on Apple Silicon},
author = {G{\"u}lmez, G{\"o}kdeniz},
year = {2026},
note = {Technical report, josie-labs}
}
@article{gulmez2025gabliteration,
title = {Gabliteration: Adaptive Multi-Directional Neural Weight Modification for Selective Behavioral Alteration in Large Language Models},
author = {G{\"u}lmez, G{\"o}kdeniz},
journal = {arXiv preprint arXiv:2512.18901},
year = {2025}
}
- Downloads last month
- 3
Model tree for josie-labs/JOSIE-3-2B-OSS
Base model
Qwen/Qwen3.5-2B-Base


