15 lines
538 B
Python
15 lines
538 B
Python
|
|
"""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()})
|