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

Unable to launch single kernel for bge-rerank-base model #3

Open
lixiaoqi-LXQ opened this issue Dec 23, 2024 · 1 comment
Open

Unable to launch single kernel for bge-rerank-base model #3

lixiaoqi-LXQ opened this issue Dec 23, 2024 · 1 comment

Comments

@lixiaoqi-LXQ
Copy link

lixiaoqi-LXQ commented Dec 23, 2024

Issue Description

Hi, I am trying to use MonoNN with bge-rerank-base model, but it doesn’t seem to take effect, my profiling result shows below.

I have tested MonoNN with the bert_base model following the provided example, and it works fine.

Steps to Reproduce

  1. set up the environment for MonoNN
  2. download the bge-rerank-base model
  3. convert the onnx model to tensroflw .pb format:
    1. pip install onnx-tf==1.10.0
    2. onnx-tf convert -i BAAI/bge-reranker-base/onnx/model.onnx -o bge-reranker-base-tf
  4. obtain the frozen graph following the instructions
  5. the minimal code snippet can be found here.

Environment

  • Driver Version: 555.42.06
  • CUDA Version: 11.6
  • OS: Ubuntu 20.04.6

Thanks in advance for your help!

@lixiaoqi-LXQ
Copy link
Author

I’ve added a screenshot of the output from running the code snippet:
image
I’m not sure if the final line is the key issue. From my observations, it seems like MonoNN is not entering the key optimization phase and exits early. Could this be the root cause?

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