Unable to import to Bedrock

#22
by kalkarprashant - opened

Followed following steps to import to sagemaker:

Import the model to s3.

git lfs install
git clone --depth=1 --progress https://huggingface.co/defog/llama-3-sqlcoder-8b
tar zcvf model.tar.gz *
aws s3 cp model.tar.gz s3://.../llama-3-sqlcoder-8b/model.tar.gz

Used the script provided for the SageMaker deployment to deploy to sageMaker along with model_data set to s3.
The deployment to sagemaker works fine but was not able to get it to import for Bedrock.

When importing to bedrock I am getting following error:

Amazon bedrock could not find the expected file s3://.../config.json. Make sure the model is in Huggingface format and that the file exists

The file does exists as its already there in the repo (taken during get clone). I am assuming the format is also hugging face one.

Any help will be great in this regards
Prashant

Defog.ai org

Hi @kalkarprashant ,

We do have the config.json in our repository here: https://huggingface.co/defog/llama-3-sqlcoder-8b/blob/main/config.json , hence it seems like the issue is with how you're using the inference engine, which unfortunately we do not support.

My guess is that the file might have been missed out somehow during the intermediate steps while uploading it, and my recommendation would be to start over with the same steps.

wongjingping changed discussion status to closed

Sign up or log in to comment