Downloads · 30 days
25
23% of all-time downloads
marcuscedricridia/Konjac-0.6B
Konjac-0.6B is a text generation model from marcuscedricridia. Use it when you need the model to write or continue text. It is set up for transformers.
Konjac-0.6B-exp is an experimental, creative writing model designed for uncensored roleplaying and narrative generation. It can generate short stories with a high degree of creative freedom and fluidity. This model is…
Downloads · 30 days
25
23% of all-time downloads
All-time downloads
107
Public
Parameters
596M
2.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin1.2 GB · 50%
From the Hugging Face model README
Konjac-0.6B-exp is an experimental, creative writing model designed for uncensored roleplaying and narrative generation. It can generate short stories with a high degree of creative freedom and fluidity. This model is tuned for generating engaging and imaginative content that can span various genres, featuring diverse characters and scenarios. The name "Konjac" comes from its goal to be small yet effective for creative applications.
This model is not designed for reasoning or structured logic, as it does not incorporate traditional forms of inference. Instead, it generates output based purely on patterns in the data it was trained on, focusing on creativity and narrative development.
Note: The model's uncensored output can sometimes be inconsistent, depending on the prompt, as it is still being refined to handle such cases effectively. Expect to see updates in future iterations.
Here is an example of how to use this model with the transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
import torch
import threading
model_name = "marcuscedricridia/Konjac-0.6B"
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
# Prepare input
prompt = """
Please write a story using the following writing prompt: Demons have to do at least one evil thing every day to survive. This one comes to your bakery everyday to buy bread for the homeless kids and steal exactly one cookie.
The title of this story should be: The Baker's Demon
It should feature the following genres: Fantasy, Drama
"""
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=False
)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
# Use streamer
streamer = TextIteratorStreamer(tokenizer, skip_special_tokens=True)
# Generation parameters
generation_kwargs = dict(
**inputs,
streamer=streamer,
max_new_tokens=8000,
temperature=0.8, # controls randomness (higher = more random)
top_k=50, # limits token sampling to top-k tokens
top_p=0.95, # nucleus sampling, considers top tokens with p cumulative prob
repetition_penalty=1.1, # penalizes repeated tokens
do_sample=True # required for sampling to take effect
)
# Run generation in a thread to allow streaming
thread = threading.Thread(target=model.generate, kwargs=generation_kwargs)
thread.start()
# Read streamed output
print("Streaming output:")
for token in streamer:
print(token, end="", flush=True)
Model Enhancements: Future versions of the model will aim to fix the issues around inconsistent uncensored output and potentially reintroduce reasoning capabilities.
Larger Outputs: We plan to refine the model to generate longer and more complex narratives, similar to the styles of well-known models like GLM, Gemma, O3, and O4, with improved formatting and creative titles.
Exploration of Parameters: New training will focus on increasing the creative and thematic variety while maintaining short-form coherence.
Inconsistent Uncensored Output: The uncensored functionality is still being refined. Sometimes, the model may refuse to generate uncensored content depending on the prompt.
Size Limitation: The current version will likely remain the smallest in the Konjac family, with future models focusing on improving variations, iterations, and fixes.