[Refactor][Misc] Remove unused code in diffusion hooks/model_loader (#5270)
Signed-off-by: Alicia <115451386+congw729@users.noreply.github.com>
This commit is contained in:
1 parent
dcf8b07d39
commit
f18924c1ca
9 files changed
+17
-170
No files matched your search
@@ -309,9 +309,8 @@ class QwenImagePipeline(
|
||||
model, subfolder="scheduler", local_files_only=local_files_only
|
||||
)
|
||||
# ``from_pretrained_with_prefetch`` re-prefetches and retries on a
|
||||
# half-written cache (missing-shard ``OSError`` *and* the default
|
||||
# -config size-mismatch ``RuntimeError`` that ``retry_on_missing_shard``
|
||||
# could not recover) instead of crashing the worker.
|
||||
# half-written cache (missing-shard ``OSError`` and the default
|
||||
# -config size-mismatch ``RuntimeError``) instead of crashing the worker.
|
||||
self.text_encoder = from_pretrained_with_prefetch(
|
||||
Qwen2_5_VLForConditionalGeneration.from_pretrained,
|
||||
model,
|
||||
|
||||
@@ -263,9 +263,8 @@ class QwenImageEditPipeline(
|
||||
model, subfolder="scheduler", local_files_only=local_files_only
|
||||
)
|
||||
# ``from_pretrained_with_prefetch`` re-prefetches and retries on a
|
||||
# half-written cache (missing-shard ``OSError`` *and* the default
|
||||
# -config size-mismatch ``RuntimeError`` that ``retry_on_missing_shard``
|
||||
# could not recover) instead of crashing the worker.
|
||||
# half-written cache (missing-shard ``OSError`` and the default
|
||||
# -config size-mismatch ``RuntimeError``) instead of crashing the worker.
|
||||
self.text_encoder = from_pretrained_with_prefetch(
|
||||
Qwen2_5_VLForConditionalGeneration.from_pretrained,
|
||||
model,
|
||||
|
||||
@@ -230,9 +230,8 @@ class QwenImageEditPlusPipeline(
|
||||
model, subfolder="scheduler", local_files_only=local_files_only
|
||||
)
|
||||
# ``from_pretrained_with_prefetch`` re-prefetches and retries on a
|
||||
# half-written cache (missing-shard ``OSError`` *and* the default
|
||||
# -config size-mismatch ``RuntimeError`` that ``retry_on_missing_shard``
|
||||
# could not recover) instead of crashing the worker.
|
||||
# half-written cache (missing-shard ``OSError`` and the default
|
||||
# -config size-mismatch ``RuntimeError``) instead of crashing the worker.
|
||||
self.text_encoder = from_pretrained_with_prefetch(
|
||||
Qwen2_5_VLForConditionalGeneration.from_pretrained,
|
||||
model,
|
||||
|
||||
@@ -237,9 +237,8 @@ class QwenImageLayeredPipeline(
|
||||
model, subfolder="scheduler", local_files_only=local_files_only
|
||||
)
|
||||
# ``from_pretrained_with_prefetch`` re-prefetches and retries on a
|
||||
# half-written cache (missing-shard ``OSError`` *and* the default
|
||||
# -config size-mismatch ``RuntimeError`` that ``retry_on_missing_shard``
|
||||
# could not recover) instead of crashing the worker.
|
||||
# half-written cache (missing-shard ``OSError`` and the default
|
||||
# -config size-mismatch ``RuntimeError``) instead of crashing the worker.
|
||||
self.text_encoder = from_pretrained_with_prefetch(
|
||||
Qwen2_5_VLForConditionalGeneration.from_pretrained,
|
||||
model,
|
||||
|
||||
Reference in new issue
Block a user