probe(review): fp8 serve row + 3-ref fixture + fp8 quality-collapse diagnosis
Review follow-up on PR #4: run --quantization fp8 through the served path on the 3090 (the flag issue 1 validated for capacity), add the untested 3-reference fixture, and measure all counts. Capacity: confirmed — all of 1/2/3/4 references fit and run (4-ref 44.1-44.4s, server peak 23,522MB, nvidia-smi max 23,983MiB; Marlin W8A16 is faster than BF16, 3.3x the Diffusers nocache baseline). Quality: every fp8 output is structurally broken on this commit and card (~97% transparent RGBA, grey RGB, PSNR 7-9dB) — on the edit path at every reference count and on T2I alike (issue 1's fp8 artifacts reinspected: same collapse; that run validated rc+image, not output structure). img_mlp exclusion does not fix it; transformer-only fp8 also collapses, pinning the culprit on the Marlin-quantized DiT. 3090 verdict stays not-built; upstream fix order is fp8 output correctness before any capacity role for it.
This commit is contained in:
1 parent
67eb7fdb48
commit
4f5f99d8c6
6 files changed
+1102
-16
No files matched your search
@@ -47,6 +47,12 @@ def main() -> int:
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--out", required=True, type=pathlib.Path)
|
||||
parser.add_argument("--kv-dtype", default="fp8_v")
|
||||
parser.add_argument(
|
||||
"--quant",
|
||||
default="none",
|
||||
choices=["none", "fp8", "fp8-imgmlp", "fp8-dit", "fp8-encoder"],
|
||||
help="weight quantization: none, fp8 (all), fp8 minus img_mlp, transformer-only, or text-encoder-only",
|
||||
)
|
||||
parser.add_argument("--fixture", default="edit-compose-four")
|
||||
parser.add_argument("--seeds", type=lambda s: tuple(int(x) for x in s.split(",")), default=(2301,))
|
||||
parser.add_argument("--no-extras", action="store_true", help="run without the extras knob (control)")
|
||||
@@ -61,11 +67,25 @@ def main() -> int:
|
||||
enable_cpu_offload=True,
|
||||
init_timeout=1200,
|
||||
)
|
||||
if args.quant == "fp8":
|
||||
omni_kwargs["quantization"] = "fp8"
|
||||
elif args.quant == "fp8-imgmlp":
|
||||
omni_kwargs["quantization_config"] = {
|
||||
"method": "fp8",
|
||||
"ignored_layers": ["img_mlp"],
|
||||
}
|
||||
elif args.quant == "fp8-dit":
|
||||
omni_kwargs["quantization_config"] = {"transformer": {"method": "fp8"}}
|
||||
elif args.quant == "fp8-encoder":
|
||||
omni_kwargs["quantization_config"] = {"text_encoder": {"method": "fp8"}}
|
||||
if not args.no_extras:
|
||||
omni_kwargs["extras"] = {"prefix_kv_cache_dtype": args.kv_dtype}
|
||||
t0 = time.time()
|
||||
omni = Omni(**omni_kwargs)
|
||||
print(f"load_s={time.time() - t0:.1f} extras={omni_kwargs.get('extras')}", flush=True)
|
||||
print(
|
||||
f"load_s={time.time() - t0:.1f} quant={args.quant} extras={omni_kwargs.get('extras')}",
|
||||
flush=True,
|
||||
)
|
||||
model_class_name = get_model_class_name(omni)
|
||||
|
||||
args.out.mkdir(parents=True, exist_ok=True)
|
||||
@@ -90,7 +110,7 @@ def main() -> int:
|
||||
)
|
||||
torch.cuda.reset_peak_memory_stats()
|
||||
t1 = time.time()
|
||||
rec = {"fixture_id": args.fixture, "seed": seed, "n_references": len(refs), "kv_dtype": args.kv_dtype}
|
||||
rec = {"fixture_id": args.fixture, "seed": seed, "n_references": len(refs), "kv_dtype": args.kv_dtype, "quant": args.quant}
|
||||
try:
|
||||
outputs = omni.generate(prompt_dict, sampling_params_list=[params])
|
||||
wall = time.time() - t1
|
||||
|
||||
Reference in new issue
Block a user