I’ve been following the optimum README example trying to get optimum to work with a LongFormer model.
However, I hit this error message when loading the model into an NER pipeline:
ValueError: Model requires 3 inputs. Input Feed contains 2
I believe there’s one required input (
input_ids) and two optional ones (
The tokenize outputs
attention_mask, but not
How do I get around this? Is there a way for ONNX to recognize optional inputs, or to remove this expected input?