Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lightning-AI/LitServe
/ functions
Functions
984 in github.com/Lightning-AI/LitServe
⨍
Functions
984
◇
Types & classes
226
↳
Endpoints
30
↓ 1 callers
Method
predict
(self, x)
src/litserve/test_examples/openai_spec_example.py:24
↓ 1 callers
Method
predict
(self, inputs, context)
src/litserve/test_examples/openai_spec_example.py:63
↓ 1 callers
Method
predict
(self, x)
src/litserve/test_examples/openai_spec_example.py:108
↓ 1 callers
Method
predict
(self, x)
src/litserve/test_examples/openai_spec_example.py:122
↓ 1 callers
Method
predict
(self, x)
src/litserve/test_examples/openai_spec_example.py:137
↓ 1 callers
Method
predict
(self, x)
tests/parity_fastapi/fastapi-server.py:35
↓ 1 callers
Method
predict
(self, x)
tests/unit/test_loops.py:105
↓ 1 callers
Method
predict
(self, x)
tests/unit/test_litapi.py:56
↓ 1 callers
Method
predict
(self, x)
tests/unit/test_litapi.py:84
↓ 1 callers
Method
predict
(self, x)
tests/unit/test_auth.py:65
↓ 1 callers
Method
predict
(self, input)
tests/unit/test_logger.py:78
↓ 1 callers
Method
predict
(self, x)
tests/unit/test_batch.py:83
↓ 1 callers
Method
predict
(self, x)
tests/e2e/default_batched_streaming.py:26
↓ 1 callers
Method
prefill
Fill available capacity with pending and new requests.
src/litserve/loops/continuous_batching_loop.py:132
↓ 1 callers
Method
process
Process a log entry from the log queue. This method should be implemented to define the specific logic for processing log entries.
src/litserve/loggers.py:45
↓ 1 callers
Method
process_image
(self, image_data)
tests/parity_fastapi/fastapi-server.py:29
↓ 1 callers
Method
register_endpoints
(self)
src/litserve/server.py:1027
↓ 1 callers
Function
response_queue_to_buffer
( transport: MessageTransport, response_buffer: dict[str, ResponseBufferItem], consumer_id: int,
src/litserve/server.py:133
↓ 1 callers
Function
run_fastapi_benchmark
(num_samples)
tests/parity_fastapi/main.py:64
↓ 1 callers
Function
run_litserve_benchmark
(num_samples)
tests/parity_fastapi/main.py:71
↓ 1 callers
Function
run_script_with_timeout
(file, timeout, extra_time, killall)
tests/unit/test_readme.py:50
↓ 1 callers
Method
schedule_task
( self, lit_api: LitAPI, lit_spec: Optional[LitSpec], request_queue: Queue,
src/litserve/loops/base.py:220
↓ 1 callers
Method
send
(self, item, consumer_id, block=False, timeout=None)
tests/unit/test_loops.py:192
↓ 1 callers
Function
set_log_level
Allow users to set the global logging level for the library.
src/litserve/utils.py:195
↓ 1 callers
Method
set_logger_queue
Set the queue for logging events.
src/litserve/api.py:382
↓ 1 callers
Method
set_request_timeout
(self, timeout: float)
src/litserve/server.py:254
↓ 1 callers
Function
set_trace
Set a tracepoint in the code.
src/litserve/utils.py:240
↓ 1 callers
Method
setup
(self, device: str)
src/litserve/test_examples/openai_spec_example.py:57
↓ 1 callers
Method
setup
(self, device)
src/litserve/test_examples/openai_spec_example.py:105
↓ 1 callers
Method
setup
(self, device)
src/litserve/test_examples/openai_spec_example.py:119
↓ 1 callers
Method
setup
This method is called by the server to connect the spec to the server.
src/litserve/specs/base.py:47
↓ 1 callers
Method
setup
(self, device)
tests/unit/test_loops.py:99
↓ 1 callers
Method
setup
(self, spec: Optional[LitSpec])
tests/unit/test_loops.py:875
↓ 1 callers
Method
setup
(self, device)
tests/unit/test_litapi.py:299
↓ 1 callers
Method
setup
(self, device)
tests/unit/test_schema.py:28
↓ 1 callers
Method
setup
(self, device)
tests/unit/test_batch.py:75
↓ 1 callers
Function
simple_litapi_cls
()
tests/conftest.py:109
↓ 1 callers
Function
speed_test
()
tests/perf_test/stream/stream_speed/benchmark.py:40
↓ 1 callers
Method
step
( self, prev_outputs: Optional[list[Output]], lit_api: LitAPI, lit_spec: Optional[LitSpec] )
src/litserve/loops/continuous_batching_loop.py:210
↓ 1 callers
Method
streamable_http_app
(self)
src/litserve/mcp.py:464
↓ 1 callers
Method
streaming_completion
(self, request: ChatCompletionRequest, pipe_responses: list)
src/litserve/specs/openai.py:536
↓ 1 callers
Function
test_worker_monitoring_triggers_shutdown_on_worker_death
Test that server shuts down when a worker dies.
tests/unit/test_failed_workers.py:26
↓ 1 callers
Method
unbatch
(self, output)
src/litserve/test_examples/openai_spec_example.py:94
↓ 1 callers
Method
unbatch
(self, output)
src/litserve/test_examples/openai_spec_example.py:150
↓ 1 callers
Method
verify_worker_status
(self)
src/litserve/server.py:1106
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
src/litserve/middlewares.py:37
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
src/litserve/middlewares.py:63
Method
__call__
(cls, *args, **kwargs)
src/litserve/utils.py:274
Method
__call__
( self, lit_api: LitAPI, device: str, worker_id: int, request_queue: Q
src/litserve/loops/base.py:229
Method
__call__
( self, lit_api: LitAPI, device: str, worker_id: int, request_queue: Q
src/litserve/loops/streaming_loops.py:281
Method
__call__
( self, lit_api: LitAPI, device: str, worker_id: int, request_queue: Q
src/litserve/loops/streaming_loops.py:397
Method
__call__
( self, lit_api: LitAPI, device: str, worker_id: int, request_queue: Q
src/litserve/loops/simple_loops.py:293
Method
__call__
( self, lit_api: LitAPI, device: str, worker_id: int, request_queue: Q
src/litserve/loops/simple_loops.py:420
Method
__call__
( self, lit_api: LitAPI, device: str, worker_id: int, request_queue: Q
tests/unit/test_loops.py:673
Method
__getattr__
(self, name)
src/litserve/specs/base.py:83
Method
__getstate__
Exclude _server from pickling as it contains unpickleable objects.
src/litserve/specs/base.py:34
Method
__init__
Args: name: The name of the MCP tool. description: The description of the MCP tool. input_schema: The inp
src/litserve/mcp.py:348
Method
__init__
(self, mcp_server: "MCPServer")
src/litserve/mcp.py:418
Method
__init__
(self)
src/litserve/mcp.py:491
Method
__init__
Initialize LitAPI with configuration options.
src/litserve/api.py:139
Method
__init__
( self, app: ASGIApp, *, max_size: Optional[int] = None, )
src/litserve/middlewares.py:28
Method
__init__
(self, app: ASGIApp, active_counter: multiprocessing.Value)
src/litserve/middlewares.py:59
Method
__init__
(self)
src/litserve/loggers.py:30
Method
__init__
(self, logger_class)
src/litserve/loggers.py:79
Method
__init__
(self, lit_server: "LitServer", loggers: Optional[Union[list[Logger], Logger]] = None)
src/litserve/loggers.py:96
Method
__init__
(self, accelerator: str = "auto", devices: Union[list[int], int, str] = "auto")
src/litserve/connector.py:23
Method
__init__
(self, lit_apis: Union[LitAPI, Iterable[LitAPI]])
src/litserve/server.py:229
Method
__init__
(self, lit_api: LitAPI, server: "LitServer")
src/litserve/server.py:281
Method
__init__
( self, lit_api: Union[LitAPI, list[LitAPI]], accelerator: Literal["cpu", "cuda", "mps
src/litserve/server.py:659
Method
__init__
(self, message: str = _DEFAULT_STOP_LOOP_MESSAGE)
src/litserve/loops/base.py:94
Method
__init__
Runs continuous batching loop. This loop handles adding new requests, processing them in batches, and managing the state of active sequences.
src/litserve/loops/continuous_batching_loop.py:57
Method
__init__
(self)
src/litserve/test_examples/simple_example.py:45
Method
__init__
(self, use_process: bool = False)
src/litserve/transport/zmq_queue.py:34
Method
__init__
(self, address: str = None)
src/litserve/transport/zmq_queue.py:86
Method
__init__
(self, consumer_id: int, address: str)
src/litserve/transport/zmq_queue.py:136
Method
__init__
(self, backend_address: str, frontend_address)
src/litserve/transport/zmq_transport.py:10
Method
__init__
(self, manager: Manager, queues: list[Queue])
src/litserve/transport/process_transport.py:10
Method
__init__
(self, callbacks: Union[Callback, list[Callback]] = None)
src/litserve/callbacks/base.py:65
Method
__init__
(self)
src/litserve/specs/openai_embedding.py:128
Method
__init__
(self)
src/litserve/specs/base.py:25
Method
__init__
(self, spec: LitSpec)
src/litserve/specs/base.py:80
Method
__init__
( self, )
src/litserve/specs/openai.py:359
Method
__init__
(self)
tests/conftest.py:387
Method
__init__
(self, device)
tests/parity_fastapi/fastapi-server.py:23
Method
__init__
(self, num_consumers=1)
tests/unit/test_loops.py:59
Method
__init__
(self, num_streamed_outputs)
tests/unit/test_loops.py:187
Method
__init__
(self, num_streamed_outputs)
tests/unit/test_loops.py:309
Method
__init__
(self)
tests/unit/test_litapi.py:288
Method
__init__
(self, app: ASGIApp, length: int)
tests/unit/test_middlewares.py:29
Method
__init__
(self, arg1, arg2, arg3)
tests/unit/test_simple.py:380
Method
__init__
(self)
tests/unit/test_lit_server.py:137
Method
__init__
(self, json_data=None, form_data=None, content_type="application/json")
tests/unit/test_request_handlers.py:50
Method
__init__
(self, lit_api, server)
tests/unit/test_request_handlers.py:65
Method
__init__
(self)
tests/unit/test_torch.py:25
Method
__init__
(self, *args, **kwargs)
tests/unit/test_logger.py:150
Method
__init__
(self, name=None, *args, **kwargs)
tests/unit/test_multiple_endpoints.py:10
Method
__init__
(self)
tests/unit/test_batch.py:39
Method
__init__
(self)
tests/unit/test_batch.py:198
Method
__iter__
(self)
src/litserve/server.py:262
Method
__new__
(mcls, name, bases, namespace, **kwargs)
src/litserve/utils.py:257
← previous
next →
201–300 of 984, ranked by callers