Text Generation
Transformers
Safetensors
llama
Merge
mergekit
lazymergekit
conversational
text-generation-inference
Instructions to use Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2") model = AutoModelForCausalLM.from_pretrained("Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2
- SGLang
How to use Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2 with Docker Model Runner:
docker model run hf.co/Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2
Psyche-3
Psyche-3 is a merge of the following models using LazyMergekit:
- TheSkullery/llama-3-cat-8b-instruct-v1
- victunes/TherapyLlama-8B-v1
- herisan/llama-3-8b_mental_health_counseling_conversations
- Falah/lora_model_mental_health_llama3
- Abdo36/MentalLORALLAMA3
- zementalist/llama-3-8B-chat-psychotherapist
- PrahmodhRaj/Llama-3_Psychiatrist_Chat
- Cas-Warehouse/Llama-3-MopeyMule-Blackroot-8B
- Cas-Warehouse/Llama-3-SOVL-MopeyMule-8B
🧩 Configuration
slices:
- sources:
- model: TheSkullery/llama-3-cat-8b-instruct-v1
layer_range: [0, 32]
- model: victunes/TherapyLlama-8B-v1
layer_range: [0, 32]
parameters:
density: 0.55
weight: 0.35
- model: herisan/llama-3-8b_mental_health_counseling_conversations
layer_range: [0, 32]
parameters:
density: 0.55
weight: 0.35
merge_method: ties
base_model: TheSkullery/llama-3-cat-8b-instruct-v1
parameters:
int8_mask: true
dtype: bfloat16
---
models:
- model: Casual-Autopsy/Psyche-1+Falah/lora_model_mental_health_llama3
- model: Casual-Autopsy/Psyche-1+Abdo36/MentalLORALLAMA3
- model: Casual-Autopsy/Psyche-1+zementalist/llama-3-8B-chat-psychotherapist
- model: Casual-Autopsy/Psyche-1+PrahmodhRaj/Llama-3_Psychiatrist_Chat
merge_method: model_stock
base_model: Casual-Autopsy/Psyche-1
dtype: bfloat16
---
models:
- model: Casual-Autopsy/Psyche-2
- model: Cas-Warehouse/Llama-3-MopeyMule-Blackroot-8B
parameters:
weight: 0.25
- model: Cas-Warehouse/Llama-3-SOVL-MopeyMule-8B
parameters:
weight: 0.15
merge_method: task_arithmetic
base_model: Casual-Autopsy/Psyche-2
dtype: bfloat16
- Downloads last month
- 11
Model tree for Cas-Warehouse/Llama-3-Mopeyfied-Psychology-v2
Merge model
this model