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

M2_Encoder python run.py output TypeError: parse_dict() got an unexpected keyword argument 'allow_extra_keys' #11

Closed
smtrnd opened this issue May 2, 2024 · 3 comments

Comments

@smtrnd
Copy link

smtrnd commented May 2, 2024

Traceback (most recent call last):
File "run.py", line 16, in
encoder.warmup_local_model()
File "/root/anaconda3/envs/m2-encoder/lib/python3.8/site-packages/nn4k/invoker/base.py", line 191, in warmup_local_mod
el
model_args, *_ = parser.parse_dict(self.init_args, allow_extra_keys=True)
TypeError: parse_dict() got an unexpected keyword argument 'allow_extra_keys'

@smtrnd
Copy link
Author

smtrnd commented May 2, 2024

run:
conda install conda-forge::transformers
pip install chardet
output AssertionError: either nn_name or nn_model_path has to be provided When running M2-Encode
image

@xinglzlz
Copy link

xinglzlz commented May 6, 2024

same issue

@HanxiaoZhang
Copy link
Collaborator

@smtrnd @xinglzlz This issue can be resolved by installing a specific version using the command: pip install openspg-nn4k==0.0.2b3. We have already fixed it. https://github.com/alipay/Ant-Multi-Modal-Framework/blob/a6b512902b0e4d4721886e8751b8dcd5721f18d5/prj/M2_Encoder/requirements.txt#L24

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

3 participants