Collapse compressed-tensors export help line so ruff-format converges
The print line in print_quantization_methods needed two ruff-format passes to reach a fixpoint (merge implicit string concat, then collapse the single-arg print). pre-commit.ci applies one pass per run, so it kept reformatting. Land the converged single-line form directly.
This commit is contained in:
parent
15809100a9
commit
ead91233eb
1 changed files with 1 additions and 3 deletions
|
|
@ -216,9 +216,7 @@ def _normalize_compressed_method(save_method):
|
|||
def print_quantization_methods():
|
||||
for key, value in ALLOWED_QUANTS.items():
|
||||
print(f'"{key}" ==> {value}')
|
||||
print(
|
||||
"\nCompressed-tensors export (save_pretrained_merged(..., save_method=...), for vLLM):"
|
||||
)
|
||||
print("\nCompressed-tensors export (save_pretrained_merged(..., save_method=...), for vLLM):")
|
||||
seen = set()
|
||||
for key, (scheme, needs_calib, _suffix) in COMPRESSED_EXPORT_SCHEMES.items():
|
||||
if scheme in seen:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue