Skip to content

Commit 7c494fc

Browse files
committed
[test] Update Helios attention backend scope
1 parent 765d572 commit 7c494fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/local_tests/transformers/test_helios_transformer_parity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ def _load_tiny_fastvideo(
156156
device: torch.device,
157157
dtype: torch.dtype,
158158
):
159-
from fastvideo.attention.selector import global_force_attn_backend_context_manager
159+
from fastvideo.attention.selector import _component_attention_backend_scope
160160

161161
HeliosArchConfig, HeliosConfig, FastVideoHeliosTransformer = _native_types()
162162
kwargs = _tiny_kwargs()
163163
torch.manual_seed(3535)
164164
official = OfficialHeliosTransformer3DModel(**kwargs).to(dtype=dtype).eval()
165-
with set_default_torch_dtype(dtype), global_force_attn_backend_context_manager(backend):
165+
with set_default_torch_dtype(dtype), _component_attention_backend_scope(backend, component="transformer"):
166166
native = FastVideoHeliosTransformer(
167167
config=HeliosConfig(arch_config=HeliosArchConfig(**kwargs)),
168168
hf_config={},

0 commit comments

Comments
 (0)