Instructions to use yashvshetty/clarke-medgemma-27b-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use yashvshetty/clarke-medgemma-27b-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/medgemma-27b-text-it") model = PeftModel.from_pretrained(base_model, "yashvshetty/clarke-medgemma-27b-lora") - Notebooks
- Google Colab
- Kaggle
Clarke LoRA adapter (Trained with Unsloth)
Browse filesUpload model trained with Unsloth 2x faster
- README.md +9 -1
- adapter_config.json +9 -5
- adapter_model.safetensors +1 -1
README.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
| 1 |
---
|
| 2 |
library_name: peft
|
| 3 |
base_model: google/medgemma-27b-text-it
|
| 4 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
license: apache-2.0
|
| 6 |
---
|
| 7 |
# Clarke LoRA Adapter — MedGemma 27B for NHS Clinic Letters
|
|
|
|
| 1 |
---
|
| 2 |
library_name: peft
|
| 3 |
base_model: google/medgemma-27b-text-it
|
| 4 |
+
tags:
|
| 5 |
+
- medgemma
|
| 6 |
+
- medical
|
| 7 |
+
- nhs
|
| 8 |
+
- clinical-documentation
|
| 9 |
+
- lora
|
| 10 |
+
- qlora
|
| 11 |
+
- kaggle-competition
|
| 12 |
+
- unsloth
|
| 13 |
license: apache-2.0
|
| 14 |
---
|
| 15 |
# Clarke LoRA Adapter — MedGemma 27B for NHS Clinic Letters
|
adapter_config.json
CHANGED
|
@@ -2,8 +2,12 @@
|
|
| 2 |
"alora_invocation_tokens": null,
|
| 3 |
"alpha_pattern": {},
|
| 4 |
"arrow_config": null,
|
| 5 |
-
"auto_mapping":
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
"bias": "none",
|
| 8 |
"corda_config": null,
|
| 9 |
"ensure_weight_tying": false,
|
|
@@ -29,10 +33,10 @@
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
-
"
|
| 33 |
-
"v_proj",
|
| 34 |
"k_proj",
|
| 35 |
-
"
|
|
|
|
| 36 |
],
|
| 37 |
"target_parameters": null,
|
| 38 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 2 |
"alora_invocation_tokens": null,
|
| 3 |
"alpha_pattern": {},
|
| 4 |
"arrow_config": null,
|
| 5 |
+
"auto_mapping": {
|
| 6 |
+
"base_model_class": "Gemma3ForCausalLM",
|
| 7 |
+
"parent_library": "transformers.models.gemma3.modeling_gemma3",
|
| 8 |
+
"unsloth_fixed": true
|
| 9 |
+
},
|
| 10 |
+
"base_model_name_or_path": "unsloth/medgemma-27b-text-it-unsloth-bnb-4bit",
|
| 11 |
"bias": "none",
|
| 12 |
"corda_config": null,
|
| 13 |
"ensure_weight_tying": false,
|
|
|
|
| 33 |
"rank_pattern": {},
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
+
"o_proj",
|
|
|
|
| 37 |
"k_proj",
|
| 38 |
+
"v_proj",
|
| 39 |
+
"q_proj"
|
| 40 |
],
|
| 41 |
"target_parameters": null,
|
| 42 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 134153744
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d29c7be9a3558233d1779ae2cc4e9123b885e7809d4ce73c7f01335993a3c128
|
| 3 |
size 134153744
|