HF to AWS SageMaker config.json is missing

#8
by emfhal - opened

Hi Meta Research, Seems like https://huggingface.co/facebook/seamless-m4t-medium repo is missing a config.json file. I am unable to use the model without this file, and I believe other users may be experiencing the same issue.

Input/code:

import requests
import json

url = "https://runtime.sagemaker.us-east-1.amazonaws.com/endpoints/xxx-t2tt/invocations"

payload = json.dumps({
"inputs": "This is a sentence in English.",
"task": "t2tt",
"tgt_lang": "fr",
"src_lang": "en"
})
headers = {
'X-Amzn-SageMaker-Custom-Attributes': 'accept_eula=true',
'Content-Type': 'application/json',
'X-Amz-Content-Sha256': xxx,
'X-Amz-Date': '20231012T102846Z',
'Authorization': xxx
}

response = requests.request("POST", url, headers=headers, data=payload)

Output:

{
"ErrorCode": "CLIENT_ERROR_FROM_MODEL",
"LogStreamArn": "arn:aws:logs:us-east-xxx:log-group:/aws/sagemaker/Endpoints/xxx-t2tt",
"Message":"Received client error (400) from primary with message "{\n "code": 400,\n "type": "InternalServerException",\n "message": "/.sagemaker/mms/models/facebook__seamless-m4t-medium does not appear to have a file named config.json. Checkout 'https://huggingface.co//.sagemaker/mms/models/facebook__seamless-m4t-medium/None\' for available files."\n}\n". See https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEventViewer:group=/aws/sagemaker/Endpoints/jumpstart-dft-BA-DevSecOpsAI-t2tt in account 762952282510 for more information.",
"OriginalMessage":"{\n "code": 400,\n "type": "InternalServerException",\n "message": "/.sagemaker/mms/models/facebook__seamless-m4t-medium does not appear to have a file named config.json. Checkout 'https://huggingface.co//.sagemaker/mms/models/facebook__seamless-m4t-medium/None\' for available files."\n}\n",
"OriginalStatusCode": 400
}

Sign up or log in to comment