NVFP4 vs IQ4

#8
by KottCh - opened

thanks for releasing NVFP4 version. here I made 2 animated SVG with same parameters, so you can see diff.
PARMS: --jinja --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --seed 42 --ctx-size 32768
PROMPT: Generate an SMIL animated SVG of a pelican riding a bicycle
NVFP4:
n4svg
IQ4:
iqsvg
you can save below sources as SVG files and drop on browser to play.
NVFP4 source:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 520" width="800" height="520">
  <title>SMIL animated SVG: a pelican riding a bicycle</title>

  <defs>
    <linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#6fc2ff"/>
      <stop offset="0.62" stop-color="#cdeaff"/>
      <stop offset="1" stop-color="#fff6c8"/>
    </linearGradient>

    <radialGradient id="sun" cx="0.5" cy="0.5" r="0.55">
      <stop offset="0" stop-color="#fff7a8"/>
      <stop offset="1" stop-color="#ffd34d"/>
    </radialGradient>
  </defs>

  <!-- Sky -->
  <rect width="800" height="520" fill="url(#sky)"/>

  <!-- Sun -->
  <g transform="translate(118,92)">
    <circle r="40" fill="url(#sun)"/>
    <g stroke="#ffcf3d" stroke-width="6" stroke-linecap="round">
      <path d="M0 -54 L0 -70"/><path d="M38 -38 L48 -48"/><path d="M54 0 L70 0"/>
      <path d="M38 38 L48 48"/><path d="M0 54 L0 70"/><path d="M-38 38 L-48 48"/>
      <path d="M-54 0 L-70 0"/><path d="M-38 -38 L-48 -48"/>
    </g>
  </g>

  <!-- Drifting clouds -->
  <g>
    <animateTransform attributeName="transform" type="translate" from="-240 0" to="900 0" dur="36s" repeatCount="indefinite"/>
    <g transform="translate(150,86)" opacity="0.95">
      <ellipse cx="0" cy="0" rx="64" ry="22" fill="#ffffff"/>
      <ellipse cx="48" cy="-12" rx="46" ry="27" fill="#ffffff"/>
      <ellipse cx="-45" cy="-8" rx="42" ry="22" fill="#ffffff"/>
    </g>
  </g>
  <g>
    <animateTransform attributeName="transform" type="translate" from="-260 0" to="920 0" dur="48s" repeatCount="indefinite"/>
    <g transform="translate(500,145)" opacity="0.82">
      <ellipse cx="0" cy="0" rx="52" ry="18" fill="#ffffff"/>
      <ellipse cx="38" cy="-9" rx="36" ry="21" fill="#ffffff"/>
      <ellipse cx="-36" cy="-6" rx="32" ry="17" fill="#ffffff"/>
    </g>
  </g>

  <!-- Ground and road -->
  <rect y="432" width="800" height="88" fill="#65b84d"/>
  <path d="M0 432 C170 388 320 444 430 410 C540 378 660 438 800 414 L800 432 Z" fill="#83d05f"/>
  <rect y="452" width="800" height="68" fill="#494e59"/>
  <line x1="0" y1="486" x2="800" y2="486" stroke="#ffd75a" stroke-width="7" stroke-linecap="round" stroke-dasharray="36 27">
    <animate attributeName="stroke-dashoffset" from="0" to="-63" dur="0.55s" repeatCount="indefinite"/>
  </line>

  <!-- Speed lines -->
  <g opacity="0.55">
    <animateTransform attributeName="transform" type="translate" values="140 0; -170 0" dur="1.05s" repeatCount="indefinite"/>
    <animate attributeName="opacity" values="0;0.75;0" dur="1.05s" repeatCount="indefinite"/>
    <path d="M55 274 h92 M28 314 h112 M82 352 h72" stroke="#ffffff" stroke-width="8" stroke-linecap="round" fill="none"/>
  </g>

  <!-- Bike shadow -->
  <ellipse cx="405" cy="458" rx="205" ry="18" fill="#24313d" opacity="0.20"/>

  <!-- Wheels -->
  <g transform="translate(250,388)">
    <g>
      <animateTransform attributeName="transform" type="rotate" from="0" to="360" dur="0.85s" repeatCount="indefinite"/>
      <circle r="66" fill="none" stroke="#23262b" stroke-width="13"/>
      <circle r="50" fill="none" stroke="#d8dee3" stroke-width="6"/>
      <path d="M0 -50 L0 50 M-43 -25 L43 25 M-43 25 L43 -25 M-50 0 L50 0" stroke="#3a424d" stroke-width="4" stroke-linecap="round"/>
      <circle r="9" fill="#f4b400" stroke="#23262b" stroke-width="3"/>
    </g>
  </g>

  <g transform="translate(568,388)">
    <g>
      <animateTransform attributeName="transform" type="rotate" from="0" to="360" dur="0.85s" repeatCount="indefinite"/>
      <circle r="66" fill="none" stroke="#23262b" stroke-width="13"/>
      <circle r="50" fill="none" stroke="#d8dee3" stroke-width="6"/>
      <path d="M0 -50 L0 50 M-43 -25 L43 25 M-43 25 L43 -25 M-50 0 L50 0" stroke="#3a424d" stroke-width="4" stroke-linecap="round"/>
      <circle r="9" fill="#f4b400" stroke="#23262b" stroke-width="3"/>
    </g>
  </g>

  <!-- Frame -->
  <g stroke-linecap="round" stroke-linejoin="round" fill="none">
    <path d="M250 388 L408 366" stroke="#2f3237" stroke-width="8"/>
    <path d="M250 388 L352 232" stroke="#2f3237" stroke-width="8"/>
    <path d="M408 366 L532 220" stroke="#2188d4" stroke-width="13"/>
    <path d="M352 232 L530 208" stroke="#2188d4" stroke-width="13"/>
    <path d="M352 232 L408 366" stroke="#2b9dd8" stroke-width="12"/>
    <path d="M532 220 L568 388" stroke="#8aa4b2" stroke-width="11"/>
    <path d="M528 202 L536 229" stroke="#30343a" stroke-width="18"/>
    <path d="M528 205 C545 178 560 175 575 178" stroke="#2b2f35" stroke-width="11"/>
  </g>

  <rect x="568" y="168" width="36" height="18" rx="9" transform="rotate(4 586 177)" fill="#454b55"/>

  <g transform="translate(350,221) rotate(-4)">
    <rect x="-36" y="-12" width="74" height="19" rx="10" fill="#30343a"/>
    <rect x="-36" y="6" width="74" height="8" rx="4" fill="#1d2024"/>
  </g>

  <!-- Crankset, pedals and feet -->
  <g transform="translate(408,366)">
    <g>
      <animateTransform attributeName="transform" type="rotate" from="0" to="360" dur="0.85s" repeatCount="indefinite"/>
      <circle r="26" fill="none" stroke="#111827" stroke-width="8" stroke-dasharray="6 5"/>
      <line x1="0" y1="0" x2="52" y2="0" stroke="#2a2d31" stroke-width="9"/>
      <line x1="0" y1="0" x2="-52" y2="0" stroke="#2a2d31" stroke-width="9"/>

      <g transform="translate(52,0)">
        <rect x="-5" y="-11" width="39" height="15" rx="6" fill="#f97316" stroke="#1f2937" stroke-width="3"/>
        <ellipse cx="15" cy="-16" rx="17" ry="9" fill="#2b2f35" stroke="#111111" stroke-width="2"/>
      </g>

      <g transform="translate(-52,0)">
        <rect x="-34" y="-11" width="39" height="15" rx="6" fill="#f97316" stroke="#1f2937" stroke-width="3"/>
        <ellipse cx="-15" cy="-16" rx="17" ry="9" fill="#2b2f35" stroke="#111111" stroke-width="2"/>
      </g>
    </g>
  </g>

  <!-- Pelican -->
  <g>
    <g>
      <animateTransform attributeName="transform" type="translate" values="0 0; 0 -14; 0 0" keyTimes="0;0.5;1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0 0.6 1; 0.4 0 0.6 1"/>

      <!-- Tail -->
      <path d="M305 188 C255 165 224 174 204 146 C252 153 286 160 325 163 Z" fill="#ece6d4" stroke="#cfc5ae" stroke-width="4" stroke-linejoin="round"/>

      <!-- Body -->
      <ellipse cx="392" cy="200" rx="105" ry="60" transform="rotate(-7 392 200)" fill="#fbf7ea" stroke="#d9cfbb" stroke-width="4"/>
      <path d="M302 216 C354 259 452 257 512 199" fill="none" stroke="#e4d7bd" stroke-width="5" stroke-linecap="round"/>

      <!-- Flap wing -->
      <g transform="translate(352,184)">
        <g>
          <animateTransform attributeName="transform" type="rotate" values="-16;24;-16" dur="1.3s" repeatCount="indefinite"/>
          <path d="M2 0 C-45 -17 -82 -2 -108 37 C-64 39 -24 55 9 45 C25 35 20 12 2 0 Z" fill="#cfd8dc" stroke="#a9bac0" stroke-width="4" stroke-linejoin="round"/>
          <path d="M-84 24 C-46 32 -16 40 2 38 M-58 31 C-28 38 -2 42 7 39" fill="none" stroke="#93a8ae" stroke-width="3" stroke-linecap="round"/>
        </g>
      </g>

      <!-- Neck -->
      <path d="M472 176 C512 154 518 133 550 130" fill="none" stroke="#fbf7ea" stroke-width="34" stroke-linecap="round"/>
      <path d="M472 176 C512 154 518 133 550 130" fill="none" stroke="#eadfc8" stroke-width="15" stroke-linecap="round"/>

      <!-- Throat pouch, animated -->
      <g transform="translate(558,146)">
        <g>
          <animateTransform attributeName="transform" type="rotate" values="0;8;0" dur="2.3s" repeatCount="indefinite"/>
          <path d="M0 0 C54 37 112 33 146 1 C110 23 53 22 0 0 Z" fill="#ff9d42" stroke="#e27228" stroke-width="4" stroke-linejoin="round"/>
        </g>
      </g>

      <!-- Beak -->
      <path d="M562 119 C626 112 673 126 704 141 C680 154 624 157 559 148 C547 138 548 129 562 119 Z" fill="#ffd35c" stroke="#e09524" stroke-width="4" stroke-linejoin="round"/>
      <path d="M618 130 C651 134 683 139 703 143" fill="none" stroke="#b94a16" stroke-width="3" stroke-linecap="round"/>

      <!-- Head -->
      <ellipse cx="548" cy="128" rx="35" ry="28" fill="#fbf7ea" stroke="#d9cfbb" stroke-width="4"/>
      <circle cx="560" cy="120" r="7" fill="#1e2329"/>
      <circle cx="562" cy="118" r="2.2" fill="#ffffff"/>

      <!-- Legs -->
      <path d="M364 238 C355 277 382 319 403 352" fill="none" stroke="#f0a08c" stroke-width="15" stroke-linecap="round"/>
      <path d="M425 238 C432 275 428 317 421 347" fill="none" stroke="#dda08b" stroke-width="15" stroke-linecap="round"/>

    </g>
  </g>
</svg>

IQ4 source:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600" width="800" height="600" role="img" aria-label="Animated SMIL SVG of a pelican riding a bicycle">
  <defs>
    <linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#38bdf8"/>
      <stop offset="0.65" stop-color="#bae6fd"/>
      <stop offset="1" stop-color="#e0f2fe"/>
    </linearGradient>
    <radialGradient id="sun" cx="0.5" cy="0.5" r="0.5">
      <stop offset="0" stop-color="#fef08a"/>
      <stop offset="1" stop-color="#facc15"/>
    </radialGradient>
    <linearGradient id="metal" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#f8fafc"/>
      <stop offset="1" stop-color="#94a3b8"/>
    </linearGradient>
  </defs>

  <rect width="800" height="600" fill="url(#sky)"/>

  <!-- Rotating sun -->
  <g transform="translate(685 92)">
    <g>
      <animateTransform attributeName="transform" type="rotate" values="0;360" dur="28s" repeatCount="indefinite"/>
      <g stroke="#fde047" stroke-width="7" stroke-linecap="round" opacity="0.9">
        <line x1="0" y1="-42" x2="0" y2="-66"/>
        <line x1="30" y1="-30" x2="47" y2="-47"/>
        <line x1="42" y1="0" x2="66" y2="0"/>
        <line x1="30" y1="30" x2="47" y2="47"/>
        <line x1="0" y1="42" x2="0" y2="66"/>
        <line x1="-30" y1="30" x2="-47" y2="47"/>
        <line x1="-42" y1="0" x2="-66" y2="0"/>
        <line x1="-30" y1="-30" x2="-47" y2="-47"/>
      </g>
      <circle r="38" fill="url(#sun)" stroke="#eab308" stroke-width="4"/>
    </g>
  </g>

  <!-- Drifting clouds -->
  <g opacity="0.92">
    <animateTransform attributeName="transform" type="translate" values="-230 0; 880 0" dur="26s" repeatCount="indefinite"/>
    <g transform="translate(95 108)" fill="#ffffff">
      <ellipse cx="0" cy="0" rx="42" ry="22"/>
      <ellipse cx="38" cy="-10" rx="36" ry="24"/>
      <ellipse cx="76" cy="3" rx="40" ry="20"/>
    </g>
    <g transform="translate(470 88)" fill="#ffffff">
      <ellipse cx="0" cy="0" rx="34" ry="17"/>
      <ellipse cx="32" cy="-8" rx="31" ry="20"/>
      <ellipse cx="66" cy="4" rx="34" ry="17"/>
    </g>
  </g>

  <g opacity="0.82">
    <animateTransform attributeName="transform" type="translate" values="-300 8; 900 8" dur="34s" repeatCount="indefinite"/>
    <g transform="translate(320 155)" fill="#f8fafc">
      <ellipse cx="0" cy="0" rx="28" ry="14"/>
      <ellipse cx="27" cy="-7" rx="25" ry="17"/>
      <ellipse cx="54" cy="2" rx="29" ry="14"/>
    </g>
  </g>

  <!-- Hills and ground -->
  <path d="M0 430 C130 380 230 385 355 424 C470 458 610 392 800 432 L800 600 L0 600 Z" fill="#4d7c0f" opacity="0.55"/>
  <rect y="468" width="800" height="132" fill="#334155"/>
  <rect y="452" width="800" height="22" fill="#84cc16"/>

  <!-- Moving road dashes; spacing matches the reset so it loops seamlessly -->
  <g fill="#fef08a">
    <animateTransform attributeName="transform" type="translate" values="0 0; -160 0" dur="0.55s" repeatCount="indefinite"/>
    <rect x="0" y="506" width="86" height="11" rx="6"/>
    <rect x="160" y="506" width="86" height="11" rx="6"/>
    <rect x="320" y="506" width="86" height="11" rx="6"/>
    <rect x="480" y="506" width="86" height="11" rx="6"/>
    <rect x="640" y="506" width="86" height="11" rx="6"/>
    <rect x="800" y="506" width="86" height="11" rx="6"/>
  </g>

  <!-- Bike shadow -->
  <ellipse cx="405" cy="508" rx="176" ry="16" fill="#0f172a" opacity="0.28"/>

  <!-- Wheels -->
  <g transform="translate(278 435)">
    <circle r="66" fill="#0f172a" opacity="0.2"/>
    <g>
      <animateTransform attributeName="transform" type="rotate" values="0;360" dur="0.9s" repeatCount="indefinite"/>
      <circle r="64" fill="none" stroke="#111827" stroke-width="13"/>
      <circle r="52" fill="#e2e8f0" opacity="0.16" stroke="#cbd5e1" stroke-width="4"/>
      <g stroke="#475569" stroke-width="4" stroke-linecap="round">
        <line x1="0" y1="0" x2="47" y2="0"/>
        <line x1="0" y1="0" x2="33" y2="33"/>
        <line x1="0" y1="0" x2="0" y2="47"/>
        <line x1="0" y1="0" x2="-33" y2="33"/>
        <line x1="0" y1="0" x2="-47" y2="0"/>
        <line x1="0" y1="0" x2="-33" y2="-33"/>
        <line x1="0" y1="0" x2="0" y2="-47"/>
        <line x1="0" y1="0" x2="33" y2="-33"/>
      </g>
    </g>
    <circle r="9" fill="#f8fafc" stroke="#111827" stroke-width="5"/>
  </g>

  <g transform="translate(534 435)">
    <circle r="66" fill="#0f172a" opacity="0.2"/>
    <g>
      <animateTransform attributeName="transform" type="rotate" values="0;360" dur="0.9s" repeatCount="indefinite"/>
      <circle r="64" fill="none" stroke="#111827" stroke-width="13"/>
      <circle r="52" fill="#e2e8f0" opacity="0.16" stroke="#cbd5e1" stroke-width="4"/>
      <g stroke="#475569" stroke-width="4" stroke-linecap="round">
        <line x1="0" y1="0" x2="47" y2="0"/>
        <line x1="0" y1="0" x2="33" y2="33"/>
        <line x1="0" y1="0" x2="0" y2="47"/>
        <line x1="0" y1="0" x2="-33" y2="33"/>
        <line x1="0" y1="0" x2="-47" y2="0"/>
        <line x1="0" y1="0" x2="-33" y2="-33"/>
        <line x1="0" y1="0" x2="0" y2="-47"/>
        <line x1="0" y1="0" x2="33" y2="-33"/>
      </g>
    </g>
    <circle r="9" fill="#f8fafc" stroke="#111827" stroke-width="5"/>
  </g>

  <!-- Bike frame -->
  <g fill="none" stroke-linecap="round" stroke-linejoin="round">
    <path d="M278 435 L400 455 L350 312" stroke="#dc2626" stroke-width="12"/>
    <path d="M400 455 L500 300" stroke="#ef4444" stroke-width="12"/>
    <path d="M350 312 L500 300" stroke="#b91c1c" stroke-width="11"/>
    <path d="M500 300 L534 435" stroke="#991b1b" stroke-width="11"/>
    <path d="M278 435 L350 312" stroke="#f97316" stroke-width="7"/>
    <path d="M500 300 L525 244" stroke="#111827" stroke-width="10"/>
    <path d="M506 244 L558 250" stroke="#111827" stroke-width="10"/>
    <path d="M525 244 L535 258" stroke="#111827" stroke-width="8"/>
    <path d="M341 302 L370 306" stroke="#7c2d12" stroke-width="13"/>
    <path d="M350 312 L350 330" stroke="#475569" stroke-width="9"/>
  </g>

  <!-- Spinning crank / chainring -->
  <g transform="translate(400 455)">
    <g>
      <animateTransform attributeName="transform" type="rotate" values="0;360" dur="0.8s" repeatCount="indefinite"/>
      <circle r="25" fill="#f8fafc" stroke="#111827" stroke-width="7"/>
      <circle r="9" fill="#111827"/>
      <line x1="0" y1="0" x2="0" y2="48" stroke="#111827" stroke-width="8" stroke-linecap="round"/>
      <line x1="0" y1="0" x2="0" y2="-48" stroke="#111827" stroke-width="8" stroke-linecap="round"/>
      <rect x="-18" y="45" width="36" height="10" rx="4" fill="#111827"/>
      <rect x="-18" y="-55" width="36" height="10" rx="4" fill="#111827"/>
    </g>
  </g>

  <!-- Pelican rider -->
  <g>
    <animateTransform attributeName="transform" type="translate" values="0 0; 0 -11; 0 0" keyTimes="0;0.5;1" dur="1.5s" repeatCount="indefinite"/>
      <g>
        <!-- Legs: one swings forward, one backward -->
        <g transform="translate(382 318)">
          <animateTransform attributeName="transform" type="rotate" values="32;-28;32" keyTimes="0;0.5;1" dur="0.8s" repeatCount="indefinite"/>
          <path d="M0 0 L32 42 L14 102" fill="none" stroke="#f59e0b" stroke-width="13" stroke-linecap="round"/>
          <ellipse cx="12" cy="111" rx="18" ry="9" fill="#0f172a"/>
        </g>
        <g transform="translate(420 318)">
          <animateTransform attributeName="transform" type="rotate" values="-28;32;-28" keyTimes="0;0.5;1" dur="0.8s" repeatCount="indefinite"/>
          <path d="M0 0 L-27 44 L4 103" fill="none" stroke="#fb923c" stroke-width="13" stroke-linecap="round"/>
          <ellipse cx="5" cy="112" rx="18" ry="9" fill="#0f172a"/>
        </g>

        <!-- Body -->
        <ellipse cx="394" cy="255" rx="78" ry="46" fill="#f8fafc" stroke="#64748b" stroke-width="5"/>
        <path d="M340 246 C337 184 403 162 449 176 C405 184 390 226 398 278 C371 282 350 271 340 246 Z" fill="#f8fafc" stroke="#64748b" stroke-width="4"/>

        <!-- Flapping wing -->
        <g transform="translate(365 245)">
          <g>
            <animateTransform attributeName="transform" type="rotate" values="-24;38;-24" keyTimes="0;0.5;1" dur="1.35s" repeatCount="indefinite"/>
            <path d="M0 0 C-45 -18 -92 -12 -119 18 C-83 37 -48 43 -9 34 C12 25 18 11 0 0 Z" fill="#cbd5e1" stroke="#64748b" stroke-width="5" stroke-linejoin="round"/>
            <path d="M-26 15 C-70 18 -86 25 -103 38" fill="none" stroke="#64748b" stroke-width="4" stroke-linecap="round"/>
            <path d="M-8 24 C-45 30 -64 38 -82 50" fill="none" stroke="#64748b" stroke-width="4" stroke-linecap="round"/>
          </g>
        </g>

        <!-- Head and beak -->
        <g transform="translate(462 160)">
          <g>
            <animateTransform attributeName="transform" type="rotate" values="0;7;0" keyTimes="0;0.5;1" dur="2.1s" repeatCount="indefinite"/>
            <circle cx="6" cy="0" r="28" fill="#f8fafc" stroke="#64748b" stroke-width="5"/>
            <circle cx="24" cy="-8" r="4.5" fill="#111827"/>
            <circle cx="25.5" cy="-9.5" r="1.5" fill="#ffffff"/>
            <path d="M24 -14 C38 -24 54 -20 65 -7 C52 -5 39 -3 27 1 Z" fill="#fb7185" stroke="#be123c" stroke-width="3" stroke-linejoin="round"/>
            <path d="M20 -4 L102 7 C80 18 50 22 23 15 Z" fill="#fb923c" stroke="#c2410c" stroke-width="4" stroke-linejoin="round"/>
            <path d="M25 15 C52 58 91 50 109 20 C82 33 47 31 24 15 Z" fill="#fdba74" stroke="#c2410c" stroke-width="4" stroke-linejoin="round"/>
            <path d="M82 21 L107 8" stroke="#7c2d12" stroke-width="4" stroke-linecap="round"/>
          </g>
        </g>
      </g>
  </g>

  <!-- Motion speed lines -->
  <g stroke="#0f172a" stroke-width="5" stroke-linecap="round" opacity="0.42">
    <animateTransform attributeName="transform" type="translate" values="0 0; -34 0; 0 0" dur="0.7s" repeatCount="indefinite"/>
    <line x1="82" y1="392" x2="170" y2="392"/>
    <line x1="110" y1="430" x2="205" y2="430"/>
    <line x1="52" y1="462" x2="142" y2="462"/>
  </g>
</svg>

Sign up or log in to comment