h3-blackwell-runtime/tools/run_qwen3vl_text.py

15 lines
538 B
Python
Raw Normal View History

2026-08-12 14:12:42 +07:00
"""Run direct prompt-only Qwen3-VL H3 conditioning."""
import torch
from h3_blackwell_runtime.qwen3vl_text import Qwen3VLPromptConditioner
conditioner = Qwen3VLPromptConditioner(
"/text-encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
"/opt/h3-blackwell-runtime/qwen25_tokenizer",
)
states = conditioner("A brass-and-paper dragon flies above a rain-washed old city at blue hour.")
torch.cuda.synchronize()
print({"shape": tuple(states.shape), "dtype": str(states.dtype), "finite": torch.isfinite(states).all().item()})