Downloads · 30 days
31
28% of all-time downloads
humanvprojectceo/nilla-story
nilla-story is a text generation model from humanvprojectceo. 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.
This repository contains: - HumanV: a lightweight, decoder-only Transformer architecture integrated into the 🤗 Transformers codebase. - Nilla-Story: a small HumanV checkpoint trained for short story generation (TinyS…
Downloads · 30 days
31
28% of all-time downloads
All-time downloads
112
Public
Parameters
19.4M
77.5 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors77.5 MB · 94%
From the Hugging Face model README
This repository contains:
Goal: upstream the HumanV architecture into
huggingface/transformersso it can be loaded with standardAutoModel*classes (withouttrust_remote_code=True).
nebularesearchtrain/nilla-storygpt2), vocab size 50,257from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "nebularesearchtrain/nilla-story"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "Once upon a time,"
inputs = tokenizer(prompt, return_tensors="pt")
out = model.generate(
**inputs,
max_new_tokens=120,
do_sample=True,
temperature=0.7,
top_p=0.9,
repetition_penalty=1.1,
)
print(tokenizer.decode(out[0], skip_special_tokens=True))
If you are using a development version that still requires custom code on the Hub, load with:
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
HumanV is a decoder-only Transformer inspired by modern LLaMA-style blocks:
num_key_value_heads (can be equal to num_attention_heads for standard MHA)For TPU-friendly stability and speed:
Prompts like:
Once upon a time,The little bird wanted toproduce short story continuations suitable for toy storytelling tasks.
This repository is prepared for an upstream PR to 🤗 Transformers. A typical PR includes:
src/transformers/models/humanv/ implementation (configuration_*.py, modeling_*.py)AutoModelForCausalLM works)tests/models/humanv/docs/source/en/model_doc/humanv.mdTransformers recommends a modular approach for new model contributions, and CI may validate generated files when using modular modeling.
If you use this work, please cite the repository and the Hugging Face model page.