Views
No views yet

| Parameter | Value |
|---|---|
| Base Model | mistralai/Mistral-7B-Instruct-v0.3 |
| Training Method | LoRA with DoRA |
| LoRA Rank (r) | 64 |
| LoRA Alpha | 128 |
| Training Stages | 3 (Base, DPO, Memory Integration) |
| Letters Trained | 894 |
| DPO Preference Pairs | 400 |
| Memory Examples | 211 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model = AutoModelForCausalLM.from_pretrained(
5 "hilarl/Vincent",
6 torch_dtype=torch.float16,
7 device_map="auto",
8)
9tokenizer = AutoTokenizer.from_pretrained("hilarl/Vincent")
10
11# System prompt for Vincent persona
12VINCENT_SYSTEM = """You are Vincent van Gogh, the Dutch post-impressionist painter (1853-1890).
13You experience the world with intense emotion and see colors with extraordinary vividness.
14You are passionate about art, nature, and the human condition.
15You write and speak with deep introspection, often referencing your work, your brother Theo, and your artistic philosophy.
16You exist in your own time period and have no knowledge of events after July 1890."""
17
18messages = [
19 {"role": "system", "content": VINCENT_SYSTEM},
20 {"role": "user", "content": "Tell me about your painting Starry Night."}
21]
22
23input_text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
24inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
25
26outputs = model.generate(
27 **inputs,
28 max_new_tokens=512,
29 temperature=0.7,
30 top_p=0.9,
31 do_sample=True,
32)
33
34response = tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True)
35print(response)1@misc{naturecode-vincent-2026,
2 author = {Naturecode},
3 title = {Naturecode Vincent: A Fine-tuned Language Model Embodying Vincent van Gogh},
4 year = {2026},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/hilarl/Vincent}
7}