dyff-schema 0.34.1__tar.gz → 0.35.0__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.0}/PKG-INFO +1 -1
- dyff_schema-0.35.0/dyff/schema/_version.py +2 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/platform.py +9 -9
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/requests.py +6 -4
- {dyff_schema-0.34.1 → dyff_schema-0.35.0/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.0}/.gitignore +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/.gitlab-ci.yml +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/.idea/dyff-schema.iml +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/.licenserc.yaml +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/.prettierignore +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/.secrets.baseline +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/LICENSE +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/NOTICE +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/README.md +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/base.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/commands.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/responses.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/test.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/commands.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/oci.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/responses.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff/schema/version.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/makefile +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/pyproject.toml +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/setup.cfg +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/tests/test_adapters.py +0 -0
- {dyff_schema-0.34.1 → dyff_schema-0.35.0}/tests/test_import.py +0 -0
|
@@ -1442,10 +1442,15 @@ class Container(DyffSchemaBaseModel):
|
|
|
1442
1442
|
|
|
1443
1443
|
|
|
1444
1444
|
class InferenceServiceRunner(Container):
|
|
1445
|
-
"""Configuration of
|
|
1445
|
+
"""Configuration of the runtime environment to use to run an inference service.
|
|
1446
1446
|
|
|
1447
|
-
|
|
1448
|
-
|
|
1447
|
+
You can run the service in an arbitrary Docker container by using
|
|
1448
|
+
``.kind == "container" and setting ``.imageRef`` to a container image that
|
|
1449
|
+
has been uploaded to Dyff using the ``/artifacts/create`` API.
|
|
1450
|
+
|
|
1451
|
+
Other runner kinds are "managed" runners that are maintained as part of the
|
|
1452
|
+
Dyff project. Using a managed runner simplifies the configuration of
|
|
1453
|
+
inference services backed by models in common formats, such as HuggingFace models.
|
|
1449
1454
|
"""
|
|
1450
1455
|
|
|
1451
1456
|
kind: InferenceServiceRunnerKind
|
|
@@ -1492,8 +1497,7 @@ class InferenceServiceBase(DyffSchemaBaseModel):
|
|
|
1492
1497
|
# FIXME: (DYFF-261) .runner should be required
|
|
1493
1498
|
runner: Optional[InferenceServiceRunner] = pydantic.Field(
|
|
1494
1499
|
default=None,
|
|
1495
|
-
description="Configuration of the managed runner used to run the service."
|
|
1496
|
-
" Only one of .container or .runner may be specified.",
|
|
1500
|
+
description="Configuration of the managed runner used to run the service.",
|
|
1497
1501
|
)
|
|
1498
1502
|
|
|
1499
1503
|
interface: InferenceInterface = pydantic.Field(
|
|
@@ -2276,10 +2280,6 @@ class Score(ScoreData):
|
|
|
2276
2280
|
class OCIArtifact(DyffEntity):
|
|
2277
2281
|
kind: Literal["OCIArtifact"] = Entities.Artifact.value
|
|
2278
2282
|
|
|
2279
|
-
manifest: oci.ImageManifest = pydantic.Field(
|
|
2280
|
-
description="The OCI image manifest of the artifact"
|
|
2281
|
-
)
|
|
2282
|
-
|
|
2283
2283
|
def dependencies(self) -> list[str]:
|
|
2284
2284
|
return []
|
|
2285
2285
|
|
|
@@ -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
|