Stateful model example for the python backend
See original GitHub issueIs your feature request related to a problem? Please describe. I am trying to make a stateful model in Python backend, but I couldn’t find any example to do that.
Describe the solution you’d like It would be great if someone can provide an example with a simple python backend, and ideally with the client code to start with.
More specifically, I wonder how we can access the sequence_id, sequence_start, sequence_end
and other control signal information from the request object.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Examples of Stateful vs Stateless web applications with Python
Python on the Backend Course: https://www.husseinnasser.com/coursesWe have made a very popular video on stateless vs stateful application, ...
Read more >Stateful and Stateless LSTM for Time Series Forecasting with ...
This tutorial assumes you have a Python SciPy environment installed. You can use either Python 2 or 3 with this example. This tutorial...
Read more >Python functions and stateful objects - PySD - Read the Docs
Implements Vensim's PULSE and PULSE TRAIN functions and Xmile's PULSE function. Parameters. time (pysd.py_backend.components.Time) – Model time object.
Read more >Stateful LSTM model training in Keras - Yumi's Blog
For example, it might be a part of a larger system that works on video frames. It might be required to perform some...
Read more >WebFrameworks - Python Wiki
A web application may use a combination of a base HTTP application server, a storage mechanism such as a database, a template engine, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was wrong. sorry 😢
I found it! You can get
sequence_id
andcorrelation_id
https://github.com/triton-inference-server/python_backend/blob/main/src/pb_stub.cc#L661
EDIT: SO, Python Backend supports sequence batching. sorry for my misleading answer. 😰
Hi, I confirm that the python backend supports sequences. Would still be nice to add some documentation for accessing sequence related information.
In the config.pbtxt I added:
And in the python model, I can access them by:
Will close this issue for now.