alisha-1000 commented on issue #24334:
URL: https://github.com/apache/beam/issues/24334#issuecomment-7307934049

   Hi @damccorm, it looks like this is still open: 
run_inference_pytorch_tensorflow_sklearn.ipynb still uses 
HuggingFaceStripBatchingWrapper on master, and I don't see a PR for it since 
the last update. @smeet07, are you still working on this? If not, I'd like to 
pick it up.
   
   Plan: drop the wrapper, use DistilBertForSequenceClassification directly, 
and pass a custom inference_fn to the PyTorch keyed model handler that 
unbatches the model output into per-element PredictionResults, as suggested 
above.
   
   I also noticed the same wrapper in 
sdks/python/apache_beam/examples/inference/runinference_metrics/. I can update 
that in the same PR or a separate one, whichever you prefer.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to