Comments (11)
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.
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.
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:
lab_1_sagemaker_pipeline_batchtransform.ipynb.zip
from huggingface-sagemaker-workshop-series.
Could you please add the whole error stack it seems that there is something missing.
from huggingface-sagemaker-workshop-series.
log-events-viewer-result (2).csv
from huggingface-sagemaker-workshop-series.
Attach the whole error stack, thank you so much!
from huggingface-sagemaker-workshop-series.
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.
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.
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.
Use a lambda, create a lambda step to deploy registered model could solve the issue.
from huggingface-sagemaker-workshop-series.
@isoyaoya can you share the how you configured lambda step to do batch transform please?
from huggingface-sagemaker-workshop-series.
Related Issues (6)
- AttributeError: 'ParameterString' object has no attribute 'startswith' HOT 2
- KeyError Length during training following workshop MLOps HOT 9
- ParameterString' object has no attribute 'decode' HOT 1
- Error: We couldn't connect to 'https://huggingface.co/' to load this model and it looks like None is not the path to a directory conaining a config.json file. Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'." HOT 1
- Conflicting AWS and HF docs for AWS inf instances, confused about which one to follow HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huggingface-sagemaker-workshop-series.