Run this model with HF Jobs
Run caccccc/crisp-recognizer on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/caccccc/crisp-recognizer. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/caccccc/crisp-recognizer on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/caccccc/crisp-recognizer. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/caccccc/crisp-recognizer with Transformers and bitsandbytes. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use caccccc/crisp-recognizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use caccccc/crisp-recognizer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="caccccc/crisp-recognizer") 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("caccccc/crisp-recognizer") model = AutoModelForMultimodalLM.from_pretrained("caccccc/crisp-recognizer", 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 caccccc/crisp-recognizer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "caccccc/crisp-recognizer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "caccccc/crisp-recognizer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/caccccc/crisp-recognizer
- SGLang
How to use caccccc/crisp-recognizer 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 "caccccc/crisp-recognizer" \ --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": "caccccc/crisp-recognizer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "caccccc/crisp-recognizer" \ --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": "caccccc/crisp-recognizer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use caccccc/crisp-recognizer with Docker Model Runner:
docker model run hf.co/caccccc/crisp-recognizer
Download README.md from caccccc/crisp-recognizer: direct link, hf CLI and curl.
- Browser
- Download file 4.52 kB
-
https://huggingface.co/caccccc/crisp-recognizer/resolve/main/README.md
- Command line
-
hf download hf://caccccc/crisp-recognizer/README.md
-
curl -L -o README.md https://huggingface.co/caccccc/crisp-recognizer/resolve/main/README.md
license: apache-2.0
base_model: Qwen/Qwen3.5-9B-Instruct
pipeline_tag: text-generation
tags:
- text-generation
- reinforcement-learning
- agent
- deep-search
- trajectory-analysis
- critical-step-recognition
library_name: transformers
language:
- en
CRISP Critical Step Recognizer
Critical step recognizer fine-tuned from Qwen3.5-9B-Instruct for trajectory-level analysis of multi-turn deep search agents.
Given a complete agent trajectory, the model identifies which tool-interaction steps are critical — that is, steps that directly provide necessary evidence for the final answer, or that open the entry point for subsequent critical evidence collection. Distinguishing these steps from redundant exploration is what enables efficiency-aware reinforcement learning without sacrificing accuracy.
This repository hosts the student recognizer used in the CRISP framework.
Paper
CRISP: Critical Step Perception for Training Efficient Deep Search Agents Haosi Mo*, Zihao Yan*, Ruiqing Zhang†, Zhongli Li, Hexuan Deng, Xuebo Liu†, Min Zhang
AAAI 2027 (CCF-A), Accepted.
* Equal contribution. † Corresponding authors. Affiliations: Harbin Institute of Technology (Shenzhen); Baidu Inc.
@misc{mo2026crispcriticalstepperception,
title = {CRISP: Critical Step Perception for Training Efficient Deep Search Agents},
author = {Haosi Mo and Zihao Yan and Ruiqing Zhang and Zhongli Li and Hexuan Deng and Xuebo Liu and Min Zhang},
year = {2026},
eprint = {2608.01867},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2608.01867}
}
Model Details
The recognizer is distilled from a strong teacher model (Qwen3.5-397B-A17B) that performs backward evidence induction: starting from the final answer, the teacher walks the trajectory backwards step by step and judges whether each step is critical. This turns a long-range, noisy global judgement into a sequence of stable local marginal-value decisions.
Per-step teacher labelling costs one forward pass per step. The student instead reads the entire trajectory once and emits all critical steps in a single generation, which makes step-level criticality affordable inside an online RL loop — it is used to score every correct rollout during GRPO training.
- Base model:
Qwen3.5-9B-Instruct(Qwen3_5ForConditionalGeneration, 32 layers, hidden size 4096) - Checkpoint: SFT step 1800
- Training data: teacher-annotated trajectories built from BrowseComp-Plus and collected deep-search rollouts
- Precision: bfloat16
- Format: safetensors (4 shards) + HuggingFace
config.json/ tokenizer
Input / Output
Input is a single user message containing the serialized trajectory (system prompt + all turns of thought, tool call, and observation). Output is strict JSON:
{"thought_process": "...", "valid_steps": [1, 2, 5, 8]}
valid_steps are 1-based indices of the critical steps.
Serving
The model is served as an OpenAI-compatible chat endpoint (SGLang / vLLM):
python -m sglang.launch_server \
--model-path caccccc/111 \
--served-model-name crisp-recognizer \
--port 8000
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8000/v1", api_key="EMPTY")
resp = client.chat.completions.create(
model="crisp-recognizer",
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": trajectory_text},
],
temperature=0.0,
max_tokens=8192,
)
print(resp.choices[0].message.content)
The system prompt used at training time ships with the training data construction code; prompts must match it for reliable output.
Intended Use
- Scoring and filtering large batches of agent rollouts by evidence density
- Providing an auxiliary efficiency reward (gated on answer correctness) in GRPO-style RL training
- Diagnosing redundant exploration in deep-search / multi-step tool-use trajectories
- Quality assessment of synthesized agent training data
The model is a trajectory analyser, not a general chat assistant. It is not intended for open-ended dialogue, and its judgements reflect the annotation convention of the CRISP paper.
Citation
If you use this model, please cite the CRISP paper above.
License
Released under Apache-2.0, following the license of the base model. Check the base model's terms before commercial deployment.