question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TF_SIGNATURE_DEF is not used when selected on service startup

See original GitHub issue

Description Context: Trying to load a tensorflow saved model which has multiple signature definitions.

Problem: The signature definition selected is not used. This happens randomly, when loading the container multiple times different signature definitions will be used even If TF_SIGNATURE_DEF has been set.

I see the log messages below when this happens.

2022-08-10 14:46:32.003735: W triton/tensorflow_backend_tf.cc:998] unable to find serving signature 'serving_default
2022-08-10 14:46:32.003743: W triton/tensorflow_backend_tf.cc:1000] using signature 'random_sig_def'

From looking at the code it seems like it falls into this section and chooses a signature def at random? But as I set the signature def in the config file id expect that block of code not to be executed?

Triton Information Triton version: 22.07-py3

This is the triton docker container.

To Reproduce I load in a model which has multiple signature definitions, this model has three.

I created a config.pbtxt which looks like the following, I played around with this config for a while I added all the relevant inputs and outputs to but the same outcome.

platform: "tensorflow_savedmodel"  
parameters: {
key: "TF_SIGNATURE_DEF"
value: {
  string_value: "sig_def_one"
  }
}

The model is a tensorflow saved model which has three signature definitions of which all have different inputs and outputs. (I can’t provide the model here). When I run saved_model_cli show --dir ./model --tag_set serve I am able to see all sigature definition.

Expected behavior

I’d expect TF_SIGNATURE_DEF to be used when loading the models.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jbkyang-nvicommented, Aug 23, 2022

Hi @ShamariYoti it looks like it’s a bug on our end. Thanks for reporting! In the meantime, you can try to run with --disable-auto-complete-config to fix your issue

0reactions
ShamariYoticommented, Aug 24, 2022

@jbkyang-nvi

Thanks I will give this a try, do you have a time frame on when this bug will be fixed and released?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found