Gemma 2 9B Therapy Session Notes
Published by @clinician_assist · Community adapter
Structured psychotherapy session notes in DAP and SOAP formats. Trained on de-identified, consent-obtained therapy transcripts. Not a clinical decision tool; requires licensed clinician oversight.
Usage
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-9b-it")
base = AutoModelForCausalLM.from_pretrained("google/gemma-2-9b-it")
model = PeftModel.from_pretrained(base, "modelforgelab/gemma2-9b-therapy-notes-lora")
inputs = tokenizer("Your prompt here", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Compatibility
- transformers>=4.42