Repository navigation
Support for several models and more customizations - #42
Draft
christophe0606 wants to merge 2 commits into
Draft
christophe0606 wants to merge 2 commits into
christophe0606 wants to merge 2 commits into
Conversation
Author
|
I'll probably move some information given through the dataclasses to the mlops description in csolution ... so this PR is a work in progress |
christophe0606
marked this pull request as draft
October 23, 2026 09:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal of the PR:
get_symmetric_quantization_configorget_symmetric_a16w8_quantization_config)To support those use cases, we need a more complex contract between
create_ai_layer.pyandmodel.pyand probably a rework of themodelnode inmlops.The new python
description.pyprovides datatype to describe more complex use-cases.model.pycan be used as before and nothing will change. But, by using the new datatype it can describes different needs tocreate_ai_layer.py.It introduces new classes :
Model,Metadata,PteThe
Modelclass describes:input-shapeandcalibration-samplesno more read from the mlopsA
Metadataclass to provide metadata in the pteA
Pteclass to package several models + metadata in the pteA list of
Pteobject to generate several Pte.The
get_modelfunction can thus generate:nn.Moduleas beforeModelModelPtecontaining one or severalModelPteThe generated
ai_layerwill contain all operators needed by all networks of all pte.There will be a different group per pte.
Not covered:
VelaExternalBlockPlacementsReference issue : #41