dyff-schema 0.34.1__tar.gz → 0.35.1__tar.gz
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.
Potentially problematic release.
This version of dyff-schema might be problematic. Click here for more details.
- {dyff_schema-0.34.1/dyff_schema.egg-info → dyff_schema-0.35.1}/PKG-INFO +1 -1
- dyff_schema-0.35.1/dyff/schema/_version.py +2 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/platform.py +12 -10
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/requests.py +6 -4
- {dyff_schema-0.34.1 → dyff_schema-0.35.1/dyff_schema.egg-info}/PKG-INFO +1 -1
- dyff_schema-0.34.1/dyff/schema/_version.py +0 -2
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/.gitignore +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/.gitlab-ci.yml +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/.idea/dyff-schema.iml +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/.licenserc.yaml +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/.prettierignore +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/.secrets.baseline +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/LICENSE +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/NOTICE +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/README.md +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/base.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/commands.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/responses.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/test.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/commands.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/oci.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/responses.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff/schema/version.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/makefile +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/pyproject.toml +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/setup.cfg +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/tests/test_adapters.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.1}/tests/test_import.py +0 -0
|
@@ -1252,7 +1252,9 @@ class ModelBase(DyffSchemaBaseModel):
|
|
|
1252
1252
|
description="How the model data is represented"
|
|
1253
1253
|
)
|
|
1254
1254
|
|
|
1255
|
-
storage: ModelStorage = pydantic.Field(
|
|
1255
|
+
storage: Optional[ModelStorage] = pydantic.Field(
|
|
1256
|
+
default=None, description="How the model data is stored"
|
|
1257
|
+
)
|
|
1256
1258
|
|
|
1257
1259
|
|
|
1258
1260
|
class ModelSpec(ModelBase):
|
|
@@ -1442,10 +1444,15 @@ class Container(DyffSchemaBaseModel):
|
|
|
1442
1444
|
|
|
1443
1445
|
|
|
1444
1446
|
class InferenceServiceRunner(Container):
|
|
1445
|
-
"""Configuration of
|
|
1447
|
+
"""Configuration of the runtime environment to use to run an inference service.
|
|
1448
|
+
|
|
1449
|
+
You can run the service in an arbitrary Docker container by using
|
|
1450
|
+
``.kind == "container" and setting ``.imageRef`` to a container image that
|
|
1451
|
+
has been uploaded to Dyff using the ``/artifacts/create`` API.
|
|
1446
1452
|
|
|
1447
|
-
|
|
1448
|
-
|
|
1453
|
+
Other runner kinds are "managed" runners that are maintained as part of the
|
|
1454
|
+
Dyff project. Using a managed runner simplifies the configuration of
|
|
1455
|
+
inference services backed by models in common formats, such as HuggingFace models.
|
|
1449
1456
|
"""
|
|
1450
1457
|
|
|
1451
1458
|
kind: InferenceServiceRunnerKind
|
|
@@ -1492,8 +1499,7 @@ class InferenceServiceBase(DyffSchemaBaseModel):
|
|
|
1492
1499
|
# FIXME: (DYFF-261) .runner should be required
|
|
1493
1500
|
runner: Optional[InferenceServiceRunner] = pydantic.Field(
|
|
1494
1501
|
default=None,
|
|
1495
|
-
description="Configuration of the managed runner used to run the service."
|
|
1496
|
-
" Only one of .container or .runner may be specified.",
|
|
1502
|
+
description="Configuration of the managed runner used to run the service.",
|
|
1497
1503
|
)
|
|
1498
1504
|
|
|
1499
1505
|
interface: InferenceInterface = pydantic.Field(
|
|
@@ -2276,10 +2282,6 @@ class Score(ScoreData):
|
|
|
2276
2282
|
class OCIArtifact(DyffEntity):
|
|
2277
2283
|
kind: Literal["OCIArtifact"] = Entities.Artifact.value
|
|
2278
2284
|
|
|
2279
|
-
manifest: oci.ImageManifest = pydantic.Field(
|
|
2280
|
-
description="The OCI image manifest of the artifact"
|
|
2281
|
-
)
|
|
2282
|
-
|
|
2283
2285
|
def dependencies(self) -> list[str]:
|
|
2284
2286
|
return []
|
|
2285
2287
|
|
|
@@ -171,11 +171,13 @@ class InferenceServiceCreateRequest(DyffEntityCreateRequest, InferenceServiceBas
|
|
|
171
171
|
)
|
|
172
172
|
|
|
173
173
|
@pydantic.model_validator(mode="after")
|
|
174
|
-
def
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
def check_runner_and_image_specified(cls, values):
|
|
175
|
+
if values.runner is None:
|
|
176
|
+
raise ValueError("must specify .runner in new inference services")
|
|
177
|
+
image = values.runner.image is not None
|
|
178
|
+
imageRef = values.runner.imageRef is not None
|
|
177
179
|
if sum([image, imageRef]) != 1:
|
|
178
|
-
raise ValueError("must specify exactly one of {image, imageRef}")
|
|
180
|
+
raise ValueError("must specify exactly one of .runner.{image, imageRef}")
|
|
179
181
|
return values
|
|
180
182
|
|
|
181
183
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|