AIFeed

A 0.5B LLM Photoshop on Mac (150token/s)

Original text(via HN AI)

Unlimited-SVG for Apple Silicon

Turn an image into an editable SVG on your Mac. Run BF16, Q8 or mixed Q4 weights on Metal through the browser workbench, CLI or local HTTP service.

On a 16 GB Apple M5, all three weights decoded fastest on the toy rocket in the benchmarks below. BF16 110.53 tok/s · Q8 141.87 tok/s · mixed Q4 155.45 tok/s.

Quick start · Workbench · Benchmarks · CLI · Credits

A Riviera poster drawn layer by layer, then edited into a moonlit harbor with four white sails
A Riviera poster drawn layer by layer, then edited into a moonlit harbor with four white sails

The opening replays the Q8 drawing in SVG layer order. The rest shows the editor turning the sun into a crescent, lighting the windows and reshaping the sails. Full edit recording (MP4) · Original PNG · Daylight SVG · Moonlit SVG

Run on your Mac

  • Download the ZIP, unzip it and double-click Run.command. From Terminal, run bash Run.command in the project folder.
  • Choose BF16 (6.68 GB), Q8 (3.57 GB), mixed Q4 (2.72 GB) or All versions. The launcher downloads and verifies the weights. After installation, inference works offline.
  • Open the local workbench, drop in an image and click Generate SVG. Keep the terminal open. When the queue is empty, you can switch weights in the workbench. Ctrl-C in the service terminal releases the model.

Inside the workbench

Full workbench with the input and generated camera, job queue and performance dashboards
Full workbench with the input and generated camera, job queue and performance dashboards

Choose Riviera regatta to edit the daytime drawing or Moonlit regatta · edited to start with the night scene. Click a sail to select its outline. Drag to move it, use Scale / stretch, Rotate or Skew to change its shape, or type Recolor main-sail to ivory. Each gesture updates the text command below the canvas. Undo steps back one edit.

Model and performance

I ran these conversions on a 16 GB Apple M5 with the weights loaded and greedy decoding. Each thumbnail opens the original PNG or generated SVG. tok/s measures decoding after the first token, TTFT includes image encoding and prompt processing, and TPOT is the average time per subsequent token.

InputBF16Q8Mixed Q4
Retro camera65.29 tok/s · 7,977 tokens TTFT 6.02 s · TPOT 15.32 ms97.07 tok/s · 7,467 tokens TTFT 2.49 s · TPOT 10.30 ms83.75 tok/s · 19,613 tokens TTFT 2.92 s · TPOT 11.94 ms
Lighthouse77.40 tok/s · 5,106 tokens TTFT 29.35 s · TPOT 12.92 ms102.27 tok/s · 4,423 tokens TTFT 5.66 s · TPOT 9.78 ms70.03 tok/s · 19,542 tokens TTFT 1.99 s · TPOT 14.28 ms
Toy rocket110.53 tok/s · 1,976 tokens TTFT 8.78 s · TPOT 9.05 ms141.87 tok/s · 2,006 tokens TTFT 2.43 s · TPOT 7.05 ms155.45 tok/s · 2,069 tokens TTFT 2.29 s · TPOT 6.43 ms
Frog in a mug109.09 tok/s · 1,446 tokens TTFT 25.04 s · TPOT 9.17 ms115.96 tok/s · 1,881 tokens TTFT 2.83 s · TPOT 8.62 ms139.17 tok/s · 1,353 tokens TTFT 2.06 s · TPOT 7.19 ms
Validation accuracy104.27 tok/s · 983 tokens TTFT 18.91 s · TPOT 9.59 ms140.99 tok/s · 916 tokens TTFT 3.33 s · TPOT 7.09 ms147.00 tok/s · 871 tokens TTFT 2.80 s · TPOT 6.80 ms
Retro camera input
Retro camera input
Retro camera drawn with BF16
Retro camera drawn with BF16
Retro camera drawn with Q8
Retro camera drawn with Q8
Retro camera drawn with Q4
Retro camera drawn with Q4
Lighthouse input
Lighthouse input
Lighthouse drawn with BF16
Lighthouse drawn with BF16
Lighthouse drawn with Q8
Lighthouse drawn with Q8
Lighthouse drawn with Q4
Lighthouse drawn with Q4
Toy rocket input
Toy rocket input
Toy rocket drawn with BF16
Toy rocket drawn with BF16
Toy rocket drawn with Q8
Toy rocket drawn with Q8
Toy rocket drawn with Q4
Toy rocket drawn with Q4
Frog in a mug input
Frog in a mug input
Frog in a mug drawn with BF16
Frog in a mug drawn with BF16
Frog in a mug drawn with Q8
Frog in a mug drawn with Q8
Frog in a mug drawn with Q4
Frog in a mug drawn with Q4
Validation accuracy input
Validation accuracy input
Validation accuracy drawn with BF16
Validation accuracy drawn with BF16
Validation accuracy drawn with Q8
Validation accuracy drawn with Q8
Validation accuracy drawn with Q4
Validation accuracy drawn with Q4

The Q8 rocket and the quantized frog and chart results are medians of three runs each. The other cells report individual runs. Smaller weights can change the drawing as well as its speed. Mixed Q4 repeated lens outlines on the camera. In the workbench you can follow paths as they arrive, adjust sampling, cancel a queued or running image, expand the CPU, GPU, memory and token-rate charts, and export the drawing order as a GIF.

Command line

Run these in the project folder. With the service running, use a second terminal for conversions.


        bash Run.command install q8
bash Run.command serve --weights q8
bash Run.command convert examples/toy-rocket.png rocket.svg --weights q8
      

Use models to list installed weights and switch bf16 to change the active model. The CLI reuses the service and its single-image queue. With the service stopped, a standalone conversion releases its worker after saving the SVG.

Credits and license

The model is Baidu Unlimited-SVG. The Mac runtime uses unlimited-svg-mlx and Apple MLX. The streaming preview and GIF exporter are adapted from the upstream demo. See the MIT license and third-party notices.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗