EndpointModel that pairs a ModelSpec with any Client implementation (HTTP, AWS SageMaker, GCP, Azure, …). This eliminates the need for per-backend model subclasses.
EndpointModel
ModelSpec (what the model expects and produces) with a Client (how to reach it).
Supports both synchronous (predict / embed) and asynchronous (predict_async / embed_async) dispatch.
model_spec
Model specification describing input requirements and output shape.
transport
A configured
Client instance (e.g. HTTPClient, AWSClient).input_gene_names
Optional ordered Ensembl IDs expected as bulk RNA input (M-Optimus ).
output_gene_names
Optional ordered Ensembl IDs of predicted output genes (M-Optimus).
model_spec
input_gene_names
output_gene_names
predict
Tile request payload to send.
Parsed model response with predictions.
embed
Tile request payload to send.
Parsed model response with embeddings.
predict_async
Tile request payload to send.
An
ClientSession for connection pooling.Parsed model response with predictions.
embed_async
Tile request payload to send.
An
ClientSession for connection pooling.Parsed model response with embeddings.

