Hide load button on BnB 4-bit
This commit is contained in:
parent
7c48b0fcd5
commit
308cf0cf82
Binary file not shown.
|
@ -112,6 +112,7 @@ class model_backend(HFTorchInferenceModel):
|
|||
|
||||
if not hasattr(self.model_config, 'quantization_config'):
|
||||
if self.quantization == "8bit":
|
||||
utils.koboldai_vars.disable_model_load = True
|
||||
tf_kwargs.update({
|
||||
"quantization_config":BitsAndBytesConfig(
|
||||
load_in_8bit=True,
|
||||
|
@ -120,6 +121,7 @@ class model_backend(HFTorchInferenceModel):
|
|||
})
|
||||
|
||||
if self.quantization == "4bit" or utils.koboldai_vars.colab_arg:
|
||||
utils.koboldai_vars.disable_model_load = True # Hiding scope here is a little larger, but since we must hide the button on Colab anyway thats ok - Henk
|
||||
tf_kwargs.update({
|
||||
"quantization_config":BitsAndBytesConfig(
|
||||
load_in_4bit=True,
|
||||
|
|
|
@ -3593,8 +3593,7 @@ body.NotConnected {
|
|||
}
|
||||
|
||||
.settings_button[system_disable_model_load="true"] {
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
display:none
|
||||
}
|
||||
|
||||
@font-face {
|
||||
|
|
Loading…
Reference in New Issue