Downloads · 30 days
5
5% of all-time downloads
Dralkh/qwen35-svg-animal-lora
qwen35-svg-animal-lora is a machine learning model from Dralkh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
This repository contains a LoRA adapter trained with Unsloth on yoavf/svg-animal-illustrations.
Downloads · 30 days
5
5% of all-time downloads
All-time downloads
93
Public
Repo size
360 MB
Likes
0
Public
Click a slice to open those files.
.safetensors425 MB · 81%
From the Hugging Face model README
This repository contains a LoRA adapter trained with Unsloth on yoavf/svg-animal-illustrations.
unsloth/Qwen3.5-4Byoavf/svg-animal-illustrationstrainA qualitative comparison was generated on 20 prompts: 10 animal SVG prompts and 10 non-animal SVG prompts.
Outputs were generated from both the base model and the trained LoRA adapter. The comparison artifacts are included in comparison-20/.
comparison-20/comparison.json: raw prompt/output/metric datacomparison-20/comparison.html: standalone visual comparison report| Model | outputs with <svg | outputs with </svg> | outputs starting with <svg | average chars |
|---|---|---|---|---|
| Base | 20/20 | 2/20 | 1/20 | 974 |
| Trained LoRA | 20/20 | 1/20 | 14/20 | 864 |
</svg> when generation is capped. The visual HTML report uses sandboxed previews so malformed SVG cannot break the viewer.| # | Category | Prompt | Base <svg | Base </svg> | Trained <svg | Trained </svg> | Base chars | Trained chars |
|---|---|---|---|---|---|---|---|---|
| 1 | animal | Create a cute blue rabbit SVG illustration. Output SVG only. | yes | no | yes | no | 972 | 876 |
| 2 | animal | Generate a playful orange cat as SVG code only. | yes | no | yes | no | 820 | 828 |
| 3 | animal | Draw a green parrot vector illustration in SVG format. | yes | no | yes | no | 1207 | 947 |
| 4 | animal | Make a small brown dog with big eyes as SVG only. | yes | no | yes | no | 904 | 771 |
| 5 | animal | Create a pink pig sitting happily as SVG code only. | yes | no | yes | no | 883 | 890 |
| 6 | animal | Generate a yellow duck SVG illustration. Return only the SVG. | yes | no | yes | no | 938 | 846 |
| 7 | animal | Draw a gray hamster with round ears in SVG format. | yes | no | yes | no | 966 | 912 |
| 8 | animal | Make a black-and-white cow cartoon as SVG code only. | yes | no | yes | no | 862 | 867 |
| 9 | animal | Create a red fox curled up as an SVG illustration. | yes | no | yes | no | 1134 | 788 |
| 10 | animal | Generate a purple fish with fins as SVG only. | yes | no | yes | no | 1254 | 796 |
| 11 | non_animal | Create a red sports car SVG illustration. Output SVG only. | yes | no | yes | no | 915 | 806 |
| 12 | non_animal | Generate a blue coffee mug as SVG code only. | yes | no | yes | no | 789 | 825 |
| 13 | non_animal | Draw a simple green house with roof in SVG format. | yes | yes | yes | no | 1052 | 854 |
| 14 | non_animal | Make a yellow sun over mountains as SVG only. | yes | no | yes | no | 1064 | 869 |
| 15 | non_animal | Create a purple rocket ship SVG illustration. | yes | no | yes | no | 954 | 814 |
| 16 | non_animal | Generate a desk lamp icon as SVG code only. | yes | yes | yes | yes | 658 | 816 |
| 17 | non_animal | Draw a colorful birthday cake as SVG format. | yes | no | yes | no | 846 | 993 |
| 18 | non_animal | Make a city skyline at night as SVG only. | yes | no | yes | no | 1201 | 907 |
| 19 | non_animal | Create a laptop computer SVG illustration. | yes | no | yes | no | 1173 | 930 |
| 20 | non_animal | Generate a beach umbrella and waves as SVG code only. | yes | no | yes | no | 891 | 940 |
The table below uses rendered PNG previews. If a generated SVG could not be rendered, the PNG shows a Render failed placeholder instead of a broken image icon.
| # | Category | Prompt | Base model | Trained LoRA |
|---|---|---|---|---|
| 1 | animal | Create a cute blue rabbit SVG illustration. Output SVG only. | <img src="./comparison-20/png/01_base.png" width="220"> | <img src="./comparison-20/png/01_trained.png" width="220"> |
| 2 | animal | Generate a playful orange cat as SVG code only. | <img src="./comparison-20/png/02_base.png" width="220"> | <img src="./comparison-20/png/02_trained.png" width="220"> |
| 3 | animal | Draw a green parrot vector illustration in SVG format. | <img src="./comparison-20/png/03_base.png" width="220"> | <img src="./comparison-20/png/03_trained.png" width="220"> |
| 4 | animal | Make a small brown dog with big eyes as SVG only. | <img src="./comparison-20/png/04_base.png" width="220"> | <img src="./comparison-20/png/04_trained.png" width="220"> |
| 5 | animal | Create a pink pig sitting happily as SVG code only. | <img src="./comparison-20/png/05_base.png" width="220"> | <img src="./comparison-20/png/05_trained.png" width="220"> |
| 6 | animal | Generate a yellow duck SVG illustration. Return only the SVG. | <img src="./comparison-20/png/06_base.png" width="220"> | <img src="./comparison-20/png/06_trained.png" width="220"> |
| 7 | animal | Draw a gray hamster with round ears in SVG format. | <img src="./comparison-20/png/07_base.png" width="220"> | <img src="./comparison-20/png/07_trained.png" width="220"> |
| 8 | animal | Make a black-and-white cow cartoon as SVG code only. | <img src="./comparison-20/png/08_base.png" width="220"> | <img src="./comparison-20/png/08_trained.png" width="220"> |
| 9 | animal | Create a red fox curled up as an SVG illustration. | <img src="./comparison-20/png/09_base.png" width="220"> | <img src="./comparison-20/png/09_trained.png" width="220"> |
| 10 | animal | Generate a purple fish with fins as SVG only. | <img src="./comparison-20/png/10_base.png" width="220"> | <img src="./comparison-20/png/10_trained.png" width="220"> |
| 11 | non_animal | Create a red sports car SVG illustration. Output SVG only. | <img src="./comparison-20/png/11_base.png" width="220"> | <img src="./comparison-20/png/11_trained.png" width="220"> |
| 12 | non_animal | Generate a blue coffee mug as SVG code only. | <img src="./comparison-20/png/12_base.png" width="220"> | <img src="./comparison-20/png/12_trained.png" width="220"> |
| 13 | non_animal | Draw a simple green house with roof in SVG format. | <img src="./comparison-20/png/13_base.png" width="220"> | <img src="./comparison-20/png/13_trained.png" width="220"> |
| 14 | non_animal | Make a yellow sun over mountains as SVG only. | <img src="./comparison-20/png/14_base.png" width="220"> | <img src="./comparison-20/png/14_trained.png" width="220"> |
| 15 | non_animal | Create a purple rocket ship SVG illustration. | <img src="./comparison-20/png/15_base.png" width="220"> | <img src="./comparison-20/png/15_trained.png" width="220"> |
| 16 | non_animal | Generate a desk lamp icon as SVG code only. | <img src="./comparison-20/png/16_base.png" width="220"> | <img src="./comparison-20/png/16_trained.png" width="220"> |
| 17 | non_animal | Draw a colorful birthday cake as SVG format. | <img src="./comparison-20/png/17_base.png" width="220"> | <img src="./comparison-20/png/17_trained.png" width="220"> |
| 18 | non_animal | Make a city skyline at night as SVG only. | <img src="./comparison-20/png/18_base.png" width="220"> | <img src="./comparison-20/png/18_trained.png" width="220"> |
| 19 | non_animal | Create a laptop computer SVG illustration. | <img src="./comparison-20/png/19_base.png" width="220"> | <img src="./comparison-20/png/19_trained.png" width="220"> |
| 20 | non_animal | Generate a beach umbrella and waves as SVG code only. | <img src="./comparison-20/png/20_base.png" width="220"> | <img src="./comparison-20/png/20_trained.png" width="220"> |
| # | Base has <svg | Base has </svg> | Trained has <svg | Trained has </svg> |
|---|---|---|---|---|
| 1 | yes | no | yes | no |
| 2 | yes | no | yes | no |
| 3 | yes | no | yes | no |
| 4 | yes | no | yes | no |
| 5 | yes | no | yes | no |
| 6 | yes | no | yes | no |
| 7 | yes | no | yes | no |
| 8 | yes | no | yes | no |
| 9 | yes | no | yes | no |
| 10 | yes | no | yes | no |
| 11 | yes | no | yes | no |
| 12 | yes | no | yes | no |
| 13 | yes | yes | yes | no |
| 14 | yes | no | yes | no |
| 15 | yes | no | yes | no |
| 16 | yes | yes | yes | yes |
| 17 | yes | no | yes | no |
| 18 | yes | no | yes | no |
| 19 | yes | no | yes | no |
| 20 | yes | no | yes | no |
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = 'unsloth/Qwen3.5-4B'
adapter = 'YOUR_USERNAME/qwen35-svg-animal-lora'
tokenizer = AutoTokenizer.from_pretrained(base_model, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(base_model, trust_remote_code=True, device_map='auto')
model = PeftModel.from_pretrained(model, adapter)