Skip to content

Fix ONNX model loading when torch file is absent#317

Merged
urchade merged 1 commit intomainfrom
onnx_loading
Dec 20, 2025
Merged

Fix ONNX model loading when torch file is absent#317
urchade merged 1 commit intomainfrom
onnx_loading

Conversation

@Ingvarstep
Copy link
Copy Markdown
Collaborator

It fixes issue #314 by moving PyTorch model file validation into the if not load_onnx_model: block, so it runs only when loading PyTorch models.

Additionally, automatic saving of config and tokenizer files during ONNX export was added for completeness.

@urchade urchade merged commit e5fc9b5 into main Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants