mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-15 03:23:31 +08:00
remove dyn quant cli arg, remove todo
This commit is contained in:
parent
c265708d47
commit
fdeb63df91
@ -143,7 +143,6 @@ class PerformanceFeature(enum.Enum):
|
|||||||
Fp16Accumulation = "fp16_accumulation"
|
Fp16Accumulation = "fp16_accumulation"
|
||||||
Fp8MatrixMultiplication = "fp8_matrix_mult"
|
Fp8MatrixMultiplication = "fp8_matrix_mult"
|
||||||
CublasOps = "cublas_ops"
|
CublasOps = "cublas_ops"
|
||||||
DynamicQuantizer = "dynamic_quantizer"
|
|
||||||
|
|
||||||
parser.add_argument("--fast", nargs="*", type=PerformanceFeature, help="Enable some untested and potentially quality deteriorating optimizations. --fast with no arguments enables everything. You can pass a list specific optimizations if you only want to enable specific ones. Current valid optimizations: fp16_accumulation fp8_matrix_mult cublas_ops")
|
parser.add_argument("--fast", nargs="*", type=PerformanceFeature, help="Enable some untested and potentially quality deteriorating optimizations. --fast with no arguments enables everything. You can pass a list specific optimizations if you only want to enable specific ones. Current valid optimizations: fp16_accumulation fp8_matrix_mult cublas_ops")
|
||||||
|
|
||||||
|
|||||||
@ -422,8 +422,6 @@ def operator_factory(**factory_kwargs):
|
|||||||
|
|
||||||
return op_set
|
return op_set
|
||||||
|
|
||||||
# TODO might be nicer to have a unified interface to the factory
|
|
||||||
# TODO logic might not be 1-1 match to original implementation
|
|
||||||
def pick_operations(weight_dtype=None, compute_dtype=None, load_device=None, fast_fp8=False, disable_fast_fp8=False):
|
def pick_operations(weight_dtype=None, compute_dtype=None, load_device=None, fast_fp8=False, disable_fast_fp8=False):
|
||||||
fp8_compute = (comfy.model_management.supports_fp8_compute(load_device) and not disable_fast_fp8)
|
fp8_compute = (comfy.model_management.supports_fp8_compute(load_device) and not disable_fast_fp8)
|
||||||
use_dynamic_quantizer = fast_fp8
|
use_dynamic_quantizer = fast_fp8
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user