Downloads · 30 days
16
1% of all-time downloads
Heshamproduct/gemma-3-12b-elderly-care-merged-v11
gemma-3-12b-elderly-care-merged-v11 is a text generation model from Heshamproduct. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is a fine-tuned version of google/gemma-3-12b-it specialized for elderly care conversations. The model was fine-tuned using LoRA (Low-Rank Adaptation) and then the adapters were merged into the base model for eas…
Downloads · 30 days
16
1% of all-time downloads
All-time downloads
2.8K
Public
Parameters
12.2B
24.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors24.4 GB · 100%
From the Hugging Face model README
This is a fine-tuned version of google/gemma-3-12b-it specialized for elderly care conversations. The model was fine-tuned using LoRA (Low-Rank Adaptation) and then the adapters were merged into the base model for easier deployment and inference.
This model aims to be an empathetic, patient, and helpful conversational assistant for elderly individuals. It has been trained on a dataset of high-quality prompt-response pairs relevant to scenarios encountered in elderly care. The fine-tuning focused on:
Base Model: google/gemma-3-12b-it
Fine-tuning Data: high_quality_data_v1_b20_concurrent_v2.jsonl
Fine-tuning Method: LoRA
Source Adapters (Merged into this Model): gemma3_12b_elderly_care_adapters_v11
This is a fully merged model. You can load it directly using AutoModelForCausalLM and AutoTokenizer from the Hugging Face transformers library.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "Heshamproduct/gemma-3-12b-elderly-care-merged-v11"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto", # Handles multi-GPU or CPU if CUDA is not available
torch_dtype=torch.bfloat16 # Recommended for Gemma models; "auto" also works
)
# Gemma instruction format is important for optimal performance
prompt = "### Instruction:\nTell me a short, happy story about a sunny day.\n\n### Response:\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
# Generate response
# Adjust generation parameters as needed
outputs = model.generate(
**inputs,
max_new_tokens=250,
do_sample=True,
temperature=0.7,
top_p=0.9,
repetition_penalty=1.1,
pad_token_id=tokenizer.eos_token_id
)
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
# The output will likely include the prompt, so you might want to clean it:
response_only = generated_text.split("### Response:\n")[-1].strip()
print(response_only)
The model was fine-tuned from google/gemma-3-12b-it using the SFTTrainer from the trl library and PEFT LoRA. The adapters used for this merged model originated from the directory gemma3_12b_elderly_care_adapters_v11.
### Instruction:\n{prompt}\n\n### Response:\n{response}.The fine-tuning process that generated the source adapters was logged in a file similar to finetune_gemma3_12b_hq_v24.log (potentially with a different version number if adapters v11 were from an earlier run than the v24 log).
Formal quantitative evaluation (e.g., perplexity on a holdout set, standardized benchmarks) has not yet been performed. Qualitative assessment during development showed improved adherence to instructions and persona consistency for elderly care scenarios compared to the base model.
Model Card created by Heshamproduct.
This model was fine-tuned and merged as part of an elderly care chatbot project.
Repository: Heshamproduct/gemma-3-12b-elderly-care-merged-v11