tokenizers icon indicating copy to clipboard operation
tokenizers copied to clipboard

Update outdated dependencies and feature-gate CLI

Open MarcusGrass opened this issue 3 years ago • 3 comments

Making the library a bit more up to date with common dependencies. Unsure whether special testing is required for the cli.

Added a feature-gate to cli but kept it as default. This allows someone only using the library who doesn't wish to use the binary at all to opt out using default-features = false

Also put dirs behind the feature gate http, as it's only used hogether with cached_path in the from_pretrained-flow

MarcusGrass avatar Mar 21 '22 11:03 MarcusGrass

Hi Thanks for this PR.

Do you mind splitting the feature gates from the dependencies update in separate PRs ?

It's much easier for me to add the cli-feature gate as I understand the implications more easily.

For dependency updates, we need to run a full chain of tests (in transformers to make sure nothing is broken there). This typically is done before any release too, but for dependency updates I would also do it before merging on master as it's easier then to figure out what dependency might be breaking things.

Narsil avatar Mar 21 '22 18:03 Narsil

Hi Thanks for this PR.

Do you mind splitting the feature gates from the dependencies update in separate PRs ?

It's much easier for me to add the cli-feature gate as I understand the implications more easily.

For dependency updates, we need to run a full chain of tests (in transformers to make sure nothing is broken there). This typically is done before any release too, but for dependency updates I would also do it before merging on master as it's easier then to figure out what dependency might be breaking things.

No problem, I did leave the dirs feature gating in since it's only used in a single place in the codebase, which is already behind an existing feature gate. That PR is here https://github.com/huggingface/tokenizers/pull/960

MarcusGrass avatar Mar 22 '22 08:03 MarcusGrass

Thanks you for changing the PR !

Narsil avatar Mar 22 '22 10:03 Narsil