Jedrzej Kosinski
767b4ee099
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled
Extract cuda_device_context manager, fix tiled VAE methods
Add model_management.cuda_device_context() — a context manager that
saves/restores torch.cuda.current_device when operating on a non-default
GPU. Replaces 6 copies of the manual save/set/restore boilerplate.
Refactored call sites:
- CLIP.encode_from_tokens
- CLIP.encode_from_tokens_scheduled (hooks path)
- CLIP.generate
- VAE.decode
- VAE.encode
- samplers.outer_sample
Bug fixes (newly wrapped):
- VAE.decode_tiled: was missing device context entirely, would fail
on non-default GPU when called from 'VAE Decode (Tiled)' node
- VAE.encode_tiled: same issue for 'VAE Encode (Tiled)' node
Amp-Thread-ID: https://ampcode.com/threads/T-019dabdc-8feb-766f-b4dc-f46ef4d8ff57
Co-authored-by: Amp <amp@ampcode.com>
2026-04-20 11:31:31 -07:00
..
2026-03-06 18:20:07 -05:00
2025-11-23 04:55:22 -05:00
2026-03-12 10:14:28 -07:00
2025-01-18 05:27:58 -05:00
2025-09-04 20:36:20 -04:00
2026-02-11 14:53:42 -05:00
2026-04-20 02:38:33 -07:00
2025-07-16 14:42:07 -04:00
2024-06-27 18:43:11 -04:00
2026-01-21 23:03:51 -05:00
2026-04-16 10:11:58 -04:00
2026-02-15 20:30:09 -05:00
2026-03-30 06:24:55 -07:00
2024-07-30 14:41:13 -04:00
2026-01-12 17:05:54 -05:00
2023-08-18 11:13:29 -04:00
2023-04-01 23:19:15 -04:00
2025-03-06 00:24:43 -05:00
2024-07-17 13:12:50 -04:00
2023-04-01 23:19:15 -04:00
2026-01-12 17:05:54 -05:00
2024-11-21 08:38:23 -05:00
2025-04-05 07:01:01 -04:00
2026-02-01 01:01:11 -05:00
2026-02-26 01:30:31 -05:00
2026-03-19 20:42:42 -07:00
2026-02-17 02:53:06 -08:00
2025-01-24 06:15:54 -05:00
2024-08-12 23:20:57 -04:00
2026-03-14 18:36:29 -04:00
2025-07-06 07:07:39 -04:00
2026-01-01 22:06:14 -05:00
2026-03-02 19:43:47 -05:00
2026-02-13 15:35:13 -05:00
2026-03-09 16:08:51 -04:00
2026-03-27 21:34:16 -04:00
2026-04-11 22:29:31 -04:00
2026-04-11 22:29:31 -04:00
2026-04-20 11:31:31 -07:00
2026-04-20 02:38:33 -07:00
2026-02-25 23:38:46 -05:00
2026-04-08 05:39:07 -07:00
2025-10-23 21:21:14 -04:00
2026-04-15 02:10:36 -07:00
2023-09-13 11:38:20 -04:00
2025-10-15 17:33:02 -07:00
2026-03-27 21:34:16 -04:00
2025-09-13 18:03:34 -04:00
2026-03-30 08:32:52 -07:00
2026-02-16 20:09:24 -05:00
2026-03-21 17:53:25 -04:00
2026-04-08 05:39:07 -07:00
2026-04-20 11:31:31 -07:00
2024-07-30 14:41:13 -04:00
2026-03-25 22:48:28 -04:00
2026-04-20 11:31:31 -07:00
2025-04-25 19:36:00 -04:00
2025-12-05 18:25:31 -05:00
2026-04-11 22:29:31 -04:00
2026-03-19 13:29:34 -04:00
2026-02-01 01:01:11 -05:00