Views
No views yet
1vllm serve alhparsa/qwen35-extract-tsv-v1 \
2 --speculative-config '{"method":"dflash","model":"alhparsa/qwen35-9b-dflash","num_speculative_tokens":15}' \
3 --max-model-len 32768 \
4 --attention-backend flash_attn \
5 --max-num-batched-tokens 32768 \
6 --mm-processor-kwargs '{"max_pixels": 1003520}' \
7 --default-chat-template-kwargs '{"enable_thinking": false}'--speculative-config is lossless speedup only (the drafter proposes tokens, this model verifies them — identical output). Drop it to serve ~2× slower with no other change. Run one replica per GPU and round-robin requests for best throughput.temperature 0.7 top_p 0.8 top_k 20 repetition_penalty 1.08 seed 0short_sys.txt) with {today_date} filled to today (ISO).[Available tags list] + "Previous context before this window:\n\n", then per page "Page N\n\n" + the page image, then "Extract all facts from these consecutive pages."1[
2 {"role": "system", "content": "% You are an AI specialized in extracting ... Today's date is: 2026-06-18\n% ... (short_sys.txt, full text — the 6-column TSV contract)"},
3 {"role": "user", "content": [
4 {"type": "text", "text": "Available tags:\nMDS Tags:\n- mds_a_id_info ... - mds_q_participation\nDocument Type Tags:\n- med_diag, allergy, vital, lab_result, evaluation, therapy, progress_note, care_plan, medication, physical_exam ...\n\nPrevious context before this window:\nActive Service Date: 2026-05-17; source_label: \"Today's Date\". This page continues the Occupational Therapy Evaluation. It includes AM-PAC Daily Activity scores, Transfers (deferred due to pain), Balance, Coordination, Functional Cognition (Intact/Alert), ROM, Strength ...\n\n"},
5 {"type": "text", "text": "Page 40\n\n"},
6 {"type": "image_url", "image_url": {"url": "data:image/png;base64,<...page...>"}},
7 {"type": "text", "text": "Extract all facts from these consecutive pages."}
8 ]}
9]page⇥fact⇥tags⇥temporal_date⇥temporal_text⇥confidence):CTX: Active Service Date: 2026-05-17; source_label: "Today's Date". This page concludes the Occupational Therapy Evaluation with short-term goals for transfers, dressing, and bed mobility, classifies the evaluation as high complexity, and includes ADL flowsheet data and a Last Skin Assessment dated 05/18/2026.
40 Favorable for Outcome: PLOF;Motivated;Intact Cognition evaluation,therapy 2026-05-17 5/17/2026 -
40 Barriers to Outcome: Comorbidities;Lives Alone;Decreased Activity Tolerance;Decreased UE Fxnl Use;Pain evaluation,therapy 2026-05-17 5/17/2026 -
40 Problem List: Decreased ADL status;Decreased UE strength;Decreased UE ROM;Decreased LE ROM;Decreased LE strength;Decreased activity tolerance;Decreased transfer ability;Decreased coordination;Impaired functional mobility;Impaired balance;Impaired gait;Pain;Decreased high-level ADLs evaluation,therapy 2026-05-17 5/17/2026 -
40 Rehab Potential: Good evaluation,therapy 2026-05-17 5/17/2026 -
40 OT Priority: 3 SAT 5/16; FBR evaluation,therapy 2026-05-17 5/17/2026 -
40 OT Frequency: 1-2x/wk evaluation,therapy 2026-05-17 5/17/2026 -page is the real source page (40); temporal_date (ISO) and temporal_text (as written) are populated from the active service date; tags come only from the Available tags list. Patient identity (when present) lands on the CTX line, not as fact rows.hf_infer_sample.py in the training repo — loads via AutoModelForImageTextToText, max_pixels=1003520, the decode params above. No drafter (vLLM-only), no PDF render/windowing/dedup.--mm-processor-kwargs '{"max_pixels": 1003520}' — without it images are processed at native res (off-distribution + slow). preprocessor_config.json is included here.mtp.* tensors are required for speculative decode; they are present in this checkpoint. If you re-merge/requant, re-graft them or spec decode breaks.LD_LIBRARY_PATH.alhparsa/qwen35-9b-dflash is a mirror of public z-lab/Qwen3.5-9B-DFlash. It was trained on stock Qwen3.5-9B, not recalibrated to this fine-tune, so acceptance is a bit below z-lab's headline — still a clear win.