Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(tests): build the H3 text-encoder key fixture on meta

Lincoln Stein5d7ce497edf8
diff --git a/tests/backend/minimax_h3/test_text_encoder_checkpoint.py b/tests/backend/minimax_h3/test_text_encoder_checkpoint.py
index 58d2f31af5..e00fabfeb8 100644
--- a/tests/backend/minimax_h3/test_text_encoder_checkpoint.py
+++ b/tests/backend/minimax_h3/test_text_encoder_checkpoint.py
@@ -242,8 +242,10 @@ def test_te_converted_keys_match_real_model_exactly() -> None:
parent,
module_name.rsplit(".", 1)[1],
Int8ConvrotLinear(
- weight=torch.zeros(weight.shape, dtype=torch.int8),
- weight_scale=torch.zeros(weight.shape[0], 1),
+ # Meta tensors: only keys and shapes are compared below, and real int8 zeros at the
+ # 32B model's shapes allocate ~24 GB - enough to get a CI runner OOM-killed.
+ weight=torch.zeros(weight.shape, dtype=torch.int8, device="meta"),
+ weight_scale=torch.zeros(weight.shape[0], 1, device="meta"),
convrot=True,
),
)