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.

Option for adding or overriding model config attributes at server startup

See original GitHub issue

Is your feature request related to a problem? Please describe. When using Triton server in a deployment with variable hardware configurations (CPU-only for some environments, using GPUs for others) and models stored in S3, we might have to create multiple copies of the model repository just to have multiple versions of the configuration file for each, where we can configure the hardware we want to use for each deployment.

Describe the solution you’d like It would be very helpful to have a config override flag like this:

tritonserver --model-store=s3://my-bucket/my-model-repository --config-override=/mnt/config.pbtxt

This way, I can put most attributes such as the model platform and the inputs/outputs in the config.pbtxt stored in S3, then put attributes such as the instance groups and batch size configuration in the config.pbtxt provided to the server at deployment time.

Describe alternatives you’ve considered Alternative solutions I’ve considered include:

  • Adding a custom rclone command to load the models from S3 then overwrite the config attributes before running the server and pointing to the model repository that’s now available locally
  • Having multiple copies of the model (and the configuration alongside it), but this is far from an ideal solution to be honest

Additional context I’m targeting a Kubernetes deployment where the Triton server is deployed using a custom Helm chart. It’s common practice to provide hardware requirements when deploying the chart, and with it, I’m hoping to also pass attributes such as instance_group and have them reflected in my deployment 😃

Thank you!

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
dyastremskycommented, Jun 21, 2022

Thank you for your detailed ticket, Ashraf. I filed an enhancement request for this.

2reactions
dyastremskycommented, Jun 30, 2022

No updates. I’ve pinged those leading prioritization and mentioned your urgency. Keep in mind that there’s not time to get this in for 22.07, so it would be included in 22.08 at the earliest. (Of course, the repo is public, so you’d be welcome to build with the PR yourself, if/once this feature is merged.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overriding config in application.properties - Stack Overflow
I Tried to override the properties in application.properties using environment variables but this did not work either. For example the server.
Read more >
21. Externalized Configuration - Spring
Spring Boot uses a very particular PropertySource order that is designed to allow sensible overriding of values, properties are considered in the the...
Read more >
Configuration in ASP.NET Core - Microsoft Learn
NET Core apps configure and launch a host. The host is responsible for ... Bind hierarchical configuration data using the options pattern.
Read more >
Java agent configuration: Config file | New Relic Documentation
These options are set in the process_host stanza and can be overridden by using a newrelic.config.process_host prefixed system property. These properties are ...
Read more >
5 Server Templates - Oracle Help Center
Overriding Attributes · If you do not define an attribute in the individual server configuration or in the server template, then the default...
Read more >

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