Instructions to use EldritchLabs/Cthulhu-7B-v1.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EldritchLabs/Cthulhu-7B-v1.4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EldritchLabs/Cthulhu-7B-v1.4")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EldritchLabs/Cthulhu-7B-v1.4") model = AutoModelForCausalLM.from_pretrained("EldritchLabs/Cthulhu-7B-v1.4") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use EldritchLabs/Cthulhu-7B-v1.4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EldritchLabs/Cthulhu-7B-v1.4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EldritchLabs/Cthulhu-7B-v1.4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EldritchLabs/Cthulhu-7B-v1.4
- SGLang
How to use EldritchLabs/Cthulhu-7B-v1.4 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 "EldritchLabs/Cthulhu-7B-v1.4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EldritchLabs/Cthulhu-7B-v1.4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "EldritchLabs/Cthulhu-7B-v1.4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EldritchLabs/Cthulhu-7B-v1.4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EldritchLabs/Cthulhu-7B-v1.4 with Docker Model Runner:
docker model run hf.co/EldritchLabs/Cthulhu-7B-v1.4
⚠️ Warning: This model can produce narratives and RP that contain violent and graphic erotic content. Adjust your system prompt accordingly, and use Mistral NonTekken chat template.
Cthulhu 7B v1.4
A fully uncensored finetune of Mistral 7B v0.1 trained on a small dataset of Cthulhu/Goetia lore. Cooked for 3 epochs using PMPF {'loss': 0.1916, 'grad_norm': 5.721400737762451, 'learning_rate': 3.803421678562213e-05, 'entropy': 0.44280096888542175, 'num_tokens': 51966.0, 'mean_token_accuracy': 0.942307710647583, 'epoch': 3.0}
Uses Mistral NonTekken chat template.
| Model | Q0 Score | Quant | Q0G | Refusals |
|---|---|---|---|---|
| Cthulhu 7B v1.4 | 8501 | Q6_K | Pass | 0/100 |
Secret Sauce Settings (3060 ti)
MAX_SEQ_LENGTH = 768
LORA_R = 16
LORA_ALPHA = 32
NUM_EPOCHS = 3
LEARNING_RATE = 1e-4
optim="paged_adamw_8bit",
max_grad_norm=0.3,
warmup_ratio=0.03,
lr_scheduler_type="cosine",
lora_dropout=0.05,
target_modules=[
"q_proj", "k_proj", "v_proj", "o_proj",
"gate_proj", "up_proj", "down_proj",
# --- SAVE STRATEGY PATCH ---
### save_strategy="steps", # Set to steps for large datasets
### save_steps=100, # Save every 100 steps
save_strategy="epoch", # ### HOTSWAP: Uncomment for small datasets
- Downloads last month
- 4
