Batch Tansform and API token for private model
Hi.I used the notebooklab2_batch_transform.ipynbof@philschmidto launch batch for inferences.The model I used in inprivate modein the HF model hub.I do not see in the following code from the notebook which argument to use in order to pass theAPI_TOKEN:from sagemaker.huggingface.model import HuggingFaceModel

# Hub Model configuration. <https://huggingface.co/models>
hub = {
    'HF_MODEL_ID':model_checkpoint,
    'HF_TASK':'text2text-generation'   
}Who knows the answer? Thanks.
2021-12-13T18:52:14Z
I just found the answer in github atEnvironment variables:HF_API_TOKENfrom sagemaker.huggingface.model import HuggingFaceModel

# Hub Model configuration. <https://huggingface.co/models>
hub = {
    'HF_MODEL_ID':model_checkpoint,
    'HF_TASK':'text2text-generation',
    'HF_API_TOKEN':API_TOKEN
}