GithubHelp home page GithubHelp logo

Comments (11)

philschmid avatar philschmid commented on July 29, 2024 1

You can find the code here: https://github.com/philschmid/huggingface-sagemaker-workshop-series/tree/main/workshop_3_mlops/utils

from huggingface-sagemaker-workshop-series.

philschmid avatar philschmid commented on July 29, 2024

Could you please format your code to read it better and also share the error you are seeing? And is that the complete code for your example?

from huggingface-sagemaker-workshop-series.

isoyaoya avatar isoyaoya commented on July 29, 2024

Have you tried batch transform inference rather than realtime inference before? Could you please provide some sample codes?

I have attached the whole notebook. Now there are some other errors:

Screen Shot 2022-07-21 at 9 21 26 PM

Screen Shot 2022-07-21 at 5 53 36 PM

lab_1_sagemaker_pipeline_batchtransform.ipynb.zip

from huggingface-sagemaker-workshop-series.

philschmid avatar philschmid commented on July 29, 2024

Could you please add the whole error stack it seems that there is something missing.

from huggingface-sagemaker-workshop-series.

isoyaoya avatar isoyaoya commented on July 29, 2024

log-events-viewer-result (2).csv

from huggingface-sagemaker-workshop-series.

isoyaoya avatar isoyaoya commented on July 29, 2024

Attach the whole error stack, thank you so much!

from huggingface-sagemaker-workshop-series.

philschmid avatar philschmid commented on July 29, 2024

From error it seems that you are sending malformed payloads. Here is an example for batch transform: https://github.com/huggingface/notebooks/blob/main/sagemaker/12_batch_transform_inference/sagemaker-notebook.ipynb

from huggingface-sagemaker-workshop-series.

isoyaoya avatar isoyaoya commented on July 29, 2024

I have seen this code before. Of course, if I do not use Sagemaker pipeline, I can create batch transform job without error and output correct predict results. However, I was required to use Sagemaker pipeline and batch transform to achieve automaticlly process.

from huggingface-sagemaker-workshop-series.

isoyaoya avatar isoyaoya commented on July 29, 2024

Have you tried to modify your code from real-time inference to batch transform with Sagemaker pipeline before? In some NLP applications, batch transform is often used.

from huggingface-sagemaker-workshop-series.

isoyaoya avatar isoyaoya commented on July 29, 2024

Use a lambda, create a lambda step to deploy registered model could solve the issue.

from huggingface-sagemaker-workshop-series.

dilky-ascentic avatar dilky-ascentic commented on July 29, 2024

@isoyaoya can you share the how you configured lambda step to do batch transform please?

from huggingface-sagemaker-workshop-series.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.