File size: 2,979 Bytes
e867ce7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
language:
  - en
  tags:
  - peft
  - lora
  - medical
  - triage
  - emergency
  - text-classification
  base_model: google/medgemma-4b-it
  library_name: peft
  pipeline_tag: text-classification
  license: mit
  ---

  # ESI-1 LoRA Adapter (MIETIC) for MedGemma 4B

  ## Model Summary
  This repository contains a **LoRA adapter** (not a full standalone model) for **ESI-1 prediction** in emergency triage settings.
  The adapter is trained on **MIETIC** using **few-shot, parameter-efficient fine-tuning (PEFT)** on top of **MedGemma 4B** (`google/medgemma-4b-it`).

  ## Model Details
  - **Model type:** LoRA adapter
  - **Base model:** `google/medgemma-4b-it`
  - **Task:** ESI-1 prediction (emergency severity triage)
  - **Training approach:** Specialized few-shot PEFT
  - **Repository owner:** `AdilA1016`

  ## Files in this Repo
  - `adapter_config.json`
  - `adapter_model.safetensors`
  - `chat_template.jinja`
  - `processor_config.json`
  - `tokenizer_config.json`
  - `tokenizer.json`

  ## Intended Use
  This model is intended for **research and decision-support prototyping** for emergency triage workflows.
  It is **not** intended to replace clinician judgment.

  ## Out-of-Scope / Limitations
  - Not validated as an autonomous clinical decision maker.
  - Performance may vary by site, population, and documentation style.
  - Should not be used as the sole basis for real-time medical decisions.

  ## Training Data
  - **Dataset:** MIETIC
  - **Domain:** Emergency/clinical triage text
  - **Label focus:** ESI-1 identification

  > Add a short description of MIETIC access/curation and any preprocessing steps you applied.

  ## Training Procedure
  - **Method:** LoRA fine-tuning on MedGemma 4B
  - **Regime:** Few-shot specialized adaptation
  - **Frameworks:** PEFT + Transformers
  - **Hardware:** [fill in]
  - **Epochs / steps:** [fill in]
  - **Learning rate:** [fill in]
  - **Batch size:** [fill in]
  - **LoRA config (`r`, `alpha`, target modules):** [fill in]

  ## Evaluation
  - **Validation setup:** [fill in]
  - **Primary metrics:** [fill in, e.g., recall/precision/F1 for ESI-1]
  - **Key results:** [fill in]
  - **Failure modes observed:** [fill in]

  ## Usage

  ```python
  from transformers import AutoModelForCausalLM, AutoTokenizer
  from peft import PeftModel

  base_id = "google/medgemma-4b-it"
  adapter_id = "AdilA1016/esi1trainedmodel"

  tokenizer = AutoTokenizer.from_pretrained(adapter_id)
  base_model = AutoModelForCausalLM.from_pretrained(base_id)
  model = PeftModel.from_pretrained(base_model, adapter_id)

  ## Safety and Ethics

  This model operates in a high-stakes medical context. Outputs may be incorrect, incomplete, or biased.
  Human oversight by qualified clinicians is required for any practical use.

  ## Citation

  If you use this adapter, please cite:

  - MIETIC dataset/source: [fill in]
  - MedGemma base model: [fill in official citation/link]
  - This repository: AdilA1016/esi1trainedmodel