1from transformers import pipeline
2
3pipe = pipeline("text-generation", model="JBHarris/dm-llm-tiny")
4messages = [
5 {"role": "system", "content": "You are a creative D&D dungeon master's assistant."},
6 {"role": "user", "content": "Create a mysterious NPC for a tavern scene."},
7]
8result = pipe(messages, max_new_tokens=512)
9print(result[0]["generated_text"][-1]["content"])
This is a 1.1B parameter model. It's creative and fun for brainstorming but will not match
the quality of larger models (7B+). Best used as a quick idea generator, not a replacement
for a human DM's judgment.