MCPcopy Create free account

hub / github.com/Lightning-AI/LitServe / functions

Functions984 in github.com/Lightning-AI/LitServe

↓ 1 callersMethodpredict
(self, x)
src/litserve/test_examples/openai_spec_example.py:24
↓ 1 callersMethodpredict
(self, inputs, context)
src/litserve/test_examples/openai_spec_example.py:63
↓ 1 callersMethodpredict
(self, x)
src/litserve/test_examples/openai_spec_example.py:108
↓ 1 callersMethodpredict
(self, x)
src/litserve/test_examples/openai_spec_example.py:122
↓ 1 callersMethodpredict
(self, x)
src/litserve/test_examples/openai_spec_example.py:137
↓ 1 callersMethodpredict
(self, x)
tests/parity_fastapi/fastapi-server.py:35
↓ 1 callersMethodpredict
(self, x)
tests/unit/test_loops.py:105
↓ 1 callersMethodpredict
(self, x)
tests/unit/test_litapi.py:56
↓ 1 callersMethodpredict
(self, x)
tests/unit/test_litapi.py:84
↓ 1 callersMethodpredict
(self, x)
tests/unit/test_auth.py:65
↓ 1 callersMethodpredict
(self, input)
tests/unit/test_logger.py:78
↓ 1 callersMethodpredict
(self, x)
tests/unit/test_batch.py:83
↓ 1 callersMethodpredict
(self, x)
tests/e2e/default_batched_streaming.py:26
↓ 1 callersMethodprefill
Fill available capacity with pending and new requests.
src/litserve/loops/continuous_batching_loop.py:132
↓ 1 callersMethodprocess
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 callersMethodprocess_image
(self, image_data)
tests/parity_fastapi/fastapi-server.py:29
↓ 1 callersMethodregister_endpoints
(self)
src/litserve/server.py:1027
↓ 1 callersFunctionresponse_queue_to_buffer
( transport: MessageTransport, response_buffer: dict[str, ResponseBufferItem], consumer_id: int,
src/litserve/server.py:133
↓ 1 callersFunctionrun_fastapi_benchmark
(num_samples)
tests/parity_fastapi/main.py:64
↓ 1 callersFunctionrun_litserve_benchmark
(num_samples)
tests/parity_fastapi/main.py:71
↓ 1 callersFunctionrun_script_with_timeout
(file, timeout, extra_time, killall)
tests/unit/test_readme.py:50
↓ 1 callersMethodschedule_task
( self, lit_api: LitAPI, lit_spec: Optional[LitSpec], request_queue: Queue,
src/litserve/loops/base.py:220
↓ 1 callersMethodsend
(self, item, consumer_id, block=False, timeout=None)
tests/unit/test_loops.py:192
↓ 1 callersFunctionset_log_level
Allow users to set the global logging level for the library.
src/litserve/utils.py:195
↓ 1 callersMethodset_logger_queue
Set the queue for logging events.
src/litserve/api.py:382
↓ 1 callersMethodset_request_timeout
(self, timeout: float)
src/litserve/server.py:254
↓ 1 callersFunctionset_trace
Set a tracepoint in the code.
src/litserve/utils.py:240
↓ 1 callersMethodsetup
(self, device: str)
src/litserve/test_examples/openai_spec_example.py:57
↓ 1 callersMethodsetup
(self, device)
src/litserve/test_examples/openai_spec_example.py:105
↓ 1 callersMethodsetup
(self, device)
src/litserve/test_examples/openai_spec_example.py:119
↓ 1 callersMethodsetup
This method is called by the server to connect the spec to the server.
src/litserve/specs/base.py:47
↓ 1 callersMethodsetup
(self, device)
tests/unit/test_loops.py:99
↓ 1 callersMethodsetup
(self, spec: Optional[LitSpec])
tests/unit/test_loops.py:875
↓ 1 callersMethodsetup
(self, device)
tests/unit/test_litapi.py:299
↓ 1 callersMethodsetup
(self, device)
tests/unit/test_schema.py:28
↓ 1 callersMethodsetup
(self, device)
tests/unit/test_batch.py:75
↓ 1 callersFunctionsimple_litapi_cls
()
tests/conftest.py:109
↓ 1 callersFunctionspeed_test
()
tests/perf_test/stream/stream_speed/benchmark.py:40
↓ 1 callersMethodstep
( self, prev_outputs: Optional[list[Output]], lit_api: LitAPI, lit_spec: Optional[LitSpec] )
src/litserve/loops/continuous_batching_loop.py:210
↓ 1 callersMethodstreamable_http_app
(self)
src/litserve/mcp.py:464
↓ 1 callersMethodstreaming_completion
(self, request: ChatCompletionRequest, pipe_responses: list)
src/litserve/specs/openai.py:536
↓ 1 callersFunctiontest_worker_monitoring_triggers_shutdown_on_worker_death
Test that server shuts down when a worker dies.
tests/unit/test_failed_workers.py:26
↓ 1 callersMethodunbatch
(self, output)
src/litserve/test_examples/openai_spec_example.py:94
↓ 1 callersMethodunbatch
(self, output)
src/litserve/test_examples/openai_spec_example.py:150
↓ 1 callersMethodverify_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
← previousnext →201–300 of 984, ranked by callers