Comments (5)
When I call
encoder.encode(prediction, accept='application/jsonlines')
withprediction
a list ofjson
, it generates an error.
@BaoshengHeTR, can you please provide the error, stack trace, and any other relevant logs related to this error? Please also provide relevant system information as listed in the bug report issue template.
from sagemaker-inference-toolkit.
When I call
encoder.encode(prediction, accept='application/jsonlines')
withprediction
a list ofjson
, it generates an error.@BaoshengHeTR, can you please provide the error, stack trace, and any other relevant logs related to this error? Please also provide relevant system information as listed in the bug report issue template.
can you show me an application of inference-tookit using application/lines
as output accept output format?
from sagemaker-inference-toolkit.
@BaoshengHeTR For the inference toolkit, the encoder.encode
method here will raise an UnsupportedFormatError
if the content_type
is not found in the encoder map. The specific string values of the constants in the encoder map can be found here.
Is an UnsupportedFormatError
what you are experiencing? Could you provide details regarding the particular error you are facing (as listed in the bug report issue template)?
from sagemaker-inference-toolkit.
here
Thanks. The problem is because my type is application/jsonlines
rather than application/json
. I managed to solve my problem in another way.
from sagemaker-inference-toolkit.
Thanks again for contacting us. Let us know if there's anything else we can help with.
Best regards.
from sagemaker-inference-toolkit.
Related Issues (20)
- Issue attaching eia device for huggingface transformers roBERTa model
- Launch MMS without repackaging model contents
- Include "Requires-Python" in source distributions
- Add (and test) Support for Python 3.8
- Support CustomAttributes in script mode (for PyTorch, HuggingFace, etc)
- Long Model Loading times in Multimodel Server
- stop_server function
- Document default_pre_model_fn and default_model_warmup_fn
- Support user-defined batch inference logic
- OOM errors creating an endpoint for LLMs HOT 1
- Support for parquet encoder and decoder
- Tensorflow Inference toolkit
- Enhancing Multi-Model Server Logging Support - JSON Format Integration
- psutil 5.9.6 seems to be throwing ZombieProcess when retrieving the mms process HOT 5
- Triton container documentation implies py38
- Add support for downloading inference script and code (entry_point) from s3
- Is streaming supported?
- Custom `model_fn` function not found when extending the PyTorch inference container
- Model Server fails to start with multi-model-server version 1.1.5 HOT 1
- Server Timeout Unit is Minutes in MMS, but docstring says Seconds
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 sagemaker-inference-toolkit.