ClinSeek-35B-A3B, arm S: single-pass retrieval trajectories, epoch 2
Qwen/Qwen3.5-35B-A3B with full-parameter fine-tuning on 2,472 single-pass retrieval trajectories (49 more for validation). The agent reasons, issues one batch of EHR tool calls, reasons again over the results and then answers.
This is arm S of a two-arm comparison of training data. Arm C (Letian2003/ClinSeek-35B-A3B-armC-multiround-ep2) uses the same questions, teacher, tools, system prompt and training recipe but a different retrieval protocol. Both arms re-run the SFT recipe of the ClinSeekAgent paper (arXiv 2605.20176) on 8 × H200. This is not the official UCSC-VLAA/ClinSeek-35B-A3B release.
| Item | Value |
|---|---|
| Base model | Qwen/Qwen3.5-35B-A3B |
| Training data | single-pass retrieval trajectories, 2,472 train / 49 validation (not released) |
| Checkpoint | end of epoch 2 of 3: global_step_154 |
| Architecture | Qwen3_5MoeForConditionalGeneration, bf16 |
| Training | full-parameter SFT, 8 × H200, ClinSeekAgent paper recipe |
| Evaluation | not evaluated in this release |
| Code | https://github.com/UCSC-VLAA/ClinSeekAgent |
| Paper | https://arxiv.org/abs/2605.20176 |
Training data
Single-pass retrieval trajectories. The questions, teacher, tools, system prompt and training recipe are the same as in arm C. Only the retrieval protocol is different. The teacher issues one batch of parallel EHR tool calls and then submits its answer with ehr.finish. It has no further retrieval rounds. The user turn already contains the schema orientation, i.e. the results of load_ehr, get_table_names and get_column_names, together with a single-retrieval directive.
The questions are the AgentEHR-Bench training split: 3,000 questions over six task families (diagnoses (CCS), procedures (CCS), laboratory tests, microbiology tests, prescriptions and transfers). The teacher is GPT-5.6 Sol (reasoning effort high). It runs ClinSeekAgent with the 16 EHR-only ehr.* tools under the strict temporal runtime policy, so it sees only events up to each case's prediction time. Before each action round, the teacher writes its reasoning with a forced ehr.think call.
| Questions | the 2,681 questions of arm C (teacher success 2,681 / 2,681) |
| ≤ 52K tokens (same rule as arm C) | 2,472 train / 49 validation, a subset of arm C's train / validation |
| Tasks (train) | diagnoses (CCS) 456, transfers 451, microbiology 429, labs 398, procedures (CCS) 397, prescriptions 341 |
| Retrieval batch | median 10 tool calls, max 26 |
| Thinking blocks | 2 per trajectory (before the batch, before the answer) |
| Length | median 14.0K, max 51.9K tokens |
Formatting for training.
- The think-only turns and their tool responses are removed.
- Their text becomes the native
<think>…</think>block of the next assistant turn, so the student reasons in its thinking channel instead of callingehr.think. - The teacher-only reasoning-protocol block is stripped from the system prompt.
- Provider reasoning summaries are discarded.
- Tool calls use the Qwen3.5 native tool-call format, with dotted tool names (
ehr.load_ehr, …). - The loss is computed on assistant tokens only: think blocks, tool calls and the final answer.
The trajectories are not released. They contain records from MIMIC-IV, which is PhysioNet credentialed-access data.
Evaluation overlap. No training question was excluded, as in the paper. The AgentEHR-Bench training split is not fully disjoint from the benchmark's evaluation splits. Counted over all 3,000 training questions, before the length filter:
common: 10 shared question ids, 58 shared patients;rare: 10 shared question ids, 47 shared patients;sample: no shared question ids and no shared patients.
The trained subset can contain fewer of them. Check for overlap before evaluating on common or rare.
Training recipe
This is the ClinSeekAgent paper recipe (scripts/train_sft.sh in the repository). The one change is the hardware layout: 8 GPUs instead of 2. The global batch, schedule and data are unchanged.
| Component | Configuration |
|---|---|
| Method | full-parameter supervised fine-tuning, verl + Megatron-core 0.16.1 + mbridge |
| Hardware | 1 node, 8 × H200 |
| Parallelism | tensor 2, expert 8 (expert-tensor 1), pipeline 1, context 1 → data parallel 4 |
| Batch | global 32 sequences per optimizer step, micro batch 1 per GPU, no padding |
| Steps | 77 per epoch (drop_last), 231 total over 3 epochs |
| Maximum sequence length | 52,000 tokens (the data is pre-filtered to ≤ 52K) |
| Optimizer | Adam (β1 = 0.9, β2 = 0.999), fp32 master weights and states kept on the GPU (the paper's 2-GPU run offloads them to the CPU) |
| Learning rate | 2e-5, 10 warmup steps, cosine decay to 2e-6 |
| Weight decay / gradient clipping | 0.1 / 1.0 |
| Precision | bfloat16 parameters and activations, bf16 gradient reduction |
| MoE losses | aux-loss coefficient 0.01 and z-loss 0.001 as configured; with this mbridge version the router's load-balancing type is none, so only the z-loss is active (same code as the paper) |
| Activation recomputation | full, uniform, 1 layer |
| Loss | assistant tokens only |
| Validation | every 25 steps and at the last step |
| Seed | 42 |
| Software | torch 2.10.0 (CUDA 13.0), transformers 5.4.0, Transformer Engine 2.12, flash-attn 2.8.3, mbridge 4cfd6f5 |
Training metrics
From the training log of run armS_B_r1 (one node, 8 × H200). The run finished all 231 steps.
train loss is the mean token-level cross-entropy of that step's 32 sequences, on assistant tokens only. It is noisy from step to step. val loss is the mean over 32 trajectories drawn from the validation split. verl evaluates every 25 steps and at the last step.
| step | epoch | train loss | val loss | note |
|---|---|---|---|---|
| 25 | 0.32 | 0.3164 | 0.3259 | |
| 50 | 0.65 | 0.2815 | 0.2950 | |
| 75 | 0.97 | 0.2825 | 0.2791 | |
| 100 | 1.30 | 0.1780 | 0.2851 | |
| 125 | 1.62 | 0.1793 | 0.2736 | |
| 150 | 1.95 | 0.1559 | 0.2663 | |
| 154 | 2.00 | 0.1833 | – | released checkpoint (end of epoch 2) |
| 175 | 2.27 | 0.1002 | 0.2846 | after the released checkpoint |
| 200 | 2.60 | 0.1020 | 0.2825 | after the released checkpoint |
| 225 | 2.92 | 0.1009 | 0.2824 | after the released checkpoint |
| 231 | 3.00 | 0.0912 | 0.2813 | after the released checkpoint; end of epoch 3 |
- Mean train loss per epoch (unweighted mean over steps): epoch 1: 0.3296, epoch 2: 0.1766, epoch 3: 0.0955.
- Tokens processed up to the released checkpoint: 0.087 B.
- Median step time: 43 s.
- Wall time of the whole run, including model load, validation and 3 saves: 3.00 h.
Checkpoint
This is the end of epoch 2 of 3, global_step_154 (77 steps per epoch). The paper's released model is also its end-of-epoch-2 checkpoint.
- Architecture:
Qwen3_5MoeForConditionalGeneration, unchanged. The tensor names, shapes and dtypes are identical toQwen/Qwen3.5-35B-A3B: bfloat16, plus the base's fp32A_log/linear_attn.normtensors. 14 safetensors shards, 71.9 GB. - Weights: the trainer's own Hugging Face export of the language model and vision tower (mbridge).
- MTP head: the multi-token-prediction head (
mtp.*) was not built or trained by this training stack. It is copied unchanged from the base model. It can still be used for speculative decoding, possibly with a lower acceptance rate. - Vision tower: training was text-only, so the vision tower is effectively the base's.
- Verification before upload: 35/35 required checks passed. They cover index ↔ shard consistency, tensor names / shapes / dtypes against the base, that every tensor is finite, the change relative to the base, the MTP head being equal to the base, and a transformers load plus a greedy generation that opens a
<think>block and then emits a tool call. Relative L2 change of the 693 language-model tensors versus the base: median 0.0112, max 0.0565.
Usage
This is an agent model. It expects the ClinSeekAgent EHR tools and a multi-turn tool loop. The ClinSeekAgent repository provides the EHR MCP server, tool schemas, prompts, the benchmark runners and scoring.
Serving with vLLM:
vllm serve Letian2003/ClinSeek-35B-A3B-armS-singlepass-ep2 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder
The paper's evaluation also passed --max-model-len 196608 --language-model-only (vLLM 0.28.1). It used thinking with a 4,096-token budget, temperature 0, at most 8,192 output tokens per call and tool results truncated to 100,000 characters.
The model was trained with an EHR-only tool space (no web browsing). Do not add an instruction to call ehr.think: the model reasons in its thinking block instead.
Arm S was trained for single-pass retrieval. In the ClinSeekAgent repository it can be evaluated in two ways:
- single-pass retrieval:
clinseekagent/run_text.py --retrieval_mode single_shot; - the standard multi-round agentic loop (cross-evaluation).
Loading with transformers:
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
model_id = "Letian2003/ClinSeek-35B-A3B-armS-singlepass-ep2"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
Limitations and data use
- License and data use. The model was trained on trajectories over MIMIC-IV patient records. MIMIC-IV is PhysioNet credentialed-access data, and the trajectories contain record content returned by the tools. The weights are therefore treated as a derivative of MIMIC-IV and are released for research use under the terms of the PhysioNet credentialed health data use agreement (
license: other,physionet-credentialed-derivative). Do not try to extract or reconstruct patient-level information from the model. The base modelQwen/Qwen3.5-35B-A3Bis licensed under Apache-2.0. The base model'sLICENSEfile is included. - It was trained on AgentEHR-Bench task families only. Performance on other clinical tasks is not established, and this checkpoint has not been evaluated.
- It is a research model, not a medical device. Its outputs must not be used for clinical diagnosis, treatment, triage or patient management.
Citation
@misc{wu2026clinseekagent,
title = {ClinSeekAgent: Automating Multimodal Evidence Seeking for Agentic Clinical Reasoning},
author = {Wu, Juncheng and Zhang, Letian and Wang, Yuhan and Tu, Haoqin and Chen, Hardy and Wang, Zijun and Xie, Cihang and He, Yufan and Zhao, Can and Xu, Daguang and Tang, Yucheng and Zhou, Yuyin},
year = {2026},
eprint = {2605.20176},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2605.20176}
}
Please also cite AgentEHR-Bench, MIMIC-IV and Qwen3.5 where applicable.