Move quantization scripts to a scripts/ subdir.

This commit is contained in:
Ryan Dick 2024-08-23 18:08:37 +00:00
parent 8af3c72de7
commit 70def37280
3 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from flux.util import configs as flux_configs
from safetensors.torch import load_file, save_file
from invokeai.backend.quantization.bnb_llm_int8 import quantize_model_llm_int8
from invokeai.backend.quantization.load_flux_model_bnb_nf4 import log_time
from invokeai.backend.quantization.scripts.load_flux_model_bnb_nf4 import log_time
def main():

View File

@ -5,7 +5,7 @@ from safetensors.torch import load_file, save_file
from transformers import AutoConfig, AutoModelForTextEncoding, T5EncoderModel
from invokeai.backend.quantization.bnb_llm_int8 import quantize_model_llm_int8
from invokeai.backend.quantization.load_flux_model_bnb_nf4 import log_time
from invokeai.backend.quantization.scripts.load_flux_model_bnb_nf4 import log_time
def load_state_dict_into_t5(model: T5EncoderModel, state_dict: dict):