Skip to content
C-Kernel-Engine docs Antshiv Open Source

C-KERNEL-ENGINE · GUIDE

Train on small SVG examples

Prepare the examples

An SVG example is a short text sequence that should parse and render as a drawing. Begin with simple shapes. Keep a separate set for checking results. From the checkout, initialize the example workspace:

Examplebash
bash version/v7/scripts/init_data_workspace_v7.sh --spec spec04 --dataset-type svg

Run the first stage

  1. Follow the dataset preparation steps with a single run directory. Prepare the ASCII SVG rows and run the tokenizer round-trip check before training.
  2. Run Stage A from that same guide with the prepared dataset. Keep the checkpoint and record the loss. Stage B resumes from the saved run with more complex examples.
  3. Generate several samples. Check that the output closes its SVG tags, parses and renders the requested shape. A lower loss alone won't tell you whether a drawing is usable.

Open the full SVG exercise