OCC-4B
OCC-4B is our first general-purpose agentic model, built for long-running assistant tasks that combine user interaction and tool use, with a focus on multi-turn workflows and iterative search.
Highlights
- Agentic training. Fine-tuned for agentic tasks and supports both instruct and thinking modes.
- Function calling. Natively supports function calling, taking actions across multiple tools as the conversation unfolds.
- Search. Answers questions through iterative search across diverse sources, using each finding to guide the next query and connect evidence along the way.
Performance
Instruct
Thinking
Subagent Orchestration (Preview)
OCC-4B can also direct subagents: it runs several copies of itself in parallel and combines their answers into the final response, improving on a single agent.
Quickstart
OCC-4B keeps the architecture and chat template of Qwen3.5-4B, so it runs anywhere Qwen3.5-4B runs. It supports both
instruct and thinking modes. Instruct is the default and recommended mode. To enable thinking, pass enable_thinking: true in the chat template arguments.
vLLM
vllm serve occ-ai/OCC-4B \
--port 8000 \
--max-model-len 262144 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder
Add --language-model-only to skip the vision encoder and free memory for the KV cache.
SGLang
python -m sglang.launch_server \
--model-path occ-ai/OCC-4B \
--port 8000 \
--context-length 262144 \
--reasoning-parser qwen3 \
--tool-call-parser qwen3_coder
Both commands start an OpenAI-compatible server at http://localhost:8000/v1.
Function calling
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
tools = [{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather for a city.",
"parameters": {
"type": "object",
"properties": {"city": {"type": "string"}},
"required": ["city"],
},
},
}]
response = client.chat.completions.create(
model="occ-ai/OCC-4B",
messages=[{"role": "user", "content": "What's the weather in Moscow?"}],
tools=tools,
temperature=0.7,
top_p=0.8,
extra_body={"top_k": 20},
)
print(response.choices[0].message.tool_calls)
Transformers
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "occ-ai/OCC-4B"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
messages = [{"role": "user", "content": [{"type": "text", "text": "Plan a three-day trip to Kazan."}]}]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
enable_thinking=False, # set to True for thinking mode
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=32768, do_sample=True, temperature=0.7, top_p=0.8, top_k=20)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
Recommended sampling parameters
[!Tip] We recommend using the following sampling parameters for generation:
- Instruct mode:
temperature=0.7, top_p=0.8, top_k=20, min_p=0.0, presence_penalty=0.0, repetition_penalty=1.0- Thinking mode:
temperature=0.6, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0, repetition_penalty=1.0Please note that the support for sampling parameters varies according to inference frameworks.
License
OCC-4B is released under the Apache 2.0 License. It is fine-tuned from Qwen3.5-4B, which is also licensed under Apache 2.0. Only the language model is fine-tuned; the vision components are inherited from Qwen3.5-4B unchanged.
Citation
If you find our work helpful, feel free to give us a cite.
@misc{occ4b,
title = {{OCC-4B} Technical Report},
author = {{OCC AI}},
month = {November},
year = {2026},
url = {https://github.com/optimal-cognitive-core/OCC/blob/main/OCC_Technical_Report.pdf}
}