Skip to content

Running tests locally fail #491

Closed
@sroussey

Description

@sroussey

Question

When I git clone to my Mac, and run tests, I get a lot of errors:

  ● Models › Loading different architecture types › gpt2 (GPT2Model)

    Could not locate file: "https://huggingface.co/gpt2/resolve/main/tokenizer_config.json".

      239 |
      240 |     const message = ERROR_MAPPING[status] ?? `Error (${status}) occurred while trying to load file`;
    > 241 |     throw Error(`${message}: "${remoteURL}".`);
          |           ^
      242 | }
      243 |
      244 | class FileCache {

      at handleError (src/utils/hub.js:241:11)
      at getModelFile (src/utils/hub.js:474:24)
      at getModelJSON (src/utils/hub.js:575:18)
          at async Promise.all (index 1)
      at loadTokenizer (src/tokenizers.js:61:16)
      at Function.from_pretrained (src/tokenizers.js:2465:20)
      at Object.<anonymous> (tests/models.test.js:61:37)

And indeed, a lot of files don't actually exist, like in this case:

https://huggingface.co/gpt2/resolve/main/tokenizer_config.json

But I don't see this in the logs for your github actions, so i am confused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions