Is it possible to ray-serve multiple objects of one class?

High: It blocks me to complete my task.

I need to create different objects of one class based on user input/init for ray serving and I am not able to find a way to do this in RAY. Dirty solution is to create lots of dummy classes(covering all possible objects that user will need), that inherits the common class that I am using.
If I could have created objects using input arguments and then serve objects, it would have been a neat solution. Unfortunately this I am not able to do in RAY…

Try the .options(name=...) call:

import ray
from ray import serve


class C

    def __call__(self, *args):
        return "Hello world"


# Ping C1 with handle:

# Ping C2 with handle:

.options() also lets you define each instance’s init_args and init_kwargs.

You can read more about deploying Ray Serve here.