flyteplugins-vllm 2.0.0b40__py3-none-any.whl → 2.0.0b41__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ from typing import Any, Literal, Optional, Union
7
7
  import flyte.app
8
8
  import rich.repr
9
9
  from flyte import Environment, Image, Resources, SecretRequest
10
- from flyte.app import Input, RunOutput
10
+ from flyte.app import Parameter, RunOutput
11
11
  from flyte.app._types import Port
12
12
  from flyte.models import SerializationContext
13
13
 
@@ -66,6 +66,15 @@ class VLLMAppEnvironment(flyte.app.AppEnvironment):
66
66
  if self.env_vars is None:
67
67
  self.env_vars = {}
68
68
 
69
+ if self._server is not None:
70
+ raise ValueError("server function cannot be set for VLLMAppEnvironment")
71
+
72
+ if self._on_startup is not None:
73
+ raise ValueError("on_startup function cannot be set for VLLMAppEnvironment")
74
+
75
+ if self._on_shutdown is not None:
76
+ raise ValueError("on_shutdown function cannot be set for VLLMAppEnvironment")
77
+
69
78
  if self.model_id == "":
70
79
  raise ValueError("model_id must be defined")
71
80
 
@@ -101,8 +110,8 @@ class VLLMAppEnvironment(flyte.app.AppEnvironment):
101
110
  *extra_args,
102
111
  ]
103
112
 
104
- if self.inputs:
105
- raise ValueError("inputs cannot be set for VLLMAppEnvironment")
113
+ if self.parameters:
114
+ raise ValueError("parameters cannot be set for VLLMAppEnvironment")
106
115
 
107
116
  input_kwargs = {}
108
117
  if self.stream_model:
@@ -115,7 +124,7 @@ class VLLMAppEnvironment(flyte.app.AppEnvironment):
115
124
  input_kwargs["mount"] = self._model_mount_path
116
125
 
117
126
  if self.model_path:
118
- self.inputs = [Input(name="model_path", value=self.model_path, **input_kwargs)]
127
+ self.parameters = [Parameter(name="model_path", value=self.model_path, **input_kwargs)]
119
128
 
120
129
  self.env_vars["FLYTE_MODEL_LOADER_LOCAL_MODEL_PATH"] = self._model_mount_path
121
130
  self.links = [flyte.app.Link(path="/docs", title="vLLM OpenAPI Docs", is_relative=True)]
@@ -166,7 +175,7 @@ class VLLMAppEnvironment(flyte.app.AppEnvironment):
166
175
  kwargs = self._get_kwargs()
167
176
  kwargs["name"] = name
168
177
  kwargs["args"] = None
169
- kwargs["inputs"] = None
178
+ kwargs["parameters"] = None
170
179
  if image is not None:
171
180
  kwargs["image"] = image
172
181
  if resources is not None:
@@ -114,7 +114,7 @@ async def _get_model_files():
114
114
  def main():
115
115
  import asyncio
116
116
 
117
- # TODO: add CLI here to be able to pass in serialized inputs from AppEnvironment
117
+ # TODO: add CLI here to be able to pass in serialized parameters from AppEnvironment
118
118
  logging.basicConfig(
119
119
  level=logging.INFO,
120
120
  format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyteplugins-vllm
3
- Version: 2.0.0b40
3
+ Version: 2.0.0b41
4
4
  Summary: vLLM plugin for flyte
5
5
  Author-email: Niels Bantilan <cosmicbboy@users.noreply.github.com>
6
6
  Requires-Python: >=3.10
@@ -0,0 +1,10 @@
1
+ flyteplugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ flyteplugins/vllm/__init__.py,sha256=FhdW2e_f6PsGo4wyV07jradAFbg7WmB0Luz3zHIDd7A,100
3
+ flyteplugins/vllm/_app_environment.py,sha256=-luoJak9FC4K8vs5JB34kXRnu3ms_ou2whQi64uCNrk,8075
4
+ flyteplugins/vllm/_model_loader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ flyteplugins/vllm/_model_loader/shim.py,sha256=tQAyA7bwuR98fs4eLFiqOmIUGrVrbf5pfbPGmljWeDo,5352
6
+ flyteplugins_vllm-2.0.0b41.dist-info/METADATA,sha256=9TawIET1lU-m-kOu9nw_n-Ni5muSafr5JwmNFpapYHE,1577
7
+ flyteplugins_vllm-2.0.0b41.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ flyteplugins_vllm-2.0.0b41.dist-info/entry_points.txt,sha256=lC-uwvkaytwtzbkJWdS69np63yLAakaDpI4mV1Yp9l8,74
9
+ flyteplugins_vllm-2.0.0b41.dist-info/top_level.txt,sha256=cgd779rPu9EsvdtuYgUxNHHgElaQvPn74KhB5XSeMBE,13
10
+ flyteplugins_vllm-2.0.0b41.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- flyteplugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- flyteplugins/vllm/__init__.py,sha256=FhdW2e_f6PsGo4wyV07jradAFbg7WmB0Luz3zHIDd7A,100
3
- flyteplugins/vllm/_app_environment.py,sha256=RYB2Oj0aHa_fj9N49_4p89qEYU3GRPuszO5g_U597N4,7664
4
- flyteplugins/vllm/_model_loader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- flyteplugins/vllm/_model_loader/shim.py,sha256=vSb7_r0sGJJVkWVIaqkypry0OTa5PAv-REqdigufYd0,5348
6
- flyteplugins_vllm-2.0.0b40.dist-info/METADATA,sha256=c7i4cEbfX-tK4i2rmRhNnIr61bUagNRsHxOZhQHLj4A,1577
7
- flyteplugins_vllm-2.0.0b40.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- flyteplugins_vllm-2.0.0b40.dist-info/entry_points.txt,sha256=lC-uwvkaytwtzbkJWdS69np63yLAakaDpI4mV1Yp9l8,74
9
- flyteplugins_vllm-2.0.0b40.dist-info/top_level.txt,sha256=cgd779rPu9EsvdtuYgUxNHHgElaQvPn74KhB5XSeMBE,13
10
- flyteplugins_vllm-2.0.0b40.dist-info/RECORD,,