Update save.py
This commit is contained in:
parent
88e1930a18
commit
4063b87c01
1 changed files with 4 additions and 1 deletions
|
|
@ -2817,7 +2817,10 @@ def _unsloth_save_torchao_with_given_config(
|
|||
)
|
||||
from torchao import quantize_
|
||||
|
||||
quantization_config = TorchAoConfig(quant_type = torchao_config)
|
||||
if isinstance(torchao_config, TorchAoConfig):
|
||||
quantization_config = torchao_config
|
||||
else:
|
||||
quantization_config = TorchAoConfig(quant_type = torchao_config)
|
||||
|
||||
# Determine if this is a VLM
|
||||
is_vlm = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue