Skip to navigation

nemo_curator.stages.interleaved.pdf.nemotron_parse.server

View as Markdown

Inference-server configuration for Nemotron-Parse.

Module Contents

Functions

NameDescription
create_nemotron_parse_inference_serverReturn an inference server configured for Nemotron-Parse PDFs.

Data

NemotronParseServerBackend

_DEFAULT_ENGINE_KWARGS

API

nemo_curator.stages.interleaved.pdf.nemotron_parse.create_nemotron_parse_inference_server(
model_path: str = DEFAULT_MODEL_PATH,
model_name: str | None = None,
num_replicas: int = 1,
engine_kwargs: dict[str, typing.Any] | None = None,
request_timeout_s: float = 300.0,
health_check_timeout_s: int = 900

Return an inference server configured for Nemotron-Parse PDFs.

The returned server is not started. Use it as a context manager or call InferenceServer.start and InferenceServer.stop explicitly.

nemo_curator.stages.interleaved.pdf.nemotron_parse.server.NemotronParseServerBackend = Literal['ray-serve', 'dynamo']
nemo_curator.stages.interleaved.pdf.nemotron_parse.server._DEFAULT_ENGINE_KWARGS: dict[str, Any] = {'trust_remote_code': True, 'dtype': 'bfloat16', 'limit_mm_per_prompt': {'image'...