You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am exporting Embedder to ONNX format. But the size of output model is so large(~7G) that I doubt there are many duplications of weights.
How to export Embedder correctly?
I am exporting Embedder to ONNX format. But the size of output model is so large(~7G) that I doubt there are many duplications of weights.
How to export Embedder correctly?
Code snippet:
model = Embedder(elmo_model_dir).get_model()[0]
torch.onnx.export(model, (w, c, masks), 'output_model.onnx', export_params=True, opset_version=12, do_constant_folding=True, input_names=['w', 'c', 'masks'], output_names=['logits'], use_external_data_format=True)
The text was updated successfully, but these errors were encountered: