Onca 1.0 is an open 9B language model for pancreatic cancer clinical tasks. It is designed for four PDAC-relevant task families:
clinical trial screening
case-specific clinical reasoning
structured pathology report extraction
molecular variant evidence reasoning
This release is the main FP16/BF16-compatible checkpoint intended as the reference Hugging Face release for the Onca 1.0 model family.
Base Model
Onca 1.0 is fine-tuned from Jackrong/Qwopus3.5-9B-v3, a Qwen3.5-derived 9B dense reasoning model. The released checkpoint reflects task-focused supervised fine-tuning for pancreatic cancer workflows while preserving the underlying Qwen3.5-class architecture and tokenizer setup.
Training Scope
The model was trained on 37,364 prepared rows from openly available sources. The multitask mixture covers:
trial eligibility screening
oncology clinical reasoning
CAP-aligned pathology abstraction
CIViC-style variant interpretation
The project was built around an open-data, open-weight, single-workstation pipeline so the workflow can be audited and reproduced without private institutional corpora.
Intended Use
Onca 1.0 is intended for:
research on oncology-focused language models
benchmarking PDAC-oriented clinical NLP workflows
prototyping structured extraction and screening pipelines
local experimentation in privacy-sensitive environments
Out-of-Scope Use
Onca 1.0 is not intended for:
direct clinical care
autonomous treatment recommendations
unsupervised patient-facing use
deployment as a validated medical device or diagnostic system
This is a research model and does not replace clinician judgment.
Evaluation Summary
In the companion manuscript, Onca 1.0 was evaluated across 11 panels against Woollie-7B, CancerLLM-7B, OpenBioLLM-8B, and the unfine-tuned Qwopus base. Headline results reported in the draft include:
Trial Screening: 81.6 F1
Clinical Reasoning: 14.1 composite
Pathology Extraction: 30.5 field exact-match
PubMedQA Cancer: 68.3 macro-F1
PubMedQA: 66.5 macro-F1
The strongest gains appear in workflow-proximal tasks such as trial review and pathology structuring. Variant evidence reasoning remains more difficult than the other task groups.
Limitations
The model is specialized for pancreatic cancer and oncology-adjacent workflows rather than general medicine.
Training data come from openly available sources rather than private institutional notes, which improves reproducibility but does not fully capture real-world documentation style.
Benchmark sample sizes for several panels are deliberately limited and should be interpreted with care.
Performance is uneven across task families and does not imply broad medical competence.
Usage
This repository contains the main full-precision checkpoint files. A standard transformers loading pattern is:
Inference formatting should follow the included tokenizer and chat template files in this repository.
Quick Chat Helper
python
1defrun_onca(prompt, system_prompt="You are Onca 1.0, a pancreatic-cancer clinical research assistant."):2 messages =[3{"role":"system","content": system_prompt},4{"role":"user","content": prompt},5]6 text = tokenizer.apply_chat_template(7 messages,8 tokenize=False,9 add_generation_prompt=True,10)11 inputs = tokenizer(text, return_tensors="pt").to(model.device)12with torch.no_grad():13 outputs = model.generate(14**inputs,15 max_new_tokens=512,16 temperature=0.2,17 do_sample=False,18)19 completion = outputs[0][inputs["input_ids"].shape[1]:]20return tokenizer.decode(completion, skip_special_tokens=True)
Example 1: Trial Screening
python
1prompt ="""
2Task: Trial eligibility screening for pancreatic cancer.
34Patient summary:
5- 63-year-old with metastatic PDAC
6- Liver metastases present
7- ECOG 1
8- Prior gemcitabine plus nab-paclitaxel
9- Total bilirubin 0.9 mg/dL
10- ANC 2.4
11- Platelets 188
12- No active infection
13- No brain metastases
1415Trial criteria:
16- Histologically confirmed metastatic pancreatic adenocarcinoma
17- ECOG 0-1
18- Progression after 1 prior systemic regimen
19- Adequate marrow and hepatic function
20- Exclude uncontrolled infection or CNS metastases
2122Return:
231. Eligibility label: eligible / ineligible / unclear
242. Criterion-by-criterion reasoning
253. Missing information, if any
26"""2728print(run_onca(prompt))
Example 2: Clinical Reasoning
python
1prompt ="""
2Task: Pancreatic cancer clinical reasoning.
34Case:
5A 58-year-old patient has borderline resectable PDAC in the pancreatic head.
6CA19-9 is elevated. ECOG is 0. Germline testing is pending. No distant metastases
7are seen on imaging.
89Please provide:
101. A concise assessment
112. A high-level management plan
123. Key factors that could change the plan
134. Important limitations or uncertainties
1415Do not present this as medical advice. Keep it research-oriented.
16"""1718print(run_onca(prompt))
Example 3: Pathology Extraction
python
1prompt ="""
2Task: Structured pathology extraction.
34Extract the report into JSON with the following fields:
5specimen_type, primary_site, histology, tumor_grade, tumor_size_cm,
6margin_status, lymphovascular_invasion, perineural_invasion,
7lymph_nodes_examined, lymph_nodes_positive, pT, pN, pM,
8ajcc_stage, treatment_effect, tumor_focality, additional_findings
910Report:
11Whipple resection specimen showing moderately differentiated pancreatic ductal
12adenocarcinoma, 3.1 cm, centered in the pancreatic head. Tumor extends into
13peripancreatic soft tissue. All margins are negative; closest margin is 0.4 cm
14at the uncinate margin. Perineural invasion is present. Lymphovascular invasion
15is present. Sixteen lymph nodes examined, 3 positive for metastatic carcinoma.
16Pathologic stage: pT2 pN1. No distant metastasis identified in specimen.
17"""1819print(run_onca(prompt))
Example 4: Variant Evidence Interpretation
python
1prompt ="""
2Task: Variant evidence reasoning for pancreatic cancer.
34Variant:
5- Gene: BRCA2
6- Alteration: pathogenic loss-of-function variant
7- Tumor type: pancreatic ductal adenocarcinoma
89Return a JSON object with:
10- gene
11- alteration
12- disease
13- evidence_summary
14- therapeutic_implication
15- diagnostic_implication
16- prognostic_implication
17- evidence_direction
18- confidence
1920Keep the answer concise and note uncertainty when evidence is incomplete.
21"""2223print(run_onca(prompt))
Prompting Tips
Ask for a specific output format such as bullet points or JSON.
For extraction tasks, list the exact fields you want returned.
For screening tasks, provide both the patient summary and the trial criteria.
For reasoning tasks, request uncertainties and missing data explicitly.
Treat outputs as research artifacts that require expert review.
Files in This Repository
model-00001-of-00004.safetensors through model-00004-of-00004.safetensors: sharded model weights
tokenizer.json and tokenizer_config.json: tokenizer files
chat_template.jinja: chat formatting template
Related Variants
Quantized releases are provided separately:
JosephKBS/onca-1.0-9B-Int8
JosephKBS/onca-1.0-9B-Int4
License
This release is provided under the Apache 2.0 license. Users should also review the license and usage terms of the upstream base model and any referenced datasets or benchmarks.
Citation
If you use Onca 1.0, please cite the accompanying manuscript when publicly available. A temporary reference is:
bibtex
1@misc{shim2026onca,
2 title = {Onca: An Open 9B Language Model for Pancreatic Cancer Clinical Tasks},
3 author = {Shim, Kwan Bo},
4 year = {2026},
5 note = {Preprint in preparation}
6}
Acknowledgments
This project builds on the work of the Qwen and Qwopus model developers, as well as the many institutions and open-data contributors who created and maintained the public datasets used in training and evaluation.