Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing pytorch_model.bin file #13

Open
clemEssien opened this issue Aug 20, 2021 · 0 comments
Open

Missing pytorch_model.bin file #13

clemEssien opened this issue Aug 20, 2021 · 0 comments

Comments

@clemEssien
Copy link
Owner

The following occurs on git when a PR is created

openapi_server/test/test_text_person_name_annotation_controller.py:37: 
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
  .tox/py38/lib/python3.8/site-packages/flask_testing/utils.py:341: in assert200
      self.assertStatus(response, 200, message)
  .tox/py38/lib/python3.8/site-packages/flask_testing/utils.py:329: in assertStatus
      self.assertEqual(response.status_code, status_code, message)
  E   AssertionError: 500 != 200 : Response body is : {
  E     "detail": "Error no file named ['pytorch_model.bin', 'tf_model.h5', 'model.ckpt.index', 'flax_model.msgpack'] found in directory ./dslim-bert/model or `from_tf` and `from_flax` set to False.",
  E     "status": 500,
  E     "title": "Internal error"
  E   }
  ----------------------------- Captured stdout call -----------------------------
  Error no file named ['pytorch_model.bin', 'tf_model.h5', 'model.ckpt.index', 'flax_model.msgpack'] found in directory ./dslim-bert/model or `from_tf` and `from_flax` set to False.
  __ TestTextLocationAnnotationController.test_create_text_location_annotations __
  

Problem description

The pytorch_model.bin should be placed in the directory dslim-bert/model. So there is a command in DockerFile to download this file and move it into this directory i.e.

RUN mkdir dslim-bert/model \
    && mkdir dslim-bert/tokenizer \
    && curl -O https://huggingface.co/dslim/bert-base-NER/blob/main/pytorch_model.bin \
    && mv pytorch_model.bin dslim-bert/model \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant