forked from triton-inference-server/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ensemble check in requiring multiple versions of the same model c…
…ase (triton-inference-server#595) * Fix ensemble check in requiring multiple versions of the same model * Improve error message and remoe redundant code * Add corresponding test in L0_model_config * Deploy identity model on CPU
- Loading branch information
Showing
12 changed files
with
326 additions
and
13 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
qa/L0_model_config/autofill_noplatform/ensemble/no_required_version/expected
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ensemble 'no_required_version' depends on 'simple' whose required version 2 is not loaded |
51 changes: 51 additions & 0 deletions
51
..._config/autofill_noplatform/ensemble/no_required_version/no_required_version/config.pbtxt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: "no_required_version" | ||
platform: "ensemble" | ||
max_batch_size: 8 | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
ensemble_scheduling { | ||
step [ | ||
{ | ||
model_name: "simple" | ||
model_version: 2 | ||
input_map { | ||
key: "INPUT0" | ||
value: "INPUT0" | ||
} | ||
input_map { | ||
key: "INPUT1" | ||
value: "INPUT1" | ||
} | ||
output_map { | ||
key: "OUTPUT0" | ||
value: "OUTPUT0" | ||
} | ||
output_map { | ||
key: "OUTPUT1" | ||
value: "OUTPUT1" | ||
} | ||
} | ||
] | ||
} |
33 changes: 33 additions & 0 deletions
33
qa/L0_model_config/autofill_noplatform/ensemble/no_required_version/simple/config.pbtxt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "simple" | ||
platform: "custom" | ||
max_batch_size: 8 | ||
version_policy : { all {} } | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
instance_group [ | ||
{ | ||
kind: KIND_CPU | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
qa/L0_model_config/autofill_noplatform/ensemble/no_required_version_2/expected
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ensemble 'no_required_version_2' depends on 'simple' whose required version 2 is not loaded |
71 changes: 71 additions & 0 deletions
71
...fig/autofill_noplatform/ensemble/no_required_version_2/no_required_version_2/config.pbtxt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: "no_required_version_2" | ||
platform: "ensemble" | ||
max_batch_size: 8 | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
ensemble_scheduling { | ||
step [ | ||
{ | ||
model_name: "simple" | ||
model_version: -1 | ||
input_map { | ||
key: "INPUT0" | ||
value: "INPUT0" | ||
} | ||
input_map { | ||
key: "INPUT1" | ||
value: "INPUT1" | ||
} | ||
output_map { | ||
key: "OUTPUT0" | ||
value: "temp0" | ||
} | ||
output_map { | ||
key: "OUTPUT1" | ||
value: "temp1" | ||
} | ||
}, | ||
{ | ||
model_name: "simple" | ||
model_version: 2 | ||
input_map { | ||
key: "INPUT0" | ||
value: "temp0" | ||
} | ||
input_map { | ||
key: "INPUT1" | ||
value: "temp1" | ||
} | ||
output_map { | ||
key: "OUTPUT0" | ||
value: "OUTPUT0" | ||
} | ||
output_map { | ||
key: "OUTPUT1" | ||
value: "OUTPUT1" | ||
} | ||
} | ||
] | ||
} |
33 changes: 33 additions & 0 deletions
33
qa/L0_model_config/autofill_noplatform/ensemble/no_required_version_2/simple/config.pbtxt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "simple" | ||
platform: "custom" | ||
max_batch_size: 8 | ||
version_policy : { all {} } | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
instance_group [ | ||
{ | ||
kind: KIND_CPU | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
qa/L0_model_config/autofill_noplatform/ensemble/no_required_version_3/expected
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ensemble 'no_required_version_3' depends on 'simple' whose required version 2 is not loaded |
71 changes: 71 additions & 0 deletions
71
...fig/autofill_noplatform/ensemble/no_required_version_3/no_required_version_3/config.pbtxt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: "no_required_version_3" | ||
platform: "ensemble" | ||
max_batch_size: 8 | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
ensemble_scheduling { | ||
step [ | ||
{ | ||
model_name: "simple" | ||
model_version: 2 | ||
input_map { | ||
key: "INPUT0" | ||
value: "INPUT0" | ||
} | ||
input_map { | ||
key: "INPUT1" | ||
value: "INPUT1" | ||
} | ||
output_map { | ||
key: "OUTPUT0" | ||
value: "temp0" | ||
} | ||
output_map { | ||
key: "OUTPUT1" | ||
value: "temp1" | ||
} | ||
}, | ||
{ | ||
model_name: "simple" | ||
model_version: -1 | ||
input_map { | ||
key: "INPUT0" | ||
value: "temp0" | ||
} | ||
input_map { | ||
key: "INPUT1" | ||
value: "temp1" | ||
} | ||
output_map { | ||
key: "OUTPUT0" | ||
value: "OUTPUT0" | ||
} | ||
output_map { | ||
key: "OUTPUT1" | ||
value: "OUTPUT1" | ||
} | ||
} | ||
] | ||
} |
33 changes: 33 additions & 0 deletions
33
qa/L0_model_config/autofill_noplatform/ensemble/no_required_version_3/simple/config.pbtxt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "simple" | ||
platform: "custom" | ||
max_batch_size: 8 | ||
version_policy : { all {} } | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
instance_group [ | ||
{ | ||
kind: KIND_CPU | ||
} | ||
] |
This file contains 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
This file contains 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
This file contains 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