serve icon indicating copy to clipboard operation
serve copied to clipboard

Incorrect docs for --model-store option

Open fbbradheintz opened this issue 6 years ago • 6 comments

Docs for the torchserve command line at https://github.com/pytorch/serve/blob/master/docs/server.md make the claim:

model-store: optional, A location where models are stored by default, all models in this location are loaded, the model name is same as archive or folder name.

This is in reference to the --model-store argument. This is incorrect; if it were true, I should be able to call torchserve --start --model-store model_store (where I have multiple models in the folder model_store) and get endpoints - but I get only 404s when trying to call them.

fbbradheintz avatar Feb 12 '20 22:02 fbbradheintz

@fbbradheintz We are working on checkpoint/restart APIs. As of current implementation, these models have to be registered explicitly, each. Impl of Checkpoint/Restart will give us this functionality in effect.

mycpuorg avatar Feb 19 '20 03:02 mycpuorg

@fbbradheintz can you please look into PR https://github.com/pytorch/serve/pull/27 ? Thanks.

mycpuorg avatar Feb 20 '20 03:02 mycpuorg

I added a comment to one doc change that wasn't clear to me

fbbradheintz avatar Feb 22 '20 00:02 fbbradheintz

Marked as a launch blocker because this is an important option, for which we should provide correct documentation.

fbbradheintz avatar Feb 27 '20 00:02 fbbradheintz

@fbbradheintz Updated the documentation with more examples and details. Could you please look into #27 .

harshbafna avatar Feb 27 '20 09:02 harshbafna

This looks great, and works as documented. Please merge when ready.

fbbradheintz avatar Feb 28 '20 23:02 fbbradheintz