To help fellow Generative AI enthusiasts quickly leverage cutting-edge open-source models, I’ve created a simple CLI tool that bridges Hugging Face and Amazon Bedrock.

The Hugging Face Bedrock Importer is a command-line tool that simplifies the process of downloading Hugging Face models and deploying them to Amazon Bedrock. This tool automates the workflow of model download, Amazon S3 upload, and Bedrock Custom Model Import, making it easier for developers to leverage Hugging Face language models in their AWS environment.

With this importer, you can quickly bring powerful language models from Hugging Face into your Bedrock ecosystem. It handles the complexities of model download, S3 storage management, and Bedrock custom model creation, allowing you to focus on utilizing these models in your applications.

Getting started is as simple as:

1
2
3
pip install git+https://github.com/masquare/huggingface-bedrock-importer.git

hf-bedrock-import --model-id deepseek-ai/DeepSeek-R1-Distill-Llama-8B --s3-uri your-bucket

🔗 Ready to try it out? Check the GitHub repository:
https://github.com/masquare/huggingface-bedrock-importer