Downloads · 30 days
39
8% of all-time downloads
Intelligent-Internet/II-Search-CIR-4B
II-Search-CIR-4B is a text generation model from Intelligent-Internet. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
39
8% of all-time downloads
All-time downloads
489
Public
Parameters
4B
16.1 GB on disk
Likes
15
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README

Inspired by the success of our II-Researcher approach, which applies tools with augmented reasoning on top of the Deep-seek-R1 model, II-Search-4B-CIR introduces Code-Integrated Reasoning (CIR), a more powerful and flexible method for tool interaction with the reasoning process.


We instruct the model to generate code blocks enclosed between <start_code>\n```python and
\n```<end_code> , within which it can invoke a set of predefined functions.
These functions act as interfaces to external resources, similar to the tool call paradigm but offering greater flexibility and control. This approach enables the model to not only retrieve external information but also process, filter, and reason over it programmatically within the code itself.
In our setup, we provide two predefined functions:
web_search(query: str, num_result: int)web_visit(url: str)In our early experiments, we found that even large models such as Qwen/Qwen3-235B-A22B or Deep-seek-R1 could not produce the code format efficiently. Sometimes, models would not use any code blocks at all, instead relying on their internal knowledge base to answer the query. To address this issue, we first curated a dataset and performed SFT fine-tuning on the Qwen/Qwen3-4B model. Following this, we further optimized the SFT model by training DAPO on a hard-reasoning dataset to boost performance.
For SFT stage we using the hyperparameters:
For RL stage we setup training with:
We describe more detail of our training methodology in our II-Search-4B blog post
We also release our dataset to reproduce the results:
We compare our model with other small-sized open-source models, including Qwen3-4B (the model on which we are based) and other models that also specialize in information-seeking tasks. Qwen3-4B, Jan-4B, WebSailor-3B. We also reported the benchmarking results on Google Frames dataset from 2 latest MoE models Qwen3-30B-A3B-Instruct-2507 and Qwen3-30B-A3B-Thinking-2507 on this task. The search API was SerpDev, Google Gemini Pro 2.5 was used to extract and judge the answers (Using the proper judge prompt from the each benchmarking dataset’s author).
| Benchmark | Qwen3-4B | Jan-4B | WebSailor-3B | II-Search-4B | II-Search-CIR-4B |
|---|---|---|---|---|---|
| OpenAI/SimpleQA | 76.8 | 80.1 | 81.8 | 91.8 | 91.8 |
| Google/Frames | 30.7 | 24.8 | 34.0 | 67.5 | 72.2 |
| Seal_0 | 6.31 | 2.7 | 1.8 | 22.5 | 26.4 |
Note: Our MCP ensure that we didn't go to any url come from the huggingface when we evaluate the II-Search-CIR-4B model.
All benchmark traces from models can be found at:Inspect-Search-Models-Benchmarking-Result .
Our model can be utilized in the same manner as Qwen or Deepseek-R1-Distill models.
For instance, you can easily start a service using vLLM:
vllm serve Intelligent-Internet/II-Search-CIR-4B --rope-scaling '{"rope_type":"yarn","factor":4.0,"original_max_position_embeddings":32768}'
You can also easily start a service using SGLang:
python -m sglang.launch_server --model Intelligent-Internet/II-Search-CIR-4B --json-model-override-args '{"rope_scaling":{"rope_type":"yarn","factor":4.0,"original_max_position_embeddings":32768}}' --context-length 128000
To try out the II-SEARCH-CIR model, refer to the example provided in the GitHub repo here which includes the System prompt, Hint prompt, and Code executor:
👉 II-Researcher CIR-4B Example
@misc{2025II-Search-4B,
title={II-Search-4B: Search Reasoning Model},
author={Intelligent Internet},
year={2025}
}