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

TypeError: cached_path() got an unexpected keyword argument 'proxies' #1532

Open
MSaqibShah opened this issue Jun 14, 2023 · 0 comments
Open

Comments

@MSaqibShah
Copy link

Describe the bug
When running the train_model function from the ConvAIModel class, a TypeError is raised in the load_and_cache_examples method of the ConvAIModel class. Specifically, the get_dataset function in the conv_ai_utils.py module is calling the cached_path function with an unexpected keyword argument 'proxies'.

To Reproduce
Steps to reproduce the behavior:

Run the script train.py with the ConvAIModel class.
Provide a dataset file as an argument to the train_model function.
Expected behavior
The load_and_cache_examples method should successfully load and cache the examples from the dataset file without raising a TypeError.

Screenshots
N/A

Desktop (please complete the following information):

OS: Windows 11
Python Versions tried: 3.8 and 3.11.4
cached-path version: 1.3.4
simpletransformers version: 0.63.11

Additional context
This issue occurs in the following file and line numbers:

File: conv_ai_model.py
Line: 261
Method: train_model

Additionally, the error originates from the following file and line numbers:
File: conv_ai_utils.py
Line: 72
Function: get_dataset
The issue seems to be related to the cached_path function in the transformers package, which is called with an unexpected keyword argument 'proxies'.

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

1 participant