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

Cannot run with or without installing transformer. #11

Open
KevinHooah opened this issue Jun 9, 2023 · 1 comment
Open

Cannot run with or without installing transformer. #11

KevinHooah opened this issue Jun 9, 2023 · 1 comment

Comments

@KevinHooah
Copy link

Hi, I found I cannot run the learned token pruning whether I install the transformers or not.

If I install transformer, it will raise the error of ValueError: Some specified arguments are not used by the HfArgumentParser: ['--masking_mode', 'soft', '--weight_decay_threshold', '0.0', '--lambda_threshold', '0.1', '--temperature', '0.0001']. I think it is because these arguments are customized in src/transformers.

If I go with an environment which doesn't install the transformer, it will have ModuleNotFoundError: No module named 'transformers'. It simply cannot import from /src .

If I force the code of run_glue_ltp with sys.path.insert(1, './src/'). It will have the error of pkg_resources.DistributionNotFound: The 'sacremoses' distribution was not found and is required by this application .

Can you tell me how to run the code properly? Thanks.

@WPS852
Copy link

WPS852 commented Apr 22, 2024

the same...

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

2 participants