Preview Flyte 2 for productionHosted on Union.ai
SGLang

SGLang

flyteplugins-sglang

Flyte SDK (v2)Model Servingsglanginferencellmservinggpu

Serve large language models using SGLang with Flyte Apps.

Install
pip install flyteplugins-sglang

Quick Start(example, may need adjustment)

pip install flyteplugins-sglang

from flytekit import task, workflow
from flyteplugins.sglang import DEFAULT_SGLANG_IMAGE, SGLangAppEnvironment

config = DEFAULT_SGLANG_IMAGE(...)

@task
def my_task() -> None:
    ...

@workflow
def my_workflow() -> None:
    my_task()

Available Imports (2)

typeDEFAULT_SGLANG_IMAGE

Configuration type for SGLang.

from flyteplugins.sglang import DEFAULT_SGLANG_IMAGE

configSGLangAppEnvironment

App environment backed by SGLang for serving large language models.

extends dataclass — configuration or data structure for plugin setup

from flyteplugins.sglang import SGLangAppEnvironment

Related Plugins

Package Info

Min Flyte SDK
Modules2

Downloads

Last day57
Last week276
Last month886