Instructions to use nerd-swayam/LLama-Mental-Health-Assistence with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nerd-swayam/LLama-Mental-Health-Assistence with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/meta-llama-3.1-8b-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "nerd-swayam/LLama-Mental-Health-Assistence") - Transformers
How to use nerd-swayam/LLama-Mental-Health-Assistence with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="nerd-swayam/LLama-Mental-Health-Assistence")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nerd-swayam/LLama-Mental-Health-Assistence", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
Ctrl+K