sagemaker-hf-media-entertainment-summarizer

所属分类:自然语言处理
开发工具:Jupyter Notebook
文件大小:62KB
下载次数:0
上传日期:2022-02-16 14:30:49
上 传 者sh-1993
说明:  sagemaker hf媒体娱乐总结器,,
(sagemaker-hf-media-entertainment-summarizer,,)

文件列表:
CODE_OF_CONDUCT.md (309, 2022-02-16)
CONTRIBUTING.md (3160, 2022-02-16)
LICENSE (927, 2022-02-16)
code (0, 2022-02-16)
code\sum_entrypoint.py (667, 2022-02-16)
data (0, 2022-02-16)
data\article1.txt (3783, 2022-02-16)
data\article2.txt (3983, 2022-02-16)
deploy_hf_pipeline.ipynb (14065, 2022-02-16)
img (0, 2022-02-16)
img\arch.png (52285, 2022-02-16)

## Democratize Documentation Summarization in Media and Entertainment with Hugging Face Transformers on Amazon SageMaker In this [example notebook](https://github.com/aws-samples/sagemaker-hf-media-entertainment-summarizer/blob/master/./deploy_hf_pipeline.ipynb), we'll go through an example of deploying a document summarization model from [HuggingFace Hub](https://github.com/aws-samples/sagemaker-hf-media-entertainment-summarizer/blob/master/https://huggingface.co/models). This model will take as input a long text document and will output a concise summary. We will deploy this model on an [asynchronous endpoint](https://github.com/aws-samples/sagemaker-hf-media-entertainment-summarizer/blob/master/https://docs.aws.amazon.com/sagemaker/latest/dg/async-inference.html) as most summarization use case do not require low latency making the asynchronous endpoint the ideal choice. Below is a sample architecture for an asynchronous document summarization service. As documents land in S3, a lambda function is triggered to invoke the SageMaker endpoint. Once the endpoint generates a summary of the document, it send the results to S3 and publishes an SNS notification not notify downstream consumers. The sample code provided here will only deploy the SageMaker endpoint, but can be easily extended to include the lambda trigger and SNS notifications. ![](https://github.com/aws-samples/sagemaker-hf-media-entertainment-summarizer/blob/master/./img/arch.png) We will rely on the library of pre-trained models available in the Hugging Face Model Hub. We will demonstrate how you can download a pre-trained model and deploy it on an asynchronous endpoint. Specifically, we'll cover: * Downloading a pre-trained model from Hugging Face Model Hub * Packaging the model with a customer inference script * Deploying SageMaker inference resources to host the model on an asynchronous endpoint ## Security See [CONTRIBUTING](https://github.com/aws-samples/sagemaker-hf-media-entertainment-summarizer/blob/master/CONTRIBUTING.md#security-issue-notifications) for more information. ## License This library is licensed under the MIT-0 License. See the LICENSE file.

近期下载者

相关文件


收藏者