File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,16 @@ def _verify_load_format(self) -> None:
119
119
# Force ROCm to load from pt weights if nothing specific is set
120
120
if load_format == "auto" :
121
121
load_format = "pt"
122
+
123
+ # FIXME(woosuk): This is a temporary hack. Support safetensor weights.
124
+ architectures = getattr (self .hf_config , "architectures" , [])
125
+ if "MixtralForCausalLM" in architectures and load_format != "pt" :
126
+ logger .info (
127
+ "Currently, only 'pt' format is supported for Mixtral. "
128
+ "Changing the format to 'pt'. This may re-download the "
129
+ "weights if you have downloaded the safetensor weights." )
130
+ load_format = "pt"
131
+
122
132
self .load_format = load_format
123
133
124
134
def _verify_tokenizer_mode (self ) -> None :
You can’t perform that action at this time.
0 commit comments