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

pipe = pipeline("image-text-to-text", model="Cyclone-Labs/Lucid-Shadow-31B")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("Cyclone-Labs/Lucid-Shadow-31B")
model = AutoModelForMultimodalLM.from_pretrained("Cyclone-Labs/Lucid-Shadow-31B", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = processor.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=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links
Lucid-Shadow-31B artwork

Lucid-Shadow-31B

Overview

Lucid-Shadow-31B was created by combining gemma-4-31B-it, Artemis-31B-v1.1, Gemopus-4-31B-it, and Melinoe-Gemma4-31B-VL using a custom merge method.

Merge Configuration
base_model: google/gemma-4-31B-it
models:
  - model: TheDrummer/Artemis-31B-v1.1
  - model: Jackrong/Gemopus-4-31B-it
  - model: bgg1996/Melinoe-Gemma4-31B-VL
merge_method: hasp
chat_template: auto
parameters:
  steps: 12
dtype: float32
out_dtype: bfloat16
tokenizer:
  source: union

Intended Use

Roleplay

Character-driven interaction, personas, dialogue, emotional scenes, and long-form roleplay.

Creative Writing

Fiction, dialogue, atmosphere, descriptive writing, stylistic drafting, and imaginative prose.

Storytelling

Long-form narratives, worldbuilding, continuity, evolving characters, and multi-character plots.

Interactive Fiction

Branching narratives, scenario play, character interaction, and continuously evolving stories.

Downloads last month
62
Safetensors
Model size
31B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Cyclone-Labs/Lucid-Shadow-31B