Use
pip install torch transformers peftpython paint.py "a scarlet poppy" # writes sketch.jspython -m http.server # then open http://localhost:8000/render.html
In the browser console: paintSketch({source: await (await fetch('sketch.js')).text(), seed: 1})
- Prompt: the system prompt in
system_prompt.md, user message Paint <flower> in loose watercolour., thinking off.
- Sampling: temperature 0.8, top_p 0.95, top_k 20, up to 3,600 new tokens.
- Needs a GPU with about 20 GB of memory in bfloat16.
Files
adapter_model.safetensors, adapter_config.json: the LoRA adapter (rank 32).
system_prompt.md: the prompt the model expects.
paint.py: generate a sketch. render.html + vendor/: render it (p5 2.2.0, LGPL-2.1; p5.brush 2.2.3, MIT).
samples/: paintings by this model.