Skip to content

Conversation

ArjunPimpale
Copy link

What does this PR do?

Fixes the feature update mentioned in #41731

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).

  • Did you read the contributor guideline,
    Pull Request section?

  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.

  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.

  • Did you write any new necessary tests?

Who can review?

@Wauplin

As discussed in #41731

@ArjunPimpale
Copy link
Author

ArjunPimpale commented Oct 21, 2025

Willing to update the docs as well like mentioned at #41731 once #41459 is merged.

@Wauplin
Copy link
Contributor

Wauplin commented Oct 21, 2025

Thanks @ArjunPimpale ! Sorry didn't have the time to try the CLI myself. Is

echo -e "Plants create [MASK] through a process known as photosynthesis." | transformers run --task fill-mask --model google-bert/bert-base-uncased --device 0

working as expected now? :)

@ArjunPimpale
Copy link
Author

ArjunPimpale commented Oct 21, 2025

Thanks @ArjunPimpale ! Sorry didn't have the time to try the CLI myself. Is

echo -e "Plants create [MASK] through a process known as photosynthesis." | transformers run --task fill-mask --model google-bert/bert-base-uncased --device 0

working as expected now? :)

Yup it works perfectly but this is not the command , let me explain. I noticed that the --task flag is not listed in the transformers run --help output, which likely means it has been deprecated and no longer functions as expected (likely due to #41487).

Running the command without the --task flag works correctly, for example:

echo -e "Plants create [MASK] through a process known as photosynthesis." | transformers run fill-mask --model google-bert/bert-base-uncased --device 0

Output:-
image

Which looks good to me. ( works in my branch which I tried to pr)

This is why I originally raised the issue as a documentation bug — since the --task flag is still mentioned in several places, it may need to be updated or removed for consistency.

Hope this clarifies things :)
thanks

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

Successfully merging this pull request may close these issues.

2 participants