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.

no-archive model cannot be loaded

See original GitHub issue

Context

  • torchserve version: 0.2.0
  • torch version: 1.6.0
  • java version: 11.0.9
  • Operating System and version: GNU/Linux

Your Environment

  • Installed using source? [no]:
  • Are you planning to deploy it using docker container? [no]:
  • Is it a CPU or GPU environment?: GPU
  • Using a default/custom handler? [custom]:
  • What kind of model is it e.g. vision, text, audio?: text
  • Are you planning to use local models from model-store or public url being used e.g. from S3 bucket etc.? [If public url then provide link.]: local

Expected Behavior

No archive model should be able to be loaded

Current Behavior

Model not found error when loading a no-archive model

Steps to Reproduce

  1. Create a no-archive version of the model using model-archiver

    torch-model-archiver --model-name "BartQgen" --version 1.0 --serialized-file models/sqgen/pytorch_model.bin --handler sqgen/handler.py --extra-files "models/sqgen/config.json,models/sqgen/special_tokens_map.json,models/sqgen/tokenizer_config.json,models/sqgen/vocab.json,models/sqgen/merges.txt" --archive-format no-archive --export-path model_store

  2. Try to load it using torchserve: torchserve --start --model-store model_store --models sqgen=BartQgen --no-config-snapshots

Failure Logs [if any]

2020-10-09 20:12:08,346 [INFO ] main org.pytorch.serve.ModelServer - Loading initial models: BartQgen
2020-10-09 20:12:08,348 [WARN ] main org.pytorch.serve.ModelServer - Failed to load model: BartQgen
org.pytorch.serve.archive.ModelNotFoundException: Model not found at: BartQgen
        at org.pytorch.serve.archive.ModelArchive.downloadModel(ModelArchive.java:84)
        at org.pytorch.serve.wlm.ModelManager.createModelArchive(ModelManager.java:137)
        at org.pytorch.serve.wlm.ModelManager.registerModel(ModelManager.java:115)
        at org.pytorch.serve.ModelServer.initModelStore(ModelServer.java:213)
        at org.pytorch.serve.ModelServer.start(ModelServer.java:308)
        at org.pytorch.serve.ModelServer.startAndWait(ModelServer.java:104)
        at org.pytorch.serve.ModelServer.main(ModelServer.java:85)

I also tried providing the absolute path to the model. That doesn’t work either.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
reubenwenischcommented, Oct 18, 2020

Can you try and comment on what you get torchserve --start --model-store model_store --models sqgen=BartQgen.mar --no-config-snapshots

0reactions
Ark-kuncommented, Mar 6, 2021

The change breaks the error reporting. It’s very confusing when the system tells you that file does not exist even though it clearly does.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Re: cannot load model when using directquery
Hi,. I am trying to connect with oracle database with direct query but getting followng error. pls guide how to fix it. previously...
Read more >
What is ARCHIVE-LOG and NO-ARCHIVE-LOG mode in ...
ARCHIVELOG mode is a mode that you can put the database in for creating a backup of all transactions that have occurred in...
Read more >
Robots Meta Tags Specifications | Google Search Central
Learn how to add robots meta tags and read how page and text-level settings can be used to adjust how Google presents your...
Read more >
12 Conventional and Direct Path Loads - Oracle Help Center
Therefore, no time is required to log the load when: Oracle Database has the SQL NOARCHIVELOG parameter enabled. The SQL*Loader UNRECOVERABLE clause is...
Read more >
Arguments - Rocket Software Documentation
Controlling the Load Order of JavaScript and CSS ... Model refers to input field FieldName, which is not found in the entity descriptor...
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