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

[Bug]: Reshape throw bus error (Core Dumped) on ardiffnlp/twitter-roberta-base-sentiment #27817

Open
3 tasks done
dangokuson opened this issue Nov 29, 2024 · 2 comments
Open
3 tasks done
Assignees
Labels
bug Something isn't working support_request

Comments

@dangokuson
Copy link

OpenVINO Version

2023.3.0

Operating System

Other (Please specify in description)

Device used for inference

GPU

Framework

PyTorch

Model used

cardiffnlp/twitter-roberta-base-sentiment

Issue description

Reshape throw bus error (Core Dumped).

Step-by-step reproduction

I am using OpenVINO version 2023.3.0.
However, it throws an exception while I am trying to save the model:

def save_model_as_ir(model: Model, network_file_name: str, output_dir: Path):
    result_path = output_dir / network_file_name
    output_dir.mkdir(exist_ok=True)
    xml_path = f'{result_path}.xml'.encode('UTF-8')
    bin_path = f'{result_path}.bin'.encode('UTF-8')

    pass_manager = Manager()
    pass_manager.register_pass(Serialize(xml_path, bin_path))
    pass_manager.run_passes(model)

But, it works as well if I change OpenVINO to version 2022.3.0

Relevant log output

No response

Issue submission checklist

  • I'm reporting an issue. It's not a question.
  • I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.
  • There is reproducer code and related data files such as images, videos, models, etc.
@dangokuson dangokuson added bug Something isn't working support_request labels Nov 29, 2024
@ilya-lavrenov ilya-lavrenov changed the title [Bug]: [Bug]: Reshape throw bus error (Core Dumped) on ardiffnlp/twitter-roberta-base-sentiment Nov 29, 2024
@dangokuson
Copy link
Author

Are there any solutions to solve this problem? The stranger is, it works as well if I change OpenVINO to version 2022.3.0

@praasz
Copy link
Contributor

praasz commented Dec 4, 2024

xml_path = f'{result_path}.xml'.encode('UTF-8')
bin_path = f'{result_path}.bin'.encode('UTF-8')

Thank you for reporting the issue.
Could you provide full python example how model is read and write to OpenVINO IR for both versions?
It would be easier to same issue.
I've tried write mentioned model to xml and it worked for me so probably I'm doing something differently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working support_request
Projects
None yet
Development

No branches or pull requests

2 participants