How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="Vortex5/Lunar-Twilight-12B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Vortex5/Lunar-Twilight-12B")
model = AutoModelForCausalLM.from_pretrained("Vortex5/Lunar-Twilight-12B")
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]:]))
Quick Links

Lunar-Twilight-12B

Overview

Lunar-Twilight-12B was created by merging Starlit-Shadow-12B, Red-Synthesis-12B, Tlacuilo-12B, and Mystic-Matron-12B using a custom method.

Merge configuration
base_model: Vortex5/Starlit-Shadow-12B
models:
  - model: Vortex5/Starlit-Shadow-12B
  - model: Vortex5/Red-Synthesis-12B
  - model: allura-org/Tlacuilo-12B
  - model: Vortex5/Mystic-Matron-12B
merge_method: hpq
chat_template: auto
parameters:
  strength: 0.73
  flavor: 0.36
  steps: 12
  cube_dims: 22
  paradox: 0.43
  boost: 0.56
dtype: bfloat16
tokenizer:
  source: Vortex5/Starlit-Shadow-12B
      

Intended Use

📜 Storytelling
🎭 Roleplay
🌙 Creative Writing
Downloads last month
6
Safetensors
Model size
12B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Vortex5/Lunar-Twilight-12B