@@ -201,10 +201,12 @@ def create_model_builder(
201201 arch_map = {
202202 "ChatGLMForConditionalGeneration" : builder .ChatGLMModel ,
203203 "ChatGLMModel" : builder .ChatGLMModel ,
204+ "Ernie4_5_ForCausalLM" : builder .ErnieModel ,
204205 "GemmaForCausalLM" : builder .Gemma2Model ,
205206 "Gemma3ForCausalLM" : builder .Gemma3Model ,
206207 "Gemma3ForConditionalGeneration" : builder .Gemma3Model ,
207208 "GraniteForCausalLM" : builder .GraniteModel ,
209+ "GptOssForCausalLM" : builder .GPTOSSModel ,
208210 "LlamaForCausalLM" : builder .LlamaModel ,
209211 "MistralForCausalLM" : builder .MistralModel ,
210212 "NemotronForCausalLM" : builder .NemotronModel ,
@@ -235,6 +237,7 @@ def create_model_builder(
235237 "Phi4MMForCausalLM" : builder .Phi4MMModel ,
236238 "Qwen2ForCausalLM" : builder .QwenModel ,
237239 "Qwen3ForCausalLM" : builder .Qwen3Model ,
240+ "SmolLM3ForCausalLM" : builder .SmolLM3Model ,
238241 }
239242
240243 assert config .architectures [0 ] in arch_map , (
@@ -276,6 +279,8 @@ def _post(onnx_model):
276279 for key in text_config :
277280 if not hasattr (config , key ):
278281 setattr (config , key , getattr (text_config , key ))
282+ elif config .architectures [0 ] == "GptOssForCausalLM" :
283+ delattr (config , "quantization_config" )
279284 elif (
280285 config .architectures [0 ] == "PhiMoEForCausalLM"
281286 and config .max_position_embeddings != config .original_max_position_embeddings
0 commit comments