Spaces:
Running
Running
Download index.html from WeReCooking/DFlow2-WebGPU: direct link, hf CLI and curl.
- Browser
- Download file 3.83 kB
-
https://huggingface.co/spaces/WeReCooking/DFlow2-WebGPU/resolve/d0c692fa7635c27af91dbdd4305776614cd75818/index.html
- Command line
-
hf download hf://spaces/WeReCooking/DFlow2-WebGPU@d0c692fa7635c27af91dbdd4305776614cd75818/index.html
-
curl -L -o index.html https://huggingface.co/spaces/WeReCooking/DFlow2-WebGPU/resolve/d0c692fa7635c27af91dbdd4305776614cd75818/index.html
3.83 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>DFlow2 WebGPU</title> | |
| <meta name="description" content="dflow_2b with the 4-step eDMD + LADD LoRA, text to image on your own GPU with ONNX Runtime Web."> | |
| <link rel="icon" href="data:,"> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <main> | |
| <p id="line"><b><a href="https://huggingface.co/data-archetype/dflow_2b" target="_blank" rel="noopener">DFlow2 2B</a> · <a href="https://huggingface.co/lvladikov/DFlow2-Distill-4steps-eDMD-LADD-LoRA" target="_blank" rel="noopener">4 steps</a></b>, text to image on your own GPU, nothing leaves this tab | |
| <span class="sep">|</span> <span id="backend">checking WebGPU…</span> | |
| <span class="sep">|</span> <span id="speed">speed shown after the first image</span></p> | |
| <section id="input"> | |
| <label for="prompt" class="sr">Prompt</label> | |
| <textarea id="prompt" rows="7" spellcheck="false">A snow leopard walking along a rocky ridge in falling snow, telephoto wildlife photograph, natural light</textarea> | |
| <p class="hint">Describe subject, setting, light and medium; "quoted text" is spelled letter by letter. Trained at about 1 MP, so 512² is only a preview. | |
| Seeds match dflow: <a href="#" id="example">load the LoRA card example</a> (seed 4242, 1824×1024) and compare with | |
| <a href="https://huggingface.co/lvladikov/DFlow2-Distill-4steps-eDMD-LADD-LoRA/blob/main/assets/images/snowleopard.jpg" target="_blank" rel="noopener">the card image</a>.</p> | |
| </section> | |
| <section id="settings"> | |
| <label for="size">Size</label><select id="size"></select> | |
| <label for="quality">Weights</label><select id="quality"></select> | |
| <label for="seed">Seed</label> | |
| <span class="seedrow"><input id="seed" type="number" min="0" max="4294967295" value="0"> | |
| <label class="check"><input id="random" type="checkbox" checked> random</label></span> | |
| </section> | |
| <section id="run"> | |
| <button id="go" disabled>Checking WebGPU…</button> | |
| <div id="status" role="status" aria-live="polite"> | |
| <div id="bar"><i></i></div> | |
| <span id="msg"> </span> | |
| </div> | |
| </section> | |
| <section id="output"> | |
| <canvas id="canvas" width="512" height="512" aria-label="Generated image"></canvas> | |
| <a id="save" class="disabled" download="dflow2.png" href="#">Download image (.png)</a> | |
| </section> | |
| <details id="more"> | |
| <summary>Storage, limits and credits</summary> | |
| <p id="store">Nothing downloaded yet.</p> | |
| <button id="wipe" type="button">Delete downloaded model</button> | |
| <p>The model downloads once (about 2.7 GB with 8-bit weights, 1.7 GB with 4-bit) into this browser's storage, then works offline. | |
| It needs WebGPU (Chrome or Edge 121+, Android 12+, Safari 26) and roughly 3 GB of free GPU memory for 8-bit, 2 GB for 4-bit. | |
| On a phone, close other tabs first. If the tab reloads by itself, the GPU ran out of memory: pick a smaller size.</p> | |
| <p id="limits"></p> | |
| <p>Model: <a href="https://huggingface.co/data-archetype/dflow_2b" target="_blank" rel="noopener">dflow_2b</a> by Data Archetype, | |
| 4-step <a href="https://huggingface.co/lvladikov/DFlow2-Distill-4steps-eDMD-LADD-LoRA" target="_blank" rel="noopener">eDMD + LADD LoRA</a> by lvladikov, | |
| decoder <a href="https://huggingface.co/data-archetype/dinac3_96" target="_blank" rel="noopener">dinac3_96</a>, | |
| text encoder from Google's T5Gemma 2. ONNX conversion: <a id="repo" target="_blank" rel="noopener">model repo</a>. | |
| This project uses dflow_2b by Data Archetype. Non-commercial use only (MG-BY-NC-2.0); Gemma is provided under and subject to the Gemma Terms of Use found at gemma.ai/resources/terms.</p> | |
| </details> | |
| </main> | |
| <script type="module" src="app.js"></script> | |
| </body> | |
| </html> | |