We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To Author: After I converted my model to onnx, how can I use haystack Elasticsearch to do the inference? Or currently haystack does not support?
Jonathan Sung
The text was updated successfully, but these errors were encountered:
Hey @laifuchicago ,
not yet, but we are on it :) Should be available within the next sprint.
Sorry, something went wrong.
Depends on deepset-ai/FARM#539
Hi @laifuchicago, with #438, you can use convert & use ONNX models for BERT, RoBERTa & XLM-RoBERTa.
Here's a sample code snippet to convert RoBERTa to ONNX format and create a FARMReader instance:
from haystack.reader.farm import FARMReader from pathlib import Path onnx_model_path = Path("roberta-onnx-model") FARMReader.convert_to_onnx(model_name="deepset/roberta-base-squad2", output_path=onnx_model_path) reader = FARMReader(onnx_model_path)
tanaysoni
No branches or pull requests
To Author:
After I converted my model to onnx, how can I use haystack Elasticsearch to do the inference? Or currently haystack does not support?
Jonathan Sung
The text was updated successfully, but these errors were encountered: