Clarify H20 resource estimates and CUDA inference examples
Browse files31 unmodified lines3233343536373830 unmodified lines697071727374758 unmodified lines848586878889909192939431 unmodified lines| Representation | RGB pixels mapped directly to patch tokens || Architecture | A-MoT and A-MoE || Conditioning | Text, reference images, and earlier outputs || Weight format | BF16 safetensors; approximately 114.5 GiB || Demonstrated visual text | Chinese and English |A-MoT connects understanding and generation branches through joint attention, with dedicated image and timestep residual inputs for generation. A-MoE combines always-active shared computation with token-dependent routed experts. Inference requires neither a separate pretrained vision encoder nor a latent autoencoder.30 unmodified linesfrom wegen2 import WeGen2Pipelinepipe = WeGen2Pipeline.from_pretrained("./weights/WeGen2", devices="mlu:0,mlu:1")image = pipe.generate("A luminous underwater opera house, intricate coral architecture.",8 unmodified linesedited.save("opera-stage.png")```For multiple references, pass an ordered list in `images`. For continuing creation, use `session = pipe.session()` and call `session.generate(...)` for each turn. See the [inference guide](https://github.com/zhuangshaobin/WeGen2#multi-turn-creation) for CLI examples and sequence requests.## RuntimeThe full checkpoint has been tested in BF16 on two MLU590 80 GiB cards with PyTorch 2.10.0 and torch_mlu 1.31.3. Generation, editing, multiple references, multi-turn editing, and 1024×1024 output produced usable images. The code includes a standard PyTorch CUDA path, but NVIDIA execution has not yet been validated. Weight storage, context caches, and image computation all contribute to memory use.## Evaluation and limitations31 unmodified lines3233343536373830 unmodified lines697071727374758 unmodified lines848586878889909192939431 unmodified lines| Representation | RGB pixels mapped directly to patch tokens || Architecture | A-MoT and A-MoE || Conditioning | Text, reference images, and earlier outputs || Weight format | BF16 safetensors || Demonstrated visual text | Chinese and English |A-MoT connects understanding and generation branches through joint attention, with dedicated image and timestep residual inputs for generation. A-MoE combines always-active shared computation with token-dependent routed experts. Inference requires neither a separate pretrained vision encoder nor a latent autoencoder.30 unmodified linesfrom wegen2 import WeGen2Pipelinepipe = WeGen2Pipeline.from_pretrained("./weights/WeGen2", devices="cuda:0,cuda:1")image = pipe.generate("A luminous underwater opera house, intricate coral architecture.",8 unmodified linesedited.save("opera-stage.png")```For multiple references, pass an ordered list in `images`. For continuing creation, use `session = pipe.session()` and call `session.generate(...)` for each turn. See the [inference guide](https://github.com/zhuangshaobin/WeGen2/blob/main/docs/inference.md#multi-turn-creation) for CLI examples and sequence requests.## Runtime**H20 planning estimate:** 2 × NVIDIA H20 (96 GB). BF16 weights alone occupy approximately **57.9 / 56.6 GiB** across the two GPUs with the default layer split. Runtime buffers and context require additional memory. These are checkpoint-based estimates; H20 peak memory and latency have not been measured.## Evaluation and limitations
README.md+4-4