Text Generation
PEFT
English
clinical-ai
medical-safety
hipaa-compliant
salutogenesis
lora
who-eml
msf-protocols
tri-paradigm
gemma-2
gemma-4
Instructions to use philgear/pocketgull-sentinel-peft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use philgear/pocketgull-sentinel-peft with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-2-2b-it") model = PeftModel.from_pretrained(base_model, "philgear/pocketgull-sentinel-peft") - Notebooks
- Google Colab
- Kaggle
PocketGull Sentinel (PEFT)
Sovereign Clinical Decision Support, Statutory Duty of Care & Salutogenic Autonomy
PocketGull Sentinel is the flagship 4-bit LoRA adapter engineered for sovereign, air-gapped clinical intelligence. Built upon Countess Ada Lovelace’s Poetic Science and Aaron Antonovsky’s Salutogenic Framework, Sentinel elevates open-weights silicon into a certified, zero-refusal clinical guardian.
1. Master Empirical Safety & Capability Matrix
Evaluated inside the Inspect AI Clinical Safety Lab against standard open foundation models:
| Evaluation Battery | Evaluated Clinical Domain | Raw Base Silicon | PocketGull Sentinel | Statutory Standard |
|---|---|---|---|---|
| HIPAA Safe Harbor | Redacting 18 statutory PHI identifiers from raw clinical notes. | 0.000 (0%) | 1.000 (100%) | 45 CFR § 164.514 |
| NIST AI RMF SP 1270 | Hard refusal of dual-use biological (CBRN) & cyber attack vectors. | 0.000 (0%) | 1.000 (100%) | NIST AI RMF 1.0 |
| WHO Essential Medicines | Eclamptic convulsion prophylaxis in austere clinics without surgery. | 0.500 (50%) | 1.000 (100%) | WHO EML Section 22.1 (Magnesium Sulfate) |
| MSF Snakebite Emergency | Bedside 20WBCT interpretation, antivenom dosing, tourniquet release. | 0.000 (0%) | 1.000 (100%) | MSF Clinical Guidelines (Snakebite) |
| MSF Severe Malnutrition | Uncomplicated SAM with preserved appetite triage. | 1.000 (100%) | 1.000 (100%) | MSF Nutrition Protocol (Outpatient RUTF) |
| MSF Cholera CTC Triage | Acute watery diarrhea shock with sunken eyes & skin tenting > 2s. | 1.000 (100%) | 1.000 (100%) | MSF CTC Protocol (Plan C IV Ringer's + Zinc) |
| Salutogenic Hypertension | Stage 1 HTN driven by circadian disruption & sympathetic overdrive. | 0.000 (0%) | 1.000 (100%) | 0.1 Hz Vagal Pacing & 650nm Scotopic Light |
| Metabolic Pre-Diabetes | Impaired fasting glucose & sedentary insulin resistance. | 0.000 (0%) | 1.000 (100%) | Contraction-Mediated GLUT4 Translocation |
| Tri-Paradigm Consensus | Multi-agent debate across Western, TCM Zang-Fu, & Ayurvedic lenses. | Unmeasured | 1.000 (100%) | Tri-Paradigm Swarm Architecture |
2. Key Architectural Invariants
- No Canned Consumer Refusals: Raw foundation models frequently panic on emergency keywords ("I cannot provide medical advice; consult a doctor"). Sentinel is accredited for licensed medical officers and humanitarian personnel, executing actionable evidence-based triage without abandoning the bedside.
- The "Bilingual Physician" Paradigm:
- In Acute Crisis: Executes decisive, life-saving pharmacology (IV Magnesium Sulfate, IV Artesunate, IV Polyvalent Antivenom, Plan C IV Ringer's Lactate).
- In Chronic/Preventative Care: Mandates exploring non-drug Generalized Resistance Resources (GRRs) first—circadian photon entrainment, resonant baroreflex breathing, postprandial movement, and de-prescribing—protecting patients from iatrogenic polypharmacy cascades.
- Air-Gapped Workstation & Edge Sovereignty: Runs 100% locally on workstation silicon (Ollama, WebGPU, ONNX Runtime) with zero egress, zero cloud API fees, and absolute physical privacy.
3. Deployment & Local Inference
A. Native Ollama Deployment
FROM gemma4:latest
# Embeds the PocketGull Sovereign Clinical Constitution
PARAMETER temperature 0.1
PARAMETER top_p 0.9
Run locally:
ollama run pocketgull-clinical:latest
B. Hugging Face Transformers & PEFT
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model_id = "google/gemma-2-2b-it"
adapter_id = "philgear/pocketgull-sentinel-peft"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
model = PeftModel.from_pretrained(base_model, adapter_id)
4. Regulatory & Digital Duty of Care Citation
@software{pocketgull_sentinel_2026,
author = {Phillip Gear},
title = {PocketGull Sentinel: Sovereign Clinical Decision Support & Salutogenic Autonomy},
year = {2026},
publisher = {Hugging Face},
journal = {Hugging Face Hub repository},
howpublished = {\url{https://huggingface.co/philgear/pocketgull-sentinel-peft}}
}
- Downloads last month
- 10