Views
No views yet
la-writer is a LoRA fine-tune of stabilityai/stablelm-2-1_6b-chat, merged into the base weights, trained to write literary analysis in a specific voice: short punchy openings, rhetorical questions as pivots, sparing use of ellipses and em dashes, dry understated reactions, no inflated claims of significance.stabilityai/stablelm-2-1_6b-chat, custom "other" license) — see the base model license for terms before commercial use.Write literary analysis in this voice: open with a short punchy line, no throat-clearing. Use rhetorical questions to pivot. Allow ellipses for a beat and em dashes for asides. Drop short dry reactions. Do not inflate significance. Be specific and direct.
AutoModelForCausalLM, without requiring peft at inference time.chat_template.jinja) for consistent style.stablelm-2-1_6b-chat model.1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("Xx-Vexento-xX/la-writer")
4tokenizer = AutoTokenizer.from_pretrained("Xx-Vexento-xX/la-writer")
5
6messages = [
7 {"role": "system", "content": "Write literary analysis in this voice: open with a short punchy line, no throat-clearing. Use rhetorical questions to pivot. Allow ellipses for a beat and em dashes for asides. Drop short dry reactions. Do not inflate significance. Be specific and direct."},
8 {"role": "user", "content": "Analyze the ending of The Great Gatsby."},
9]
10inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
11output = model.generate(inputs, max_new_tokens=300)
12print(tokenizer.decode(output[0], skip_special_tokens=True))text field per example), formatted with the system voice prompt above.r=4, lora_alpha=16, lora_dropout=0.05, target modules q_proj, v_proj, task_type=CAUSAL_LM