airaria / TextPruner

A PyTorch-based model pruning toolkit for pre-trained language models
https://textpruner.readthedocs.io
Apache License 2.0
369 stars 33 forks source link

The Pipeline pruning example is not working #13

Closed stevenkolawole closed 1 year ago

stevenkolawole commented 1 year ago

Hello, I tried running the pruning example at examples/pipeline_pruning/pipeline_pruning.py. I am not sure if I am doing anything wrong but I kept running into this error;


[<ipython-input-4-f2fc107629ed>](https://localhost:8080/#) in <module>
     12 sys.path.append("/content/TextPruner/examples")
     13 
---> 14 from classification_utils.dataloader_script import dataloader#, MultilingualNLIDataset
     15 from classification_utils.predict_function import predict

4 frames
[/usr/local/lib/python3.8/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
    164 
    165     if repo_id.count("/") > 1:
--> 166         raise HFValidationError(
    167             "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
    168             f" '{repo_id}'. Use `repo_type` argument if needed."

HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '../models/xlmr_pawsx'. Use `repo_type` argument if needed.```
airaria commented 1 year ago

Have you put required files in ../models/xlmr_pawsx? See https://github.com/airaria/TextPruner/tree/main/examples/models/xlmr_pawsx

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.