Thanks @philschmid.
I did succeed in using run_ner.py in a AWS SageMaker notebook instance 
Now, how to use predictor.predict() with arguments I can use in pipeline()? For example, I would like to use grouped_entities=True. In pipeline(), I do:
nlp = pipeline("ner", grouped_entities=True)
In predictor.predict()?