How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf JBHarris/dm-llm-tiny:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf JBHarris/dm-llm-tiny:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf JBHarris/dm-llm-tiny:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf JBHarris/dm-llm-tiny:Q4_K_M
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf JBHarris/dm-llm-tiny:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf JBHarris/dm-llm-tiny:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf JBHarris/dm-llm-tiny:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf JBHarris/dm-llm-tiny:Q4_K_M
Use Docker
docker model run hf.co/JBHarris/dm-llm-tiny:Q4_K_M
Quick Links

DM-LLM-Tiny

A tiny (1.1B parameter) language model fine-tuned for Dungeons & Dragons content generation.

What it does

Generates creative D&D content including:

  • NPCs โ€” memorable characters with backstories, motivations, and quirks
  • Quests โ€” hooks, outlines, and full quest arcs
  • Dialog โ€” in-character conversations, monologues, and banter
  • Locations โ€” vivid descriptions of dungeons, towns, and wilderness
  • Encounters โ€” combat, social, and puzzle encounters

Usage

With Ollama (easiest)

ollama run JBHarris/dm-llm-tiny

With Transformers

from transformers import pipeline

pipe = pipeline("text-generation", model="JBHarris/dm-llm-tiny")
messages = [
    {"role": "system", "content": "You are a creative D&D dungeon master's assistant."},
    {"role": "user", "content": "Create a mysterious NPC for a tavern scene."},
]
result = pipe(messages, max_new_tokens=512)
print(result[0]["generated_text"][-1]["content"])

Training

  • Base model: TinyLlama-1.1B-Chat-v1.0
  • Method: QLoRA (4-bit NF4 quantization + LoRA r=64)
  • Data: ~5000 synthetic D&D instruction/response pairs generated with Claude
  • Hardware: NVIDIA RTX 4080 16GB

Limitations

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.

License

Apache 2.0 (same as base model)

Downloads last month
62
Safetensors
Model size
1B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for JBHarris/dm-llm-tiny

Quantized
(150)
this model