ClinSeek-35B-A3B, arm A: full-record input without tools, epoch 2
Qwen/Qwen3.5-35B-A3B with full-parameter fine-tuning on 2,628 full-record samples (53 more for validation). The patient's EHR record up to the prediction time is inlined in a single user prompt of at most 45,000 tokens; longer records are cut, oldest events first. The model reasons in its thinking block and then writes its answer in an <answer> block. It calls no tools.
This is arm A of a three-arm comparison of training data. Arm C (Letian2003/ClinSeek-35B-A3B-armC-multiround-ep2, multi-round ClinSeekAgent trajectories) and arm S (Letian2003/ClinSeek-35B-A3B-armS-singlepass-ep2, single-pass retrieval trajectories) retrieve the evidence with EHR tools. Arm A uses the same questions, split and teacher as arm C and the same training recipe; only the input mode differs. All 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 | full-record samples, 2,628 train / 53 validation (not released) |
| Input | one user turn: the task instruction, the patient's record up to the prediction time (≤ 45K tokens) and the candidate answers where the task has them; no system message, no tools |
| Output | reasoning in the <think> block, then the answer in <answer> … </answer>, one per line |
| Checkpoint | end of epoch 2 of 3: global_step_164 |
| 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
Full-record samples. The questions are the AgentEHR-Bench training split, the same 2,681 questions as arm C with arm C's split. They cover six task families: diagnoses (CCS), procedures (CCS), laboratory tests, microbiology tests, prescriptions and transfers. The teacher is GPT-5.6 Sol (reasoning effort high), as in arm C. Instead of calling EHR tools, the teacher reads the patient's record inlined in the prompt. The record holds every EHR table of the patient as CSV, cut to the prompt budget when it is longer (see the table). It is restricted by the same strict temporal policy as the agentic tools, so it shows only events up to the case's prediction time.
| Questions | the 2,681 questions of arm C, one sample each |
| Answers | every sample has a reasoning block and an <answer> block. In 79 train samples (78 microbiology, 1 prescriptions) the answer block is empty; they are kept unchanged |
| Split | 2,628 train / 53 validation, arm C's split |
| Tasks (train) | diagnoses (CCS) 461, transfers 466, microbiology 456, procedures (CCS) 439, labs 406, prescriptions 400 |
| Prompt budget | ≤ 45,000 tokens (Qwen3.5 tokenizer); 34.9 % of the records were truncated to fit, oldest events first |
| Length | median 27.4K, max 45.7K tokens per sample (Qwen3.5 chat template); all ≤ 52K |
| Reasoning | median 658 characters per sample |
Formatting for training.
- Each sample is one user turn and one assistant turn. There is no system message and there are no tools.
- The user turn holds the AgentEHR-Bench task instruction (verbatim, so it still names the agent's tools), the patient information with the current time, the record, the candidate answers where the task has them, and a closing paragraph. That paragraph asks for the final answer inside an
<answer>…</answer>block, one answer per line. - During distillation the teacher wrote its reasoning in a separate block before its answer. That text becomes the native
<think>…</think>block of the assistant turn. The extra instruction that asked the teacher for it is not part of the training prompt. Provider reasoning summaries are discarded. - The loss is computed on assistant tokens only: the think block and the answer block.
The samples are not released. Every prompt contains 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.
Arm A uses arm C's questions, so these counts apply to it too. 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), with the same settings as arms C and S. The one change from the paper is the hardware layout: 8 GPUs instead of 2. The global batch and the schedule are unchanged. The training data is arm A's own, described above.
| 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 | 82 per epoch (drop_last), 246 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 armA_B_r1 (one node, 8 × H200). The run finished all 246 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 samples drawn from the validation split. verl evaluates every 25 steps and at the last step.
For arm A these 32 samples are the first 32 rows of its validation file, which is sorted by task. They cover four of the six task families: diagnoses (CCS) 7, labs 12, microbiology 6 and prescriptions 7. Procedures (CCS) and transfers are not included. Arm A's val loss is therefore not comparable with the val loss of arms C and S, which is computed on other rows and other sequences.
| step | epoch | train loss | val loss | note |
|---|---|---|---|---|
| 25 | 0.30 | 0.7920 | 0.6615 | |
| 50 | 0.61 | 0.7030 | 0.6055 | |
| 75 | 0.91 | 0.6421 | 0.5709 | |
| 100 | 1.22 | 0.3440 | 0.5997 | |
| 125 | 1.52 | 0.3342 | 0.5920 | |
| 150 | 1.83 | 0.3815 | 0.5632 | |
| 164 | 2.00 | 0.3292 | – | released checkpoint (end of epoch 2) |
| 175 | 2.13 | 0.1139 | 0.6256 | after the released checkpoint |
| 200 | 2.44 | 0.1257 | 0.6309 | after the released checkpoint |
| 225 | 2.74 | 0.1091 | 0.6369 | after the released checkpoint |
| 246 | 3.00 | 0.0950 | 0.6347 | after the released checkpoint; end of epoch 3 |
- Mean train loss per epoch (unweighted mean over steps): epoch 1: 0.7664, epoch 2: 0.3525, epoch 3: 0.1128.
- Tokens processed up to the released checkpoint: 0.146 B.
- Median step time: 62 s.
- Wall time of the whole run, including model load, validation and 3 saves: 4.46 h.
Checkpoint
This is the end of epoch 2 of 3, global_step_164 (82 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: 38/38 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 on a training prompt that reasons in the
<think>block, closes it, writes a closed<answer>block and ends the turn, without any tool call. Relative L2 change of the 693 language-model tensors versus the base: median 0.0121, max 0.0590.
Usage
This model is not an agent. It expects the patient's record in the prompt and calls no tools. Use one user message in the training format, without a system message:
- the task instruction;
- the patient information with the current time;
- the patient's record: every EHR table as CSV, with the events up to the prediction time, within 45,000 tokens (drop the oldest events first when it is longer);
- the candidate answers, if the task has them;
- a closing request to put the final answer inside an
<answer>…</answer>block, one answer per line.
The model writes its reasoning in its thinking block and then the answer block. Read the answer from the <answer> block.
Serving with vLLM:
vllm serve Letian2003/ClinSeek-35B-A3B-armA-fullrecord-ep2 \
--reasoning-parser qwen3
No tool parser and no automatic tool choice are needed, because the model was trained without tools. The reasoning parser moves the thinking block into reasoning_content; the <answer> block stays in the message content. Training sequences were at most 52,000 tokens. Set --max-model-len so that it covers the prompt plus the thinking and answer tokens.
For AgentEHR-Bench, the ClinSeekAgent repository provides the benchmark runners and scoring.
Loading with transformers:
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
model_id = "Letian2003/ClinSeek-35B-A3B-armA-fullrecord-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 MIMIC-IV patient records, which were inlined in its training prompts. MIMIC-IV is PhysioNet credentialed-access data. 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.
- 78 of the 456 microbiology training samples (17.1 %) have an empty answer block, kept as in the data. The model may return an empty answer to microbiology questions more often than it should, so expect a lower recall on that task.
- It was trained without a system message. Prompts with a system message are outside its training format.
- 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.