MCPcopy Index your code
hub / github.com/huggingface/diffusers / pipe

Function pipe

tests/others/test_attention_backends.py:122–126  ·  view source on GitHub ↗
(device)

Source from the content-addressed store, hash-verified

120
121@pytest.fixture(scope="session")
122def pipe(device):
123 repo_id = "black-forest-labs/FLUX.1-dev"
124 pipe = FluxPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16).to(device)
125 pipe.set_progress_bar_config(disable=True)
126 return pipe
127
128
129@pytest.mark.parametrize("backend_name,expected_slice", FORWARD_CASES, ids=[c[0] for c in FORWARD_CASES])

Calls 3

toMethod · 0.45
from_pretrainedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…