Downloads · 30 days
20
17% of all-time downloads
ecorbari/Gemma-2b-it-Psych-Merged
Gemma-2b-it-Psych-Merged is a text generation model from ecorbari. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Gemma-2b-it-Psych-Merged is the full-weight, standalone version of the google/gemma-2b-it model, domain-adapted for psychological contexts. This model integrates the LoRA adapter weights from ecorbari/Gemma-2b-it-Psyc…
Downloads · 30 days
20
17% of all-time downloads
All-time downloads
120
Public
Parameters
2.5B
5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors5 GB · 99%
From the Hugging Face model README
Gemma-2b-it-Psych-Merged is the full-weight, standalone version of the google/gemma-2b-it model, domain-adapted for psychological contexts. This model integrates the LoRA adapter weights from ecorbari/Gemma-2b-it-Psych directly into the base model using the merge_and_unload() process.
The model is optimized to generate empathetic, supportive, and professionally aligned psychological responses. Unlike the adapter-only version, this repository contains the complete merged weights, meaning it does not require the peft library for standard inference.
google/gemma-2b-itmerge_and_unload)This merged model is ready for production and simplified inference. It can be loaded directly using standard transformers pipelines. It is intended for:
Since the weights are already merged, you can run inference using a simple pipeline:
import torch
from transformers import pipeline
model_id = "ecorbari/Gemma-2b-it-Psych-Merged"
pipe = pipeline(
"text-generation",
model=model_id,
dtype=torch.float16,
device_map="auto",
)
prompt = "I feel anxious and overwhelmed lately. What should I do?"
result = pipe(prompt, max_new_tokens=200)
print(result[0]["generated_text"])
Safety Disclaimer: The model may generate inaccurate information. Empathy in text generation does not imply clinical safety or medical correctness.
Data Bias: Responses may reflect biases inherent in the jkhedri/psychology-dataset.
Human Oversight: Users should apply human judgment, especially in sensitive conversational settings.
The workflow involved loading the google/gemma-2b-it model in float16 precision, attaching the LoRA adapters trained on
preference-based psychological data, and merging the weights into a single model for downstream use. This ensures compatibility with
environments that do not support PEFT or require lower latency for inference.