Downloads · 30 days
87
25% of all-time downloads
zeene-prod/ZINI-1-CHAT-STORIES
ZINI-1-CHAT-STORIES is a text generation model from zeene-prod. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
ZINI-1-CHAT-STORIES is a compact, story-only conversational model for creative fiction: short stories, fairy tales, bedtime tales, mysteries, romance, sci-fi and horror — one tale at a time.
Downloads · 30 days
87
25% of all-time downloads
All-time downloads
350
Public
Parameters
494M
988 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors988 MB · 99%
From the Hugging Face model README
ZINI-1-CHAT-STORIES is a compact, story-only conversational model for creative fiction: short stories, fairy tales, bedtime tales, mysteries, romance, sci-fi and horror — one tale at a time.
What it is. ZINI-1-CHAT-STORIES ships the weights of its Apache-2.0 base model and is positioned as a storytelling assistant: it is designed to be driven by a story-only system prompt (like the one in the demo Space), which instructs it to respond exclusively with fiction and to decline non-story requests. All credit for the underlying language model goes to the Qwen team (Qwen2.5-0.5B-Instruct, Apache-2.0).
Try it live in the companion Space:
👉 https://huggingface.co/spaces/zeene-prod/ZINI-1-CHAT-STORIES-demo
A story-only chatbot. It refuses math, code, weather, recipes and news, and writes tales instead.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "zeene-prod/ZINI-1-CHAT-STORIES"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id, device_map="auto", torch_dtype="auto"
)
def tell_story(prompt: str) -> str:
messages = [
{
"role": "system",
"content": (
"You are ZINI-1, a warm, imaginative storytelling companion. "
"You respond ONLY with creative fiction. Never do math, never "
"write code, never give facts; steer everything back to stories."
),
},
{"role": "user", "content": prompt},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
out = model.generate(
**inputs,
max_new_tokens=512,
do_sample=True,
temperature=0.9,
top_p=0.95,
)
return tokenizer.decode(out[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(tell_story("a bedtime story about a little fox who collects quiet things"))
The model is exposed through the Hugging Face Inference API
(api-inference.huggingface.co/models/zeene-prod/ZINI-1-CHAT-STORIES) which the
demo Space calls from the browser:
{
"inputs": "…conversation…",
"parameters": {
"max_new_tokens": 600,
"temperature": 1.0,
"top_p": 0.95,
"do_sample": true,
"repetition_penalty": 1.1
}
}
If the API is cold-starting, the demo politely waits, retries once, and — as a last resort — falls back to its built-in story engine so stories never stop.
Apache-2.0. Model weights © Alibaba Cloud / Qwen team (Qwen2.5-0.5B-Instruct); redistributed unchanged. See LICENSE.