CogVideo/tests/__init__.py
Test User c5d6f7b557 test: add tests for multi-GPU device_map support
- Add comprehensive tests for device_map argument functionality
- Test all device_map options: None, auto, balanced, sequential
- Test all pipeline types: t2v, i2v, v2v
- Verify CPU offload logic (enabled when device_map=None, disabled otherwise)
- Verify from_pretrained receives correct device_map parameter
- Test VAE optimizations are always enabled regardless of device_map
- Test invalid device_map values raise ValueError
- Verify backward compatibility (default behavior unchanged)
- Mock heavy dependencies (torch, diffusers) for fast CI execution

47 tests covering all multi-GPU device_map scenarios
2026-02-19 03:23:37 +00:00

2 lines
32 B
Python

# Tests for CogVideoX CLI tools