NVIDIA-Merlin / NVIDIA-Merlin/Transformers4Rec

[BUG] mypy checking is failing for latest HF transformers dependency (4.19.1)

Open
#417 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P1
Dominant language
Python
Stars
1.3k
Forks
165
Avg merge
1m
Merged PRs (30d)
2

Description

Bug description

mypy checking is failing when installing latest HF transformers (4.19.1)

Steps/Code to reproduce bug
  • Install latest HF transformers
  • run the following command:
    mypy transformers4rec --install-types --non-interactive --no-strict-optional --ignore-missing-imports

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by installing Hugging Face transformers 4.19.1 and running the reported mypy command against transformers4rec. Use the resulting diagnostics to locate the affected type checks and determine the compatible change. Done means the command completes without mypy failures under the stated options.

Written by the indexing model from the issue text.

Assessment

Tech stack
huggingface, python
Domain
testing-qa, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.