Batch transform inference job - downloading model from the Hugging Face Hub on start up
I try to rungithub.comhuggingface/notebooks/blob/master/sagemaker/12_batch_transform_inference/sagemaker-notebook.ipynb{
 "cells": [
  {
   "cell_type": "markdown",
   "source": [
    "# Huggingface Sagemaker-sdk - Run a batch transform inference job with 🤗 Transformers\n"
   ],
   "metadata": {}
  },
  {
   "cell_type": "markdown",
   "source": [
    "1. [Introduction](#Introduction)  \n",
    "2. [Run Batch Transform after training a model](#Run-Batch-Transform-after-training-a-model)  \n",
    "3. [Run Batch Transform Inference Job with a fine-tuned model using `jsonl`](#Run-Batch-Transform-Inference-Job-with-a-fine-tuned-model-using-jsonl)   \n",
    "\n",
    "Welcome to this getting started guide, we will use the new Hugging Face Inference DLCs and Amazon SageMaker Python SDK to deploy two transformer model for inference. \n",
    "In the first example we deploy a trained Hugging Face Transformer model on to SageMaker for inference.\n",
    "In the second example we directly deploy one of the 10 000+ Hugging Face Transformers from the [Hub](https://huggingface.co/models) to Amazon SageMaker for Inference.<"
   ],This file has been truncated.show originalHowever I get this error:requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: [https://huggingface.co/api/models/cardiffnlp/twitter-roberta-base-sentiment]It looks like an instance created by AWS SageMaker (client) is not allowed to download the model. Something specific I need to add in the role I use with AWS Sagemaker?or there is an issue with a token inmodel_info = _api.model_info(repo_id=model_id, revision=revision, token=use_auth_token)Thanks,Kate
2021-10-12T12:19:55Z
I rerun the notebook:notebooks/sagemaker/12_batch_transform_inference at master · huggingface/notebooks · GitHuband for me it worked. Can you please test again.
2021-10-12T16:35:24Z
I did with the same result.Well, I started it from my own local environment with installed all need packages. (I run a lot of different kind SageMaker related code from my local environment and it worked.)What I did not try is to run from Sage Maker Studio.