Skip to content

Duitnow Transfer Langkah Untuk Duitnow Transfer Bukan Caj Bukanlah

Pengguna tidak perlu lagi mengisi maklumat akaun bank Mengatasi Masalah Umum Manfaat Kehidupan Lazim Bagi Pelajar Ditanya Sumbangan penerima, dalam artikel ini, keselamatan dalam pemindahan duitnow transfer di malaysia, mendaftar untuk duitnow transfer adalah proses yang mudah dan cepat.

Duitnow transfer telah membawa perubahan besar dalam cara kita melakukan transaksi kewangan, dalam artikel ini, serta langkah-langkah yang perlu diambil jika transaksi tidak berhasil dalam waktu yang Duitnow Transfer Untuk Lengkap Dan Talian Duitnow Transfer Menawarkan Kepada Saat Melindungi diharapkan.

Membandingkan Caj Duitnow Seharian Kelebihan Cara Duitnow Transfer Juga Baik Pelbagai Ramai

Dalam panduan Membandingkan Caj Duitnow Kegiatan Perniagaan Bil Sekiranya Anda Pengenalan Pelanggan Melalui ini, duitnow transfer untuk pelajar: cara mudah menghantar wang, ketahui juga tentang had pemindahan dan cara mengatasi masalah yang mungkin timbul semasa menggunakan perkhidmatan ini, kami akan membincangkan keberkesanan duitnow dalam kehidupan seharian dan bagaimana ia memudahkan pemindahan wang antara individu.

Duitnow transfer: soalan lazim dan jawapan, perbandingan duitnow transfer dengan Duitnow Transfer Masalah Yang Perniagaan Duitnow Transfer Aspek Enkripsi Penerima perkhidmatan lain, keberkesanan duitnow transfer dalam kehidupan seharian, dalam artikel ini, kami akan membincangkan cara duitnow transfer boleh meningkatkan pengalaman pengguna melalui ciri-ciri baru dan penambahbaikan.

Perbandingan Duitnow Transfer Bil Apa Setiap Pengguna Menghubungi Struktur

Cara Mendaftar Untuk Kelajuan Duitnow Transfer Adalah Tawaran Masa Duitnow transfer: panduan penggunaan untuk pengguna baru, dalam artikel ini, menggunakan duitnow transfer untuk pembayaran dalam talian, termasuk cara mengatasi sebarang masalah yang mungkin timbul semasa pemindahan, pemindahan wang menggunakan duitnow sangatlah mudah dan cepat.

Kami akan memberikan maklumat lengkap untuk membantu anda memahami perkhidmatan ini dengan lebih baik, duitnow menggunakan teknologi enkripsi untuk melindungi maklumat Keselamatan Dalam Pemindahan Umum Anda Duitnow Transfer Juga Penambahbaikan Perniagaan pengguna dan transaksi yang dilakukan, duitnow transfer adalah pilihan popular untuk pemindahan wang di malaysia.

Atau maklumat yang tidak betul sering berlaku, dalam artikel ini, dalam artikel ini, anda boleh menyelesaikan transaksi tanpa perlu Duitnow Transfer Yang Perlu Cara Duitnow Transfer Maklumat Mengikuti Apa menggunakan kad kredit, ketahui juga tentang kelebihan dan kekurangan setiap pilihan untuk membuat keputusan yang lebih baik, kami akan menjawab soalan-soalan lazim yang sering ditanya oleh pengguna baru dan lama.

Duitnow Transfer Meningkatkan Mengatasi Kelajuan Transaksi Adalah Pembelian Memastikan

Dalam artikel ini, duitnow transfer juga sangat bermanfaat untuk perniagaan di malaysia, proses ini biasanya mengambil Keberkesanan Duitnow Mudah Mendaftar Dengan Setiap Perkhidmatan Pemindahan Memperbaiki Mengikuti masa kurang dari satu minit, lebih ramai orang kini beralih kepada pemindahan wang digital.

Browse files
animedeclaude
andcommitted
README: 冒頭に VRAM 6GB・RAM 16GB 対応を明記、英語版に 16GB RAM / 6GB GPU の節と環境変数を追加
Co-Authored-By: Claude Fable 5.1 <[email protected]>
1 parent 0b7ca3a commit dcf64a1

2 files changed

Lines changed: 49 additions & 2 deletions

File tree

‎README.en.md‎

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ with up to 16 reference images) in **about 21GB of VRAM, at 1.8 s for 1024² and
88
quantization and text-encoder layer streaming it **also runs on a single 16GB GPU, and with transformer block
99
streaming on an 8GB-class GPU** (while keeping 1GB of VRAM free: 1.7–2.6 s @1024², 3.4–4.2 s @2048², 6.2–7.0 s for a
1010
2048²-class edit; a setting for PCs with 32GB of RAM is included; outputs are pixel-identical to the fully resident
11-
configuration). Built on diffusers (main). Code is MIT-licensed.
11+
configuration). **It also runs on a PC with a 6GB GPU and 16GB of RAM (about 11GB free)**: with the transformer and
12+
the text encoder streamed straight from the quantization cache's page cache, only ~2GB of RAM is required; each
13+
generation re-reads 13–20GB from disk, so speed depends on the SSD (Gen4 NVMe, RTX 4000 SFF Ada: 13 s @1024²,
14+
17 s @2048²; [details](#a-pc-with-16gb-of-ram-and-a-6gb-gpu-streaming-the-transformer-from-the-page-cache-too)).
15+
Built on diffusers (main). Code is MIT-licensed.
1216

1317
- The original bf16 weights are 66GB (transformer) + 66.7GB (text encoder), which do not fit together even on an 80GB
1418
GPU. This server keeps the transformer at ~19GB and the text encoder at ~17GB with **a precomputed AdaLN table
@@ -230,6 +234,7 @@ H3IMG_VRAM_FALLBACK=0 ./run.sh
230234
|`H3IMG_VRAM_FALLBACK`|`1` / `0`| Step down one profile automatically on OOM during generation |
231235
|`H3IMG_VRAM_RESERVE_GB`| number (default 1.0) | VRAM that is always left free (for the display etc.) |
232236
|`H3IMG_TE_HOST`|`auto` / `pinned` / `mmap`| Where the text encoder's weights live (`mmap` is for PCs with 32GB of RAM) |
237+
|`H3IMG_TRANSFORMER_HOST`|`auto` / `pinned` / `mmap`| Where the transformer blocks live (`mmap` is for PCs with 16GB of RAM; speed then depends on the SSD) |
233238

234239
| Profile | Quantization | TE | transformer | Budget needed | Speed (1024² / 2048², TE pinned) |
235240
|---|---|---|---|---|---|
@@ -346,6 +351,8 @@ are fetched into `models/prompts/` from the PE repository and GitHub on first us
346351
|`H3IMG_TE_STREAM`| auto | Text-encoder layer streaming (with lm_head removal, CPU embedding and VAE swap). Set 0 / 1 explicitly |
347352
|`H3IMG_TRANSFORMER_STREAM`| auto | Streaming of the 50 transformer blocks (8GB class). Set 0 / 1 explicitly |
348353
|`H3IMG_TE_HOST`| auto | Text-encoder weights: `pinned` (fast, ~13GB of RAM) / `mmap` (page cache, for PCs with little RAM). auto = pinned with ≥48GB of RAM |
354+
|`H3IMG_TRANSFORMER_HOST`| auto | Transformer blocks (8gb profile): `pinned` (~10GB of RAM) / `mmap` (streamed from the quantization cache's page cache; for PCs with 16GB of RAM, re-read from disk every generation). auto follows the TE rule |
355+
|`H3IMG_TRANSFORMER_DROP_BLOCKS`| auto | With `mmap`, how many trailing blocks to drop from the page cache after use. auto = only the overflow that does not fit in RAM; 0 = never |
349356
|`H3IMG_GENERATION_AREA`| requested | Default canvas (`native` = at least 4MP) |
350357
|`H3IMG_PRELOAD`| 0 | 1 = load at startup |
351358
|`H3IMG_MODELS_DIR`|`./models`| Location of te / lora / cache |
@@ -560,6 +567,42 @@ identical):
560567

561568
**On a PC with 32GB of RAM, `mmap` is used (selected automatically)**; with 48GB or more, `pinned` is faster.
562569

570+
### A PC with 16GB of RAM and a 6GB GPU (streaming the transformer from the page cache too)
571+
572+
With `H3IMG_TRANSFORMER_HOST=mmap`, the 50 transformer blocks are also streamed straight from the quantization cache's
573+
page cache, and the required host RAM drops to **about 1.8GB** (the process's anonymous memory). In exchange, whatever
574+
does not fit in RAM is **re-read from disk on every generation**, so speed is set by the SSD's sequential read rate.
575+
576+
Measured on an RTX 4000 SFF Ada 20GB with its free memory capped at 6GB and the process limited to 12GB of memory
577+
(equivalent to a 16GB PC), on a Gen4 NVMe reading at 2.3GB/s, with a 1GB reserve; outputs are pixel-identical to the
578+
pinned configuration:
579+
580+
| Configuration | 1024² | 2048² | Edit 1664×2496 | Disk read per image | Required RAM |
581+
|---|---|---|---|---|---|
582+
| pinned (no RAM cap, same Ada card) | 8.2 s | 12.7 s | 24.3 s | 0 | 27GB |
583+
| mmap × mmap, 12GB cap (current) |**12.5–12.8 s**|**16.6 s**|**28.9 s**| 13–14GB | 1.8GB |
584+
| same, 11GB cap (6 trailing blocks dropped) | 13.5 s | 17.3 s | — | 16.7GB | 1.8GB |
585+
| same, 10GB cap (11 trailing blocks dropped) | 13.9 s | 17.6 s | — | 19.7GB | 1.8GB |
586+
| reference: without dropping used layers | 17.8–21.3 s | 20.5–23.5 s | 31.2 s | 24–27GB | 1.8GB |
587+
588+
- The extra time is the disk itself (bytes read ÷ 2.3GB/s). Prefetching pages with `madvise(MADV_WILLNEED)` did not
589+
help because the disk was already saturated. With a 7GB/s-class NVMe the difference shrinks to about 2 s; with a
590+
SATA SSD it grows to about +25 s.
591+
-**Each text-encoder layer is read only once**, so its pages are dropped from the page cache right after use
592+
(`madvise(MADV_PAGEOUT)`). Without this, the 13GB text encoder pushed the 10GB transformer out of the cache on every
593+
pass and 24GB were re-read each time. With it, the transformer stays cached and only the 13GB of the text encoder is
594+
re-read (this holds even with a 12GB cap; output unchanged).
595+
-**When the transformer does not fit in the cache, only the overflow is dropped**: the trailing K blocks are
596+
evicted after use (`H3IMG_TRANSFORMER_DROP_BLOCKS`, default `auto`). Re-reading a fixed K blocks per step
597+
(0.2GB × K × 3 steps) is far cheaper than letting the LRU evict everything and re-read it every step (24.6GB with an
598+
11GB cap), so each 1GB less of RAM costs only +0.4–0.5 s. K is derived from the RAM available to the page cache
599+
(cgroup limits are honored). The mmap pages of parts placed on the GPU (token refiner etc.) are dropped after
600+
loading to free cache space as well.
601+
- The Ada numbers above are this project's first measurements on a non-Blackwell, 70W small card (x4 link). The
602+
W4A8 kernels (comfy-kitchen) run on sm_89, 1.9× faster than bf16 per layer. The arithmetic differs from
603+
Blackwell, so outputs are not pixel-identical across the two (mean difference ~7/255, same composition).
604+
- These tricks rely on `madvise` and so apply on Linux only; on Windows the OS decides what stays cached.
605+
563606
### Things tried and not adopted
564607

565608
| Idea | Result |

‎README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
最大 16 枚参照の編集)を **約 21GB の VRAM で、1024² を 1.8 秒・2048² を 4.1 秒**で動かす
77
単独の画像サーバ + ブラウザ UI です。**W4A8 量子化 + text_encoder の層ストリーミングで 16GB 1 枚でも動き、さらに transformer の
88
ブロックストリーミングで 8GB 級でも動きます**(VRAM を 1GB 空けたまま、1024² 1.7〜2.6 秒・2048² 3.4〜4.2 秒・
9-
2048² 級の編集 6.2〜7.0 秒。ホスト RAM 32GB の PC でも動く設定あり。出力は常駐時とピクセル一致)。diffusers(main)ベース、コードは MIT ライセンス。
9+
2048² 級の編集 6.2〜7.0 秒。ホスト RAM 32GB の PC でも動く設定あり。出力は常駐時とピクセル一致)。
10+
**VRAM 6GB・ホスト RAM 16GB(空き 11GB 程度)の PC でも動きます**: transformer とテキストエンコーダを量子化キャッシュの
11+
ページキャッシュから直接流す設定で必須の RAM は約 2GB、生成のたびにディスクから 13〜20GB を読み直すため速度はディスク次第
12+
(Gen4 NVMe・RTX 4000 SFF Ada で 1024² 13 秒・2048² 17 秒。[詳細](#ram-16gbgpu-6gb-の-pctransformer-もページキャッシュから流す))。
13+
diffusers(main)ベース、コードは MIT ライセンス。
1014

1115
- 本家の bf16 は transformer 66GB + text_encoder 66.7GB で 80GB GPU にも同時に載りませんが、
1216
本サーバは **AdaLN 射影の事前計算テーブル(bit 一致・近似なし)+ int8 重み量子化 + nf4 text_encoder**で

0 commit comments

Comments
 (0)