Downloads · 30 days
0
writetoasik/Veltha-14B-StoryCraft-v1
Veltha-14B-StoryCraft-v1 is a text generation model from writetoasik. 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.
A specialized 14B parameter language model fine-tuned for creative fantasy and science fiction novel writing.
Downloads · 30 days
0
Access
Public
Updated Jan 17, 2026
Repo size
562 MB
Likes
0
Public
Click a slice to open those files.
.safetensors551 MB · 97%
From the Hugging Face model README
A specialized 14B parameter language model fine-tuned for creative fantasy and science fiction novel writing.
Veltha-14B-StoryCraft-v1 is a fine-tuned version of djuna/Q2.5-Veltha-14B-0.5 (a Qwen 2.5 14B merged model) optimized specifically for long-form creative writing in fantasy and science fiction genres.
✨ No Repetition Issues - Conservative single-stage training prevents catastrophic overfitting 📚 Long-Form Coherence - Maintains consistent narrative voice across 1000+ word generations 🎨 Vivid Descriptions - Trained on high-quality fantasy and creative writing datasets 🧙 Genre Expertise - Specialized in fantasy and science fiction storytelling ⚡ Efficient - 14B parameters, runs on 24GB+ VRAM with 4-bit quantization
Single-Stage Conservative Fine-Tuning:
This conservative approach was specifically designed to avoid the repetition issues that plague aggressive multi-stage training.
Model: djuna/Q2.5-Veltha-14B-0.5
Architecture: Qwen 2.5 14B (merged model)
Fine-tuning Method: LoRA (Low-Rank Adaptation)
LoRA Configuration:
- Rank (r): 32
- Alpha: 16
- Dropout: 0.05
- Target Modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
- Trainable Parameters: 137.6M (1.66% of total)
Training Hyperparameters:
- Learning Rate: 5e-5 (cosine schedule)
- Batch Size: 2 (per device)
- Gradient Accumulation: 8 steps
- Effective Batch Size: 16
- Epochs: 1
- Optimizer: AdamW 8-bit
- Weight Decay: 0.01
- Warmup Ratio: 0.1
- Mixed Precision: BF16
Hardware:
- GPU: NVIDIA L40S (48GB)
- Framework: Unsloth + TRL
- Quantization: 4-bit NF4
Combined Training Set (19,304 examples):
VellumK2-Fantasy-DPO-Large-01 (10,222 examples)
Creative_Writing_Multiturn (9,082 examples)
Comprehensive testing across 4 creative writing tasks:
| Test | Words | Quality | Repetition |
|---|---|---|---|
| Fantasy Opening Scene | 541 | ⭐⭐⭐⭐½ | ✅ None |
| Sci-Fi First Contact | 533 | ⭐⭐⭐⭐⭐ | ✅ None |
| Character Development | 507 | ⭐⭐⭐⭐ | ✅ None |
| Long-Form Coherence (1000w) | 753 | ⭐⭐⭐⭐ | ✅ None |
Total Output: 2,334 words with zero catastrophic repetition issues.
Prompt: Write the opening scene of a fantasy novel. A young apprentice discovers an ancient artifact in the forbidden archives that reveals a hidden truth about their kingdom's founding.
Output:
"Master Alaric," whispered Elara as she slipped into the shadows between two towering bookcases, her breath misting in the chill air. The moonlight filtered through stained glass windows, casting eerie patterns across rows upon rows of dusty tomes. She had been ordered not to come here; the Forbidden Archives were off-limits to apprentices like herself.
But curiosity was her greatest flaw. When Master Alaric left for his nightly meeting with Lord Reginald, Elara couldn't resist exploring this mysterious part of the library where whispers echoed instead of footsteps...
[Full output demonstrates strong worldbuilding, tension, and character development with no repetition]
</details> <details> <summary><b>Sci-Fi First Contact (533 words)</b></summary>Prompt: Write a science fiction scene where humanity makes first contact with an alien species that communicates through colors and bioluminescence on a generation ship.
Output:
The Starlight Voyager had sailed the void of space for two hundred years, its passengers living in cramped quarters that smelled of dust and hope. They were a ragged band—scientists, dreamers, criminals—and they'd made it this far by necessity rather than virtue...
Colors bled across metal walls, through glass, into skin. Crew members screamed or laughed; some fell to their knees while others stretched out their hands as if embracing light itself...
[Demonstrates creative concept execution, vivid descriptions, and emotional depth]
</details>from unsloth import FastLanguageModel
# Load model
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="writetoasik/Veltha-14B-StoryCraft-v1",
max_seq_length=2048,
dtype=None,
load_in_4bit=True, # For 24GB VRAM GPUs
)
# Prepare for inference
FastLanguageModel.for_inference(model)
# Create a writing prompt
messages = [
{"role": "system", "content": "You are a creative novel writer specializing in fantasy and science fiction. Write engaging, coherent narratives with vivid descriptions and strong plot structure."},
{"role": "user", "content": "Write the opening scene of a fantasy novel about a dragon rider who discovers their dragon can speak."}
]
# Format and generate
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to("cuda")
outputs = model.generate(
input_ids=inputs,
max_new_tokens=800,
temperature=0.8,
top_p=0.9,
do_sample=True,
repetition_penalty=1.1,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# For longer outputs (up to 2048 tokens)
outputs = model.generate(
input_ids=inputs,
max_new_tokens=1500,
temperature=0.85, # Higher for more creativity
top_p=0.92, # Slightly higher for more diversity
top_k=50,
do_sample=True,
repetition_penalty=1.15, # Stronger penalty if needed
no_repeat_ngram_size=3, # Prevent 3-gram repetition
)
For best creative writing results:
generation_config = {
"temperature": 0.8, # Balanced creativity
"top_p": 0.9, # Nucleus sampling
"repetition_penalty": 1.1, # Gentle repetition prevention
"max_new_tokens": 800, # ~600 words
"do_sample": True, # Enable sampling
}
| Quantization | VRAM Required | Speed |
|---|---|---|
| 4-bit (NF4) | 10-12GB | ~15 tok/s |
| 8-bit | 18-20GB | ~18 tok/s |
| FP16 | 28-30GB | ~22 tok/s |
Recommended: 4-bit quantization on 24GB+ VRAM GPU (RTX 3090/4090, A5000, L40S)
This model represents the successful conclusion of an iterative fine-tuning process:
Key Learnings:
If you use this model in your research or applications, please cite:
@misc{veltha-storycraft-v1,
title={Veltha-14B-StoryCraft-v1: A Fine-Tuned Model for Fantasy and Science Fiction Writing},
author={writetoasik},
year={2025},
publisher={HuggingFace},
howpublished={\url{https://huggingface.co/writetoasik/Veltha-14B-StoryCraft-v1}},
}
Apache 2.0 (inherits from base model)
For questions, issues, or collaboration:
Model Version: 1.0 Release Date: January 2025 Training Completed: January 16, 2025 Status: Production Ready ✅