arafatanam/Student-Mental-Health-Counseling-50K
Viewer β’ Updated β’ 50k β’ 17 β’ 2
CareCounselor-LLaMA-3.1-8B-Instruct is a fine-tuned version of Metaβs LLaMA-3.1-8B-Instruct, specialized for student mental health counseling. It is trained to generate empathetic, relevant, and supportive responses in mental health and counseling contexts.
This model aims to assist in:
arafatanam/Student-Mental-Health-Counseling-50Kmeta-llama/Llama-3.1-8B-InstructUnslothSFTTrainer with Hugging Face transformersper_device_train_batch_size = 1gradient_accumulation_steps = 8num_train_epochs = 1learning_rate = 2e-4optimizer = adamw_8bitlr_scheduler_type = cosinefp16: enabledwarmup_ratio = 0.01weight_decay = 0.01logging_steps = 100save_steps = 1000seed = 3407| Step | Training Loss |
|---|---|
| 100 | 1.4947 |
| 1000 | 0.9752 |
| 2000 | 0.8895 |
| 3000 | 0.8624 |
| 3100 | 0.8756 |
0.87563125390,573,497,511,198,7201.3250.083from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "arafatanam/CareCounselor-LLaMA-3.1-8B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
input_text = "Iβve been feeling anxious and overwhelmed with exams. What should I do?"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=150)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Base model
meta-llama/Llama-3.1-8B