Downloads · 30 days
26
18% of all-time downloads
phi0112358/II-Search-CIR-4B-GGUF
II-Search-CIR-4B-GGUF is a machine learning model from phi0112358. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This model was converted to GGUF format from Intelligent-Internet/II-Search-CIR-4B using llama.cpp via the ggml.ai's GGUF-my-repo space. Below is a partial copy of the original model card
Downloads · 30 days
26
18% of all-time downloads
All-time downloads
148
Public
Repo size
4.3 GB
Likes
0
Public
Click a slice to open those files.
.gguf4.3 GB · 100%
From the Hugging Face model README
This model was converted to GGUF format from
Intelligent-Internet/II-Search-CIR-4Busing llama.cpp via the ggml.ai's GGUF-my-repo space.Below is a partial copy of the original model card
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 .
Install llama.cpp through brew (works on Mac and Linux)
brew install llama.cpp
Invoke the llama.cpp server or the CLI.
llama-cli --hf-repo phi0112358/II-Search-CIR-4B-Q8_0-GGUF --hf-file ii-search-cir-4b-q8_0.gguf -p "The meaning to life and the universe is"
llama-server --hf-repo phi0112358/II-Search-CIR-4B-Q8_0-GGUF --hf-file ii-search-cir-4b-q8_0.gguf -c 2048
Note: You can also use this checkpoint directly through the usage steps listed in the Llama.cpp repo as well.
Step 1: Clone llama.cpp from GitHub.
git clone https://github.com/ggerganov/llama.cpp
Step 2: Move into the llama.cpp folder and build it with LLAMA_CURL=1 flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
cd llama.cpp && LLAMA_CURL=1 make
Step 3: Run inference through the main binary.
./llama-cli --hf-repo phi0112358/II-Search-CIR-4B-Q8_0-GGUF --hf-file ii-search-cir-4b-q8_0.gguf -p "The meaning to life and the universe is"
or
./llama-server --hf-repo phi0112358/II-Search-CIR-4B-Q8_0-GGUF --hf-file ii-search-cir-4b-q8_0.gguf -c 2048
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:
@misc{2025II-Search-4B,
title={II-Search-4B: Search Reasoning Model},
author={Intelligent Internet},
year={2025}
}