見出し画像

ComfyUIでFP8/GGUF版のZ-Image-Turboを試す(VRAM 8GB以上)

Last update 12-3-2025
※ ワークフローはモデルの選択が異なる3種類があるので、1-2.を参考に検討してください。
※ 関連記事は、ComfyUIの記事一覧にまとめてあります。




■ 0. 概要

▼ 0-0. はじめに

 本記事では、ComfyUIで「Z-Image-Turbo」を利用するための手順を説明します。モデルはFP8版とGGUF版を利用します。

 ComfyUIのインストール方法は、下記の記事をご覧ください。


▼ 0-1. Z-Imageについて

 Z-Imageは、AlibabaのAI研究部門であるTongyi LabのZ-Image Projectが開発している画像生成のアーキテクチャで、11-27-2025にZ-Image-Turboが公開されました。シリーズの他のモデルも公開を予定しています。

 Z-Imageは規模の小さいモデルで、Turboは高速かつ品質の良い画像が生成できるのが特徴です。表紙を見てのとおり、ある程度の日本語を出力することもできます(精度はそこそこで、文字数が多いのは難しい様子)。

 Z-Imageのパラメーター数は6Bとなっています。参考まで、SDXLが3.5B、SD 3.5 Largeが8B、FLUX.1が12B、HiDream-I1が17B、Qwen-Imageが20B、FLUX.2は32Bとなっています。

 出力可能な解像度についての情報はありませんが、1MP(1024x1024)よりも大きいことは確かなようです(おそらく2K程度はいけそう)。


▼ 0-2. 参考リンク

 公式のリンクです。

 ComfyUIに関連するZ-Image-Turboの情報です。どちらにもワークフローが掲載されていますが、それぞれの内容が若干異なっています。 

 ComfyUIの公式ドキュメントにも掲載されていました。


▼ 0-3. 関連リンク1

 無料で生成のおためしができます。

 生成AIプレイグラウンドのfalも利用可能です。$0.005/MP で、1MPであれば1枚1.5秒未満で生成ができます。


▼ 0-4. 関連リンク2

 公式のモデルです。

 本記事で利用するモデルです。



■ 1. 留意事項と使用リソース量

▼ 1-1. 留意事項

 ComfyUIを更新していないと、必要なノードや機能が存在しない場合があります。バグフィックスを含むこともあるので、なるべく最新版にしてください。

 次回の生成を高速化するため、VRAMに読み込んだモデルが自動的にメインRAMへ待避(オフロード)されることがあります。そのため、メインRAMは32GB以上が望ましいです。


▼ 1-2. 必要なリソースと生成時間

 VRAM使用量の目安です。3.に掲載しているワークフローを選ぶ際の参考にしてください。

  • FP8版
    12GB、16GBともに共有GPUメモリへはみ出す。ただし、実行時間はGGUF版1とほぼ同じ。

  • GGUF版1(FP8版のModelと、GGUF版のText Encoder (imatrix-IQ4_XS) を使用)
    12GB、16GBともに共有GPUメモリにはみ出さずに実行できる。

  • GGUF版2(GGUF版のModel (Q4_K_M) とText Encoder (imatrix-IQ4_XS) を使用)
    おおむね8GB未満。Modelの量子化タイプにより上下する。

 筆者の環境(GeForce RTX 5060Ti 16GB)での生成時間は下記のとおりです。生成画像の大きさは1MP(1024x1024等)としました。ディスクからのモデルの読み込みや、プロンプトの処理の時間は含まれていません。その他の条件は上記と同じです。

  • FP8版とGGUF版1
    18秒程度(9Steps)、9秒程度(4Steps)

  • GGUF版2
    21秒程度(9Steps)、10秒程度(4Steps)

 RTX 3060(12GB)でも試してみましたが、上記の1.5倍程度の時間がかかりました。



■ 2. モデルの設置

▼ 2-1. はじめに

 FP8版を利用する場合は2-2.を、GGUF版(2パターンあり)の場合は2-3.を参照してください。

  • FP8版 → 2-2.

  • GGUF版 → 2-3.


▼ 2-2. FP8版

 小型のモデルといっても、BF16版は11.4GBもあります(下記の Comfy-Org/z_image_turbo 内を参照)。特段のこだわりがなければFP8版をおすすめします。

 筆者は種類ごとにディレクトリを分けているのでそのように記述しますが、お好みで決めていただいて構いません。

 下記のURLに掲載されたそれぞれのファイルをダウンロードして、適切なフォルダへ移動します。設置済みの場合はスキップしてください。なお、VAEの設置場所のみ「flux1」フォルダにしておきました。


▼ 2-3. GGUF版

 GGUF形式のモデルを利用するにあたり、「Text Encoderのみで利用する」「ModelとText Encoderで利用する」の2パターンを提案し、前者をおすすめします。その理由を挙げます。

  • 通常版のText Encoderは7.49GBあるが、GGUF形式のimatrix-IQ4_XSは2.11GB、Q8_0でも3.99GBしかない。

  • Text EncoderのみGGUF化しても、生成時間はほとんど変わらない。

 筆者は種類ごとにディレクトリを分けているのでそのように記述しますが、お好みで決めていただいて構いません。

 下記のURLに掲載されたそれぞれのファイルをダウンロードして、適切なフォルダへ移動します。設置済みの場合はスキップしてください。

 FP8形式のModelを利用したい場合は、下記をダウンロードします。3.に掲載しているワークフローは「GGUF版1」を選択してください。

 FP8形式ではなくGGUF形式のModelを利用したい場合は、代わりに下記をダウンロードします。3.に掲載しているワークフローは「GGUF版2」を選択してください。

 次に、GGUF形式のText Encoderをダウンロードします。

 最後にVAEをダウンロードします。こちらはFP8版と同じです。VAEの設置場所のみ「flux1」フォルダにしておきました。



■ 3. 画像の生成

▼ 3-1. はじめに

 FP8版やGGUF版のワークフローを用いて画像を生成します。FP8版の場合は3-3.へ進んでください。

  • 必要な拡張機能について(GGUF版のみ) → 3-2.

  • ワークフローについて → 3-3.

  • ワークフロー(通常版) → 3-4.

  • ワークフロー(高速版) → 3-5.

  • 実行例 → 3-6.


▼ 3-2. 必要な拡張機能について(GGUF版のみ)

 本記事に掲載したGGUF版のワークフローを読み込んだとき、拡張機能が不足していると「Some Nodes Are Missing」の表示が出ます。その場合は、ComfyUI Managerの機能を利用してインストールすることができます。

 拡張機能をインストールする方法は、下記の記事の「自動インストールの手順 」または「手動インストールの手順」を参照してください。

 本記事のワークフローでは下記の拡張機能を利用します。


▼ 3-3. ワークフローについて

 生成用のワークフローを提供しますので、改造、再公開を含め自由にご利用ください。

 FP8版、GGUF版1(Text EncoderのみGGUF形式)、GGUF版2(ModelとText EncoderがGGUF形式)の3パターンがあります。さらに通常版と高速版がありますが、2ヶ所の設定値の違いのみです。

 おすすめはGGUF版1ですが、メインRAMが十分にあればFP8版でも差し支えないと思います。


▼ 3-4. ワークフロー(通常版)

 通常版は「euler, 9 Steps」が設定されています。未使用のLoRAローダーを付けておいたので、必要があればご利用ください。

(Last update 11-29-2025)

FP8版

GGUF版1(Text EncoderのみがGGUF形式)
GGUF版2(ModelとText EncoderがGGUF形式)


▼ 3-5. ワークフロー(高速版)

 高速版は「res_multistep, 4 Steps」が設定されています。それ以外の設定は通常版と同じです。未使用のLoRAローダーを付けておいたので、必要があればご利用ください。

(Last update 11-29-2025)

FP8版

GGUF版1(Text EncoderのみがGGUF形式)
GGUF版2(ModelとText EncoderがGGUF形式)


▼ 3-6. 実行例(画像の生成)

 設置したモデル(Model、Text Encoder、VAE)に合わせて設定を行い、解像度(初期値は1024x1024)を好みで書き換えて、プロンプトを入力して「Run」をクリックすると生成が始まります。

 実行例は本記事の表紙画像です。FP8版を使用して、解像度は1440x768、Seedは468894381078299です。

実行例(解像度を1440x768に変更)
A vibrant future-pop anime illustration, close-up composition dominated by an ultra-cute cyber-idol girl (70% of frame) and a glowing holographic signboard. She has luminous porcelain skin with neon reflections, huge sparkling amethyst eyes with star catchlights, and an electric smile with tiny fang. Voluminous sakura-pink hair with iridescent glow, high twin braids crowned with holographic butterfly drones and fiber-optic strands. Outfit: sleek pastel gradient bodysuit (mint→peach) with glowing frills, pulsing mega ribbon bow, cropped lavender bolero with holographic circuits, white thigh-highs with LED lace, and platform boots with cyan ribbons. Explosive pose: leaning forward, glowing heart hands, winking with digital sparkle. Beside her, large holographic wooden-style sign with chrome edges displaying "Z-Image-Turboを 使ってみよう!" in bold future-pop font with neon cyan/magenta outlines, pulsing stars and pixel butterflies. Background: dreamy cyber-pastel park at twilight, glowing candy-colored trees, bokeh skyscrapers, drone light trails. Air filled with hexagonal sparkles, floating orbs, lens flares. Bright future-pop anime lighting, intense saturation, chromatic aberration, glossy cel-shading, razor-sharp lines, maximum kawaii-impact aesthetic.



■ 4. おまけ

▼ 4-1. Z-Image-Turboの生成画像

 Z-Image-Turboで生成した画像を掲載します。出力時の解像度は1536x864で統一しています。思いつきでプロンプトを作っているため、内容はばらばらです。ClaudeとGrokを使用しました。

A heartwarming puppet-theater style illustration with felt-fabric textures, soft woolly details and visible marionette strings, chibi proportions: a delighted purple-haired girl in a flowing red felt hooded cape and white cotton dress sits happily on a giant fluffy cloud made of stuffed cotton, floating above a dreamy flower meadow stage at twilight. She gently hugs and holds hands with an adorable oversized plush baby red panda that has sparkling button big eyes, embroidered rosy cheeks, tiny stitched paws and super-soft fur texture, wearing a tiny red satin ribbon bow that flutters in the breeze. In the foreground, endless fields of glowing fabric cherry blossoms and felt dandelions sway softly on wires, clusters of friendly hand-puppet forest animals like bunnies and fawns gather curiously around them, tiny LED fireflies dance like lantern props, delicate silk petals drift in the warm evening air, all lit by gentle paper-moon light and painted sunset backdrop for a perfectly balanced, magical, heart-melting wholesome puppet-show scene.
A timid 19-year-old girl drawn in a warm and fluffy modern shoujo manga style for today’s readers, with extremely long flowing pale-lavender hair styled in soft loose pigtails tied low with delicate ribbons, airy bangs sweetly hiding one eye, large sparkling deep-crimson eyes brimming with quiet wonder and gazing gently off to the side, fair porcelain skin with a faint rosy blush, wearing a classic white long-sleeve sailor uniform with navy collar, bright red scarf neatly tied, and a gently swaying navy pleated skirt, white knee-high socks with tiny ribbon charms, and shiny chestnut loafers. She steps shyly toward the viewer, filling the frame, one foot forward, body leaning in cutely, both hands carefully offering a small glass jar full of twinkling golden fireflies toward the camera with lovely foreshortening, the softest happiest smile ever. The scene is wrapped in deeper twilight darkness so the fireflies and jar glow even brighter, countless golden fireflies drifting like tiny lanterns in the tall swaying emerald grass, a velvet star-filled sky with gentle pastel shooting stars. Palette of rich midnight indigo, soft lavender, and warm golden highlights, delicate halftone shading, abundant tiny sparkles, and a tender glowing rim light that beautifully outlines her hair and clothes. High-resolution modern shoujo illustration, soft dreamy bokeh, vibrant yet heart-warming romantic mood, the kind of art that’s super popular in current kawaii communities.
Horizontal wide manga page layout with 3 equal panels side by side. Depict a cute chibi girl with long chestnut hair tied with navy ribbon wearing navy blue school swimsuit at bright indoor swimming pool. Left panel: inside the pool facility hallway or locker area doing side stretch warm-up with text "Stretch♪" and only walls and doors visible in background, middle panel: standing on starting block giving big peace sign and wink with text "Ready!" and pool water and lane ropes behind her, right panel: mid-air diving forward into the pool with huge excited smile and text "Dive!!" showing sparkling blue water below and splash starting. No speech balloons, dynamic motion lines and droplets, thin strong black outlines, some effects breaking borders. Style: soft warm deformed chibi style, full-color manga with delicate pale watercolor texture, gentle healing atmosphere, bright indoor lighting, high saturation pastel colors, fluffy round character design, very cute and heartwarming, soft watercolor wash effect, delicate shojo-manga detail.
Documentary-style portrait of a Japanese elementary school-aged girl sitting on a gently sloping lush green meadow with her knees drawn up to her chest and arms wrapped around her legs in a gentle embrace, photographed from a diagonal front angle at close range so her figure fills most of the frame. She looks toward the camera with a soft, warm smile, her face prominently visible and occupying significant space in the composition. Medium-length brunette hair in twin braids frames her face, light gray eyes sparkling. Wearing pale blue lolita-style dress with elaborate lace and ribbon details over matching culotte-style short pants in the same pale blue fabric, matching headpiece, white ankle socks, and black patent shoes with feet positioned close together. Her seated posture is compact and natural, knees held close to chest, arms gently circling her shins, creating an intimate and peaceful composition. Refreshing natural daylight, vast open grassland softly blurred behind, shallow depth of field, crisp 85mm lens perspective, bright and clear close-up from diagonal front view emphasizing facial expression and relaxed seated pose.
A cozy traditional Japanese izakaya interior at night, warm lantern lighting, wooden table in the foreground with various izakaya dishes like yakitori skewers, edamame, sashimi platter, tempura, grilled fish, several glasses of cold draft beer with foam overflowing, chopsticks and small plates scattered naturally, across the table sits a 50-year-old Japanese salaryman in a dark business suit, white shirt, slightly loosened tie, short graying hair, gentle tired smile, relaxed posture leaning back a little, realistic detailed photography style, cinematic warm atmosphere, sharp focus, high resolution
Photorealistic wide-angle view of the iconic Kaminarimon Gate in Asakusa, Tokyo, on a bright sunny day, massive red chochin lantern with "雷門" lettering hanging prominently, fierce wind and thunder god statues on both sides, dense crowd of excited tourists from all over the world taking selfies, raising smartphones and cameras, groups wearing yukata and kimono, street vendors with colorful carts, traditional rickshaws passing by, red temple gate framing the bustling Nakamise-dori shopping street in the background, vivid colors, sharp details, lively atmosphere, cinematic composition, 8k
Ultra-detailed 3D MMORPG combat screenshot in medieval fantasy style, dynamic battlefield at dusk with dramatic orange-purple sky and volumetric god rays piercing through thick battle smoke, foreground shows a heavily armored human warrior in massive plate armor with glowing blue runes on the shoulder plates swinging a gigantic two-handed flaming greatsword mid-attack creating bright fire trails and sparks, massive impact shockwave distorting the air, directly in front of him a huge dark orc warlord in spiked black armor blocking with a blood-stained tower shield while being pushed back, cracked ground and flying debris around them, in the midground a female elven mage in flowing emerald robes casting a massive swirling ice storm spell with glowing magic circles and frost particles exploding outward, behind her a rogue in dark leather dual-wielding poisoned daggers leaping from the shadows, background filled with chaotic player vs player combat, arrows raining down, fireballs exploding, warriors clashing, destroyed siege weapons burning, detailed UI elements with health bars, mana bars, floating damage numbers in red and gold, party frames on the left, minimap top right, glowing skill icons on hotbar with cooldown timers, high fantasy atmosphere, ultra realistic textures, cinematic depth of field, 8k resolution, unreal engine rendering, extremely detailed environment and character models, epic large-scale battle vibe
Retro MS-DOS era visual novel scene, EGA 16-color graphics, pixel art style, cute anime heroine with long hair and school uniform standing in classroom during sunset, warm orange light through window, classic dialogue box at bottom with cyan background and white pixel font text saying "Will you go home with me today?", heartfelt innocent atmosphere, 1990s Japanese galge aesthetic, crisp dithering, nostalgic CRT monitor glow, high detail
A highly detailed whimsical anthropomorphic vegetable garden scene at golden hour, ultra-tall muscular carrot with thick green leafy hair and powerful root legs standing proudly in the soil like a giant guardian, mischievous plump red tomato with skinny dangling arms and cheeky grin lazily leaning against a wooden fence, determined brown potato with freshly sprouted strong human-like arms and legs energetically swinging a tiny gardening hoe, slender green cucumber with long elegant arms thoughtfully climbing a wooden trellis while looking into the distance, various expressive vegetables peeking from the lush foliage, vibrant colorful raised garden beds, dewdrops on leaves, soft warm golden sunlight filtering through, long playful shadows, rich earthy tones mixed with bright vegetable colors, cute storybook illustration style with cinematic lighting, highly detailed, sharp focus, whimsical and heartwarming atmosphere



■ 5. その他

 私が書いた他の記事は、メニューよりたどってください。

 ComfyUIに限定した記事の一覧もあります。

 記事に関することで何かありましたら、Xの@riddi0908までお願いします。

いいなと思ったら応援しよう!