Update app.py
Browse files26 unmodified lines2728293030313233400 unmodified lines43443543643743743843944026 unmodified linesimport pk_workflow as pk
MODEL_REPO = os.environ.get("H3_MODEL_REPO", "MiniMaxAI/MiniMax-H3")CONDITIONER_SPACE = os.environ.get("H3_CONDITIONER", "multimodalart/qwen3vl-conditioner")CONDITIONER_SPACE = os.environ.get("H3_CONDITIONER", "dagloop5/qwen3vl-conditioner")# `pack` places the transformer at startup, `lazy` moves everything on the first GPU call.PLACEMENT = os.environ.get("H3_PLACEMENT", "pack").lower()# cuDNN's fused attention is 10-20% faster than the SDPA default on this pool and needs nothing installed. It is400 unmodified lines return max(60, int((denoise + decode + post) * _MARGIN) + _PLACEMENT_ALLOWANCE)
@spaces.GPU(duration=get_duration, size=GPU_SIZE)@spaces.GPU(duration=125, size=GPU_SIZE)def _generate( prompt_embeds, text_token_tags,app.py+2-2