Giter VIP home page Giter VIP logo

Comments (3)

mycpuorg avatar mycpuorg commented on May 14, 2024

Got it. Fallback to config properties when command line specifies incorrect properties.

IOW, this can be regarded as a "user override config failure". As in, user tried to override the config properties and passed incorrect configs. I'd argue that this is not a launch blocker, in fact, I would argue this is not a bug but requires a better error message.

from serve.

harshbafna avatar harshbafna commented on May 14, 2024

#68 should fix this.

from serve.

fbbradheintz avatar fbbradheintz commented on May 14, 2024

With the line model_store=model_store in the config file, and my model archive in the model_store folder, all of the following work:

torchserve --start --ts-config config.properties
torchserve --start --ts-config config.properties --model-store model_store
torchserve --start --ts-config config.properties --model-store model_store --models d161good=d161good.mar
torchserve --start --ts-config config.properties --models d161good=d161good.mar

With the same config and my model in the folder model_stash, the following work:

torchserve --start --ts-config config.properties
torchserve --start --ts-config config.properties --model-store model_stash
torchserve --start --ts-config config.properties --model-store model_stash --models d161good=d161good.mar

Under those conditions, the following starts the server but fails to start workers (which is expected, because it is looking in the wrong folder for the model):

torchserve --start --ts-config config.properties --models d161good=d161good.mar

This looks good - I'm merging. (I verified that the branch rebases onto master cleanly.)

from serve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.