mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Move quantization scripts to a scripts/ subdir.
This commit is contained in:
parent
a21f6c4964
commit
dff4a88baa
@ -6,7 +6,7 @@ from flux.util import configs as flux_configs
|
|||||||
from safetensors.torch import load_file, save_file
|
from safetensors.torch import load_file, save_file
|
||||||
|
|
||||||
from invokeai.backend.quantization.bnb_llm_int8 import quantize_model_llm_int8
|
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():
|
def main():
|
@ -5,7 +5,7 @@ from safetensors.torch import load_file, save_file
|
|||||||
from transformers import AutoConfig, AutoModelForTextEncoding, T5EncoderModel
|
from transformers import AutoConfig, AutoModelForTextEncoding, T5EncoderModel
|
||||||
|
|
||||||
from invokeai.backend.quantization.bnb_llm_int8 import quantize_model_llm_int8
|
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):
|
def load_state_dict_into_t5(model: T5EncoderModel, state_dict: dict):
|
Loading…
Reference in New Issue
Block a user