Sync model repo (text/metadata)
Browse files- np_recipe/calibration.json +11 -0
- np_recipe/evaluation.json +11 -0
- np_recipe/project.json +24 -0
- np_recipe/run.detail.yaml +95 -0
- np_recipe/run.yaml +12 -0
np_recipe/calibration.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"datasets": [
|
| 3 |
+
{
|
| 4 |
+
"ref_id": "595edc1f-9919-4027-b23d-1436459990fa",
|
| 5 |
+
"dataset_name": "imagenet1k_calib_seed42_n1000",
|
| 6 |
+
"split": "CALIBRATION",
|
| 7 |
+
"num_samples": 1000,
|
| 8 |
+
"original_dataset_alias": "imagenet1k"
|
| 9 |
+
}
|
| 10 |
+
]
|
| 11 |
+
}
|
np_recipe/evaluation.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"datasets": [
|
| 3 |
+
{
|
| 4 |
+
"ref_id": "384e7ec8-2e03-4f88-9c7f-f7a248ae8403",
|
| 5 |
+
"dataset_name": "imagenet1k_eval_seed42_n5000",
|
| 6 |
+
"split": "EVALUATION",
|
| 7 |
+
"num_samples": 5000,
|
| 8 |
+
"original_dataset_alias": "imagenet1k"
|
| 9 |
+
}
|
| 10 |
+
]
|
| 11 |
+
}
|
np_recipe/project.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"project_id": "5a6d8971-9ba1-448b-af43-f0a7ba744cc1",
|
| 3 |
+
"name": "np_hpo_ee33516094",
|
| 4 |
+
"target": {
|
| 5 |
+
"device": "raspberry_pi_5_16gb",
|
| 6 |
+
"runtime": "executorch",
|
| 7 |
+
"backend": "xnnpack"
|
| 8 |
+
},
|
| 9 |
+
"gpu_device": "cuda:2",
|
| 10 |
+
"base_model": {
|
| 11 |
+
"model_id": "4d16fab8-a5e9-43a9-a3da-3d92117454b3",
|
| 12 |
+
"alias": "efficientvit_pt2_pytorch_static_fp32",
|
| 13 |
+
"modality": "CV",
|
| 14 |
+
"task": "CLASSIFICATION"
|
| 15 |
+
},
|
| 16 |
+
"calibration": {
|
| 17 |
+
"dataset_id": "595edc1f-9919-4027-b23d-1436459990fa",
|
| 18 |
+
"dataset_name": "imagenet1k_calib_seed42_n1000"
|
| 19 |
+
},
|
| 20 |
+
"evaluation": {
|
| 21 |
+
"dataset_id": "384e7ec8-2e03-4f88-9c7f-f7a248ae8403",
|
| 22 |
+
"dataset_name": "imagenet1k_eval_seed42_n5000"
|
| 23 |
+
}
|
| 24 |
+
}
|
np_recipe/run.detail.yaml
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detail:
|
| 2 |
+
batch_size: 1
|
| 3 |
+
gpu_device: cuda:2
|
| 4 |
+
graph_optimize[0]:
|
| 5 |
+
pattern_handlers:
|
| 6 |
+
- PatternHandlerAdjustAdd
|
| 7 |
+
- PatternHandlerAdjustNonContiguousConstantMathInput
|
| 8 |
+
- PatternHandlerCanonicalizeConvolutionDefault
|
| 9 |
+
- PatternHandlerCombineAddRelu
|
| 10 |
+
- PatternHandlerCombineConvBN
|
| 11 |
+
- PatternHandlerCombineConvBNRelu
|
| 12 |
+
- PatternHandlerCombineConvRelu
|
| 13 |
+
- PatternHandlerCombineConvTransposeBN
|
| 14 |
+
- PatternHandlerCombineConvTransposeBNRelu
|
| 15 |
+
- PatternHandlerCombineConvTransposeRelu
|
| 16 |
+
- PatternHandlerCombineLinearRelu
|
| 17 |
+
- PatternHandlerCombineMulRelu
|
| 18 |
+
- PatternHandlerCommuteBNBeforeJoinOp
|
| 19 |
+
- PatternHandlerCommuteBNBeforeLinearOp
|
| 20 |
+
- PatternHandlerComposeErfFormulaIntoGelu
|
| 21 |
+
- PatternHandlerComposeTanhFormulaIntoGelu
|
| 22 |
+
- PatternHandlerDecomposeMaxDimKeepdimFalse
|
| 23 |
+
- PatternHandlerDecomposePReluToReluMath
|
| 24 |
+
- PatternHandlerFuseAffineInputToLinear
|
| 25 |
+
- PatternHandlerFuseBNToConv
|
| 26 |
+
- PatternHandlerFuseConsecutiveBatchNorm
|
| 27 |
+
- PatternHandlerFuseConsecutiveCast
|
| 28 |
+
- PatternHandlerFuseConsecutiveConcat
|
| 29 |
+
- PatternHandlerFuseConsecutiveIdempotent
|
| 30 |
+
- PatternHandlerFuseConsecutiveLogSoftmax
|
| 31 |
+
- PatternHandlerFuseConsecutiveReshapeTranspose
|
| 32 |
+
- PatternHandlerFuseConsecutiveSlice
|
| 33 |
+
- PatternHandlerFuseConsecutiveUnsqueeze
|
| 34 |
+
- PatternHandlerFuseConstantPath
|
| 35 |
+
- PatternHandlerFuseInputScaleToConv
|
| 36 |
+
- PatternHandlerFuseMathToConv
|
| 37 |
+
- PatternHandlerFuseMathToLinear
|
| 38 |
+
- PatternHandlerFusePadToConv
|
| 39 |
+
- PatternHandlerFusePadToPool
|
| 40 |
+
- PatternHandlerFuseReluPostfixToClamp
|
| 41 |
+
- PatternHandlerFuseReluPrefixToClamp
|
| 42 |
+
- PatternHandlerFuseMultiBranchReshapeTranspose
|
| 43 |
+
- PatternHandlerFuseQKV
|
| 44 |
+
- PatternHandlerFuseSplitConvConcat
|
| 45 |
+
- PatternHandlerFuseUnsqueezeToReduce
|
| 46 |
+
- PatternHandlerNormalizeSpatialMeanKeepdimFalse
|
| 47 |
+
- PatternHandlerRemoveGraphAssertsPass
|
| 48 |
+
- PatternHandlerRemoveBatchNormTracking
|
| 49 |
+
- PatternHandlerRemoveCommonSubexpression
|
| 50 |
+
- PatternHandlerRemoveDeadend
|
| 51 |
+
- PatternHandlerRemoveDisabledAutocastWrapper
|
| 52 |
+
- PatternHandlerRemoveDropout
|
| 53 |
+
- PatternHandlerRemoveMonotoneBeforeRanking
|
| 54 |
+
- PatternHandlerRemoveNoOpCast
|
| 55 |
+
- PatternHandlerRemoveNoOpConcat
|
| 56 |
+
- PatternHandlerRemoveNoOpExpand
|
| 57 |
+
- PatternHandlerRemoveNoOpFlatten
|
| 58 |
+
- PatternHandlerRemoveNoOpMath
|
| 59 |
+
- PatternHandlerRemoveNoOpPad
|
| 60 |
+
- PatternHandlerRemoveNoOpReshape
|
| 61 |
+
- PatternHandlerRemoveNoOpSlice
|
| 62 |
+
- PatternHandlerRemoveNoOpSplit
|
| 63 |
+
- PatternHandlerRemoveNoOpSqueeze
|
| 64 |
+
- PatternHandlerRemoveNoOpTranspose
|
| 65 |
+
- PatternHandlerRemovePositive
|
| 66 |
+
- PatternHandlerReplaceBatchNormWithConv
|
| 67 |
+
- PatternHandlerReplaceBitwiseRightShiftWithDiv
|
| 68 |
+
- PatternHandlerReplaceEinsumWithMatmul
|
| 69 |
+
- PatternHandlerReplaceGatherWithConv
|
| 70 |
+
- PatternHandlerReplaceGatherWithSliceReshape
|
| 71 |
+
- PatternHandlerReplaceInplaceAdd
|
| 72 |
+
- PatternHandlerReplaceInplaceHardswish
|
| 73 |
+
- PatternHandlerReplaceInplaceIndexPut
|
| 74 |
+
- PatternHandlerReplaceInplaceLeakyRelu
|
| 75 |
+
- PatternHandlerReplaceInplaceMul
|
| 76 |
+
- PatternHandlerReplaceInplaceRelu
|
| 77 |
+
- PatternHandlerReplaceInplaceSilu
|
| 78 |
+
- PatternHandlerReplaceMatmul2dWithLinear
|
| 79 |
+
- PatternHandlerReplaceMatmul3dWithLinear
|
| 80 |
+
- PatternHandlerReplaceMatmulWithLinear
|
| 81 |
+
graph_quantize[0]:
|
| 82 |
+
weight:
|
| 83 |
+
granularity: CHANNEL
|
| 84 |
+
calibration_method: MINMAX
|
| 85 |
+
activation:
|
| 86 |
+
granularity: TENSOR
|
| 87 |
+
calibration_method: MINMAX
|
| 88 |
+
calibration:
|
| 89 |
+
num_samples: 128
|
| 90 |
+
profile[0]:
|
| 91 |
+
num_executions: 10
|
| 92 |
+
timeout: 1800
|
| 93 |
+
evaluate[0]:
|
| 94 |
+
metrics:
|
| 95 |
+
ACCURACY: {}
|
np_recipe/run.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: '1.0'
|
| 2 |
+
steps:
|
| 3 |
+
- graph_optimize: null
|
| 4 |
+
- graph_quantize:
|
| 5 |
+
- scheme: W8-A8_dynamic
|
| 6 |
+
automatic_mixed_precision: null
|
| 7 |
+
profile:
|
| 8 |
+
- OUTPUT_MODEL
|
| 9 |
+
evaluate:
|
| 10 |
+
- model: OUTPUT_MODEL
|
| 11 |
+
metric:
|
| 12 |
+
- ACCURACY
|