seldon-runtime 0.1.1.dev1__tar.gz → 0.1.1.dev2__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.
- seldon_runtime-0.1.1.dev2/CHANGELOG.md +61 -0
- seldon_runtime-0.1.1.dev2/MANIFEST.in +5 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/NOTICE +4 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/PKG-INFO +29 -10
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/README.md +27 -9
- seldon_runtime-0.1.1.dev2/THIRD_PARTY_NOTICES.md +66 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/pyproject.toml +5 -2
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/runtime_modules.txt +1 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/schemas/compiler-artifact-v1.json +4 -1
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/__init__.py +1 -1
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/artifact.py +4 -4
- seldon_runtime-0.1.1.dev2/seldon_runtime/data/o200k_base.tiktoken +199998 -0
- seldon_runtime-0.1.1.dev2/seldon_runtime/data/provenance.json +11 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/output_budget.py +2 -2
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/semantic.py +4 -4
- seldon_runtime-0.1.1.dev2/seldon_runtime/tokenizer.py +60 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime.egg-info/PKG-INFO +29 -10
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime.egg-info/SOURCES.txt +8 -0
- seldon_runtime-0.1.1.dev2/tests/fixtures/compiler-artifact/manifest.json +90 -0
- seldon_runtime-0.1.1.dev2/tests/fixtures/tokenizer_goldens.json +1417 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/test_artifact.py +24 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/test_correctness_repairs.py +2 -2
- seldon_runtime-0.1.1.dev2/tests/test_tokenizer.py +86 -0
- seldon_runtime-0.1.1.dev2/tests/tokenizer_cases.py +45 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/wheel_probe.py +13 -1
- seldon_runtime-0.1.1.dev1/CHANGELOG.md +0 -35
- seldon_runtime-0.1.1.dev1/MANIFEST.in +0 -4
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/LICENSE +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/scripts/export_artifact_schema.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/attempt_bound.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/components.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/conditional.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/contract_versions.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/contracts.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/deadline.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/executor.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/gliner_normalize.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/instruction_envelope.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/json_pointer.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/local.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/local_models.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/local_telemetry.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/native_schema.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/program_validation.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/provider_error.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/research_kernels.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/runner.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/telemetry.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/templates.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime/tool_wire.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime.egg-info/dependency_links.txt +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime.egg-info/requires.txt +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/seldon_runtime.egg-info/top_level.txt +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/setup.cfg +0 -0
- {seldon_runtime-0.1.1.dev1/tests/fixtures/compiler-artifact → seldon_runtime-0.1.1.dev2/tests/fixtures/compiler-artifact-dev1}/manifest.json +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/fixtures/digest_goldens.json +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/fixtures/local_gliner_raw.json +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/fixtures/serving_compat/function-plan-v1.json +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/fixtures/serving_compat/function-plan-v2.json +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/fixtures/serving_compat/function-plan-v3.json +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/fixtures/serving_compat/function-plan-v4.json +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/fixtures/serving_compat/function-plan-v5.json +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/installed_local_probe.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/test_contracts.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/test_gliner_normalize.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/test_import_closure.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/test_install.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/test_local.py +0 -0
- {seldon_runtime-0.1.1.dev1 → seldon_runtime-0.1.1.dev2}/tests/test_runner.py +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.1.dev2 — unreleased
|
|
4
|
+
|
|
5
|
+
- Bundle the immutable o200k_base rank data and construct its encoding locally.
|
|
6
|
+
Token budgets and both historical/UTF-8 chunk boundaries previously depended on
|
|
7
|
+
tiktoken downloading a rank file on first use; a warm developer cache concealed
|
|
8
|
+
failures in isolated installations. No runtime download, ambient cache, or writable
|
|
9
|
+
tokenizer directory is now needed. The rank hash, regex, special tokens and all
|
|
10
|
+
existing token estimation policies remain unchanged.
|
|
11
|
+
- Record upstream code licenses, asset provenance and the lack of a separately
|
|
12
|
+
stated Azure asset license in THIRD_PARTY_NOTICES.md. Corrupt or missing packaged
|
|
13
|
+
tokenizer data fails closed; it never triggers a replacement download.
|
|
14
|
+
- Pin newly exported standalone manifests to runtime `0.1.1.dev2`. The reader
|
|
15
|
+
explicitly accepts both `0.1.1.dev1` and `0.1.1.dev2`: dev2 changes tokenizer
|
|
16
|
+
delivery, preserving dev1 token and plan semantics. Original dev1 manifests
|
|
17
|
+
remain immutable and executable without rewriting hashes. dev0 and unreviewed
|
|
18
|
+
future versions remain rejected; compatibility is not inferred from a range.
|
|
19
|
+
- Add frozen pre-change token/chunk vectors and cold-cache, network-denied
|
|
20
|
+
subprocess checks. Release wheel/sdist probes now forbid socket/DNS calls and
|
|
21
|
+
supply empty cache directories. Optional model weights remain separately prepared.
|
|
22
|
+
|
|
23
|
+
## 0.1.1.dev1 — published 2026-11-30
|
|
24
|
+
|
|
25
|
+
Published through [Runtime Publish](https://github.com/Deep-Insight-Labs/seldon-runtime/actions/runs/46391393622)
|
|
26
|
+
after Linux compatibility checks, wheel/sdist verification and an installed-TestPyPI
|
|
27
|
+
probe. PyPI artifact hashes match the CI build. This release does not deploy hosted
|
|
28
|
+
Seldon or complete the compiler exporter.
|
|
29
|
+
|
|
30
|
+
### Standalone compiler artifact reader
|
|
31
|
+
|
|
32
|
+
- Add a separate `compiler-artifact-v1` reader for a bounded, inline JSON manifest
|
|
33
|
+
and caller-owned asynchronous model bindings. Validate hashes, explicit semantic
|
|
34
|
+
versions, plan/spec compatibility, model capabilities and context/output bounds
|
|
35
|
+
before dispatch; no endpoint or credential is loaded from an artifact.
|
|
36
|
+
- Preserve the hosted `Runner`, bundle eligibility, authorization, expiry and
|
|
37
|
+
refresh behavior. Standalone artifacts have no control-plane or telemetry calls.
|
|
38
|
+
- Reject research code, native protocols not yet supported by this handoff, external
|
|
39
|
+
file references, symlinks, oversized manifests and secret-bearing configuration
|
|
40
|
+
fields. Hashes establish integrity relative to a manifest, not publisher trust;
|
|
41
|
+
prompts and specs remain potentially sensitive customer data.
|
|
42
|
+
- This is a reader implementation awaiting integration with the compiler exporter.
|
|
43
|
+
No live model has been qualified and no new serving capability has been enabled
|
|
44
|
+
in hosted Seldon.
|
|
45
|
+
|
|
46
|
+
### Correctness contracts — implemented 2026-11-27
|
|
47
|
+
|
|
48
|
+
- Add `optimizer-correctness-v8` execution readers without changing historical
|
|
49
|
+
plan or spec digests.
|
|
50
|
+
- Add the explicit `chunk_text.token_boundary: "utf8-v2"` contract. Individual
|
|
51
|
+
tokenizer tokens can contain incomplete UTF-8 characters; decoding those tokens
|
|
52
|
+
independently previously counted the remaining document as one token. New
|
|
53
|
+
marked chunks keep complete source characters, full coverage and the actual
|
|
54
|
+
requested token budget. Unmarked chunks retain historical boundaries.
|
|
55
|
+
- Add `context_measured_v3`: native Fastino GLiNER extraction reserves its
|
|
56
|
+
inherited output allowance for accounting and response bounds without subtracting
|
|
57
|
+
it from the encoder input window. The actual provider input is still checked;
|
|
58
|
+
other protocols retain their existing context rules. Older policy values do
|
|
59
|
+
not change. The provider's encoder input contract is documented at
|
|
60
|
+
<https://docs.fastino.ai/inference/chat-completions>.
|
|
61
|
+
- Hosted rollout requires compatible readers before new marked runs are created.
|
|
@@ -7,3 +7,7 @@ infrastructure and dashboard are not part of this distribution.
|
|
|
7
7
|
|
|
8
8
|
Optional GLiNER2 code and downloaded model weights remain under their respective
|
|
9
9
|
upstream licenses. Their licenses are not replaced by this project license.
|
|
10
|
+
|
|
11
|
+
The bundled o200k_base tokenizer constructor and vocabulary have separate upstream
|
|
12
|
+
provenance and MIT notices in THIRD_PARTY_NOTICES.md. That file records the absence
|
|
13
|
+
of a separately stated license for the Azure rank asset without claiming one.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: seldon-runtime
|
|
3
|
-
Version: 0.1.1.
|
|
3
|
+
Version: 0.1.1.dev2
|
|
4
4
|
Summary: Standalone Seldon Functions interpreter and local execution client
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Project-URL: Source, https://github.com/Deep-Insight-Labs/seldon-runtime
|
|
@@ -9,6 +9,7 @@ Requires-Python: >=3.11
|
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE
|
|
11
11
|
License-File: NOTICE
|
|
12
|
+
License-File: THIRD_PARTY_NOTICES.md
|
|
12
13
|
Requires-Dist: pydantic>=2.2
|
|
13
14
|
Requires-Dist: jsonschema>=4.21
|
|
14
15
|
Requires-Dist: tiktoken>=0.7
|
|
@@ -34,9 +35,11 @@ Optimization and hosted comparison happen on Seldon. The runtime contains no
|
|
|
34
35
|
optimizer, billing service, dashboard or server infrastructure. Its first local
|
|
35
36
|
model adapter uses pinned GLiNER2 open weights for extraction and classification.
|
|
36
37
|
|
|
37
|
-
The
|
|
38
|
-
is available on PyPI.
|
|
39
|
-
delivery enabled for your workspace.
|
|
38
|
+
The current preview, [`0.1.1.dev1`](https://pypi.org/project/seldon-runtime/0.1.1.dev1/),
|
|
39
|
+
is available on PyPI. Hosted bundle execution requires a Seldon deployment with
|
|
40
|
+
bundle delivery enabled for your workspace. The separate standalone artifact reader
|
|
41
|
+
uses caller-supplied model bindings without a Seldon service; its compiler exporter
|
|
42
|
+
is still in development.
|
|
40
43
|
|
|
41
44
|
## Install
|
|
42
45
|
|
|
@@ -48,14 +51,14 @@ On Linux, install CPU PyTorch explicitly to avoid downloading CUDA dependencies:
|
|
|
48
51
|
|
|
49
52
|
```sh
|
|
50
53
|
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
|
|
51
|
-
python -m pip install 'seldon-runtime[gliner]==0.1.1.
|
|
54
|
+
python -m pip install 'seldon-runtime[gliner]==0.1.1.dev1'
|
|
52
55
|
```
|
|
53
56
|
|
|
54
57
|
On macOS:
|
|
55
58
|
|
|
56
59
|
```sh
|
|
57
60
|
python -m pip install torch
|
|
58
|
-
python -m pip install 'seldon-runtime[gliner]==0.1.1.
|
|
61
|
+
python -m pip install 'seldon-runtime[gliner]==0.1.1.dev1'
|
|
59
62
|
```
|
|
60
63
|
|
|
61
64
|
In a uv environment, use `uv pip install` for the same commands. In a Linux uv
|
|
@@ -63,13 +66,23 @@ project, persist the dedicated torch index:
|
|
|
63
66
|
|
|
64
67
|
```sh
|
|
65
68
|
uv add torch --index pytorch=https://download.pytorch.org/whl/cpu
|
|
66
|
-
uv add 'seldon-runtime[gliner]==0.1.1.
|
|
69
|
+
uv add 'seldon-runtime[gliner]==0.1.1.dev1'
|
|
67
70
|
```
|
|
68
71
|
|
|
69
72
|
The model weights and tokenizer files download on first use. Cache the pinned
|
|
70
73
|
snapshot in advance for restricted networks. Token-chunked plans also need the
|
|
71
74
|
tiktoken BPE cache (`TIKTOKEN_CACHE_DIR`). Model weights are not bundled in the wheel.
|
|
72
75
|
|
|
76
|
+
The unreleased `0.1.1.dev2` candidate removes the separate tiktoken cache prerequisite:
|
|
77
|
+
its wheel and source distribution include the fixed `o200k_base` vocabulary used
|
|
78
|
+
for Seldon token budgets and chunking. The runtime verifies its hash and constructs
|
|
79
|
+
the encoding directly; it never downloads or repairs missing/corrupt tokenizer
|
|
80
|
+
data. No network or writable cache is required for these operations. Optional
|
|
81
|
+
GLiNER weights and their own tokenizer files still require advance preparation.
|
|
82
|
+
See [third-party notices](THIRD_PARTY_NOTICES.md) and
|
|
83
|
+
[asset provenance](seldon_runtime/data/provenance.json) for sources and license basis.
|
|
84
|
+
The published dev1 installation commands above retain their original prerequisites.
|
|
85
|
+
|
|
73
86
|
## Run a Function locally
|
|
74
87
|
|
|
75
88
|
Only activated, locally eligible v3/v4 revisions can be loaded. Hosted-only models,
|
|
@@ -155,8 +168,14 @@ a development environment with `python -m pip install '.[schema]'` followed by
|
|
|
155
168
|
`python -m scripts.export_artifact_schema`. CI checks the committed schema using
|
|
156
169
|
that generator's `--check` mode, independently of the runtime compatibility matrix.
|
|
157
170
|
|
|
158
|
-
The manifest freezes the compiler version
|
|
159
|
-
|
|
171
|
+
The manifest freezes the compiler version and an explicit runtime version. New
|
|
172
|
+
exports target the current producer version (`0.1.1.dev2` in this unreleased
|
|
173
|
+
candidate). The dev2 reader accepts the reviewed set `0.1.1.dev1` and `0.1.1.dev2`;
|
|
174
|
+
original dev1 manifests retain their pin and hashes. This packaging fix preserves
|
|
175
|
+
token and plan semantics. dev0 and future versions are rejected until explicitly
|
|
176
|
+
reviewed; there is no version-prefix or range-based compatibility inference.
|
|
177
|
+
The manifest also freezes the optimizer contract (v1–v8), evaluation semantics,
|
|
178
|
+
instruction envelope, conditional
|
|
160
179
|
permission, plan/spec hashes, model requirements and a small evidence summary.
|
|
161
180
|
`manifest_digest` is the canonical runtime `digest` of all raw manifest fields
|
|
162
181
|
except `manifest_digest`. Plan/spec digests use their validated model `.digest`.
|
|
@@ -206,7 +225,7 @@ the complete compiler-to-runtime lifecycle.
|
|
|
206
225
|
|
|
207
226
|
### Interpreter development
|
|
208
227
|
|
|
209
|
-
The
|
|
228
|
+
The published `0.1.1.dev1` readers support `optimizer-correctness-v8`.
|
|
210
229
|
New `chunk_text` steps may freeze `token_boundary: "utf8-v2"` with `unit: "tokens"`;
|
|
211
230
|
this counts tokenizer tokens without splitting UTF-8 characters. Steps without
|
|
212
231
|
the marker keep their historical chunk boundaries. The kernel still enforces its
|
|
@@ -9,9 +9,11 @@ Optimization and hosted comparison happen on Seldon. The runtime contains no
|
|
|
9
9
|
optimizer, billing service, dashboard or server infrastructure. Its first local
|
|
10
10
|
model adapter uses pinned GLiNER2 open weights for extraction and classification.
|
|
11
11
|
|
|
12
|
-
The
|
|
13
|
-
is available on PyPI.
|
|
14
|
-
delivery enabled for your workspace.
|
|
12
|
+
The current preview, [`0.1.1.dev1`](https://pypi.org/project/seldon-runtime/0.1.1.dev1/),
|
|
13
|
+
is available on PyPI. Hosted bundle execution requires a Seldon deployment with
|
|
14
|
+
bundle delivery enabled for your workspace. The separate standalone artifact reader
|
|
15
|
+
uses caller-supplied model bindings without a Seldon service; its compiler exporter
|
|
16
|
+
is still in development.
|
|
15
17
|
|
|
16
18
|
## Install
|
|
17
19
|
|
|
@@ -23,14 +25,14 @@ On Linux, install CPU PyTorch explicitly to avoid downloading CUDA dependencies:
|
|
|
23
25
|
|
|
24
26
|
```sh
|
|
25
27
|
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
|
|
26
|
-
python -m pip install 'seldon-runtime[gliner]==0.1.1.
|
|
28
|
+
python -m pip install 'seldon-runtime[gliner]==0.1.1.dev1'
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
On macOS:
|
|
30
32
|
|
|
31
33
|
```sh
|
|
32
34
|
python -m pip install torch
|
|
33
|
-
python -m pip install 'seldon-runtime[gliner]==0.1.1.
|
|
35
|
+
python -m pip install 'seldon-runtime[gliner]==0.1.1.dev1'
|
|
34
36
|
```
|
|
35
37
|
|
|
36
38
|
In a uv environment, use `uv pip install` for the same commands. In a Linux uv
|
|
@@ -38,13 +40,23 @@ project, persist the dedicated torch index:
|
|
|
38
40
|
|
|
39
41
|
```sh
|
|
40
42
|
uv add torch --index pytorch=https://download.pytorch.org/whl/cpu
|
|
41
|
-
uv add 'seldon-runtime[gliner]==0.1.1.
|
|
43
|
+
uv add 'seldon-runtime[gliner]==0.1.1.dev1'
|
|
42
44
|
```
|
|
43
45
|
|
|
44
46
|
The model weights and tokenizer files download on first use. Cache the pinned
|
|
45
47
|
snapshot in advance for restricted networks. Token-chunked plans also need the
|
|
46
48
|
tiktoken BPE cache (`TIKTOKEN_CACHE_DIR`). Model weights are not bundled in the wheel.
|
|
47
49
|
|
|
50
|
+
The unreleased `0.1.1.dev2` candidate removes the separate tiktoken cache prerequisite:
|
|
51
|
+
its wheel and source distribution include the fixed `o200k_base` vocabulary used
|
|
52
|
+
for Seldon token budgets and chunking. The runtime verifies its hash and constructs
|
|
53
|
+
the encoding directly; it never downloads or repairs missing/corrupt tokenizer
|
|
54
|
+
data. No network or writable cache is required for these operations. Optional
|
|
55
|
+
GLiNER weights and their own tokenizer files still require advance preparation.
|
|
56
|
+
See [third-party notices](THIRD_PARTY_NOTICES.md) and
|
|
57
|
+
[asset provenance](seldon_runtime/data/provenance.json) for sources and license basis.
|
|
58
|
+
The published dev1 installation commands above retain their original prerequisites.
|
|
59
|
+
|
|
48
60
|
## Run a Function locally
|
|
49
61
|
|
|
50
62
|
Only activated, locally eligible v3/v4 revisions can be loaded. Hosted-only models,
|
|
@@ -130,8 +142,14 @@ a development environment with `python -m pip install '.[schema]'` followed by
|
|
|
130
142
|
`python -m scripts.export_artifact_schema`. CI checks the committed schema using
|
|
131
143
|
that generator's `--check` mode, independently of the runtime compatibility matrix.
|
|
132
144
|
|
|
133
|
-
The manifest freezes the compiler version
|
|
134
|
-
|
|
145
|
+
The manifest freezes the compiler version and an explicit runtime version. New
|
|
146
|
+
exports target the current producer version (`0.1.1.dev2` in this unreleased
|
|
147
|
+
candidate). The dev2 reader accepts the reviewed set `0.1.1.dev1` and `0.1.1.dev2`;
|
|
148
|
+
original dev1 manifests retain their pin and hashes. This packaging fix preserves
|
|
149
|
+
token and plan semantics. dev0 and future versions are rejected until explicitly
|
|
150
|
+
reviewed; there is no version-prefix or range-based compatibility inference.
|
|
151
|
+
The manifest also freezes the optimizer contract (v1–v8), evaluation semantics,
|
|
152
|
+
instruction envelope, conditional
|
|
135
153
|
permission, plan/spec hashes, model requirements and a small evidence summary.
|
|
136
154
|
`manifest_digest` is the canonical runtime `digest` of all raw manifest fields
|
|
137
155
|
except `manifest_digest`. Plan/spec digests use their validated model `.digest`.
|
|
@@ -181,7 +199,7 @@ the complete compiler-to-runtime lifecycle.
|
|
|
181
199
|
|
|
182
200
|
### Interpreter development
|
|
183
201
|
|
|
184
|
-
The
|
|
202
|
+
The published `0.1.1.dev1` readers support `optimizer-correctness-v8`.
|
|
185
203
|
New `chunk_text` steps may freeze `token_boundary: "utf8-v2"` with `unit: "tokens"`;
|
|
186
204
|
this counts tokenizer tokens without splitting UTF-8 characters. Steps without
|
|
187
205
|
the marker keep their historical chunk boundaries. The kernel still enforces its
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
Seldon Runtime's original code remains Apache-2.0. These upstream MIT notices
|
|
4
|
+
cover copied constructor/regex code and document vocabulary provenance; they
|
|
5
|
+
do not replace this distribution's license.
|
|
6
|
+
|
|
7
|
+
`data/o200k_base.tiktoken` is copied unchanged from OpenAI's public encoding URL.
|
|
8
|
+
Its SHA-256 and upstream constructor revision are in `data/provenance.json`.
|
|
9
|
+
The same bytes were independently verified in the MIT-licensed tiktoken-rs
|
|
10
|
+
repository at the recorded commit. No separate license statement for the Azure
|
|
11
|
+
rank file was located. The upstream project's MIT license and that existing
|
|
12
|
+
redistribution are the recorded basis, not an assertion of a separate asset
|
|
13
|
+
license or a legal determination.
|
|
14
|
+
|
|
15
|
+
## OpenAI tiktoken (regex/constructor and vocabulary provenance)
|
|
16
|
+
|
|
17
|
+
Source: https://raw.githubusercontent.com/openai/tiktoken/bfe00ad1bf59fac47513b45fe5173672dcbbcbb4/LICENSE
|
|
18
|
+
|
|
19
|
+
MIT License
|
|
20
|
+
|
|
21
|
+
Copyright (c) 2022 OpenAI, Shantanu Jain
|
|
22
|
+
|
|
23
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
24
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
25
|
+
in the Software without restriction, including without limitation the rights
|
|
26
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
27
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
28
|
+
furnished to do so, subject to the following conditions:
|
|
29
|
+
|
|
30
|
+
The above copyright notice and this permission notice shall be included in all
|
|
31
|
+
copies or substantial portions of the Software.
|
|
32
|
+
|
|
33
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
34
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
35
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
36
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
37
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
38
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
39
|
+
SOFTWARE.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## tiktoken-rs (byte-identical vocabulary redistribution provenance)
|
|
43
|
+
|
|
44
|
+
Source: https://raw.githubusercontent.com/zurawiki/tiktoken-rs/72a5a800651a1cea1ad609292446ba02c80e3bcd/LICENSE
|
|
45
|
+
|
|
46
|
+
MIT License
|
|
47
|
+
|
|
48
|
+
Copyright (c) 2023 Roger Zurawicki
|
|
49
|
+
|
|
50
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
51
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
52
|
+
in the Software without restriction, including without limitation the rights
|
|
53
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
54
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
55
|
+
furnished to do so, subject to the following conditions:
|
|
56
|
+
|
|
57
|
+
The above copyright notice and this permission notice shall be included in all
|
|
58
|
+
copies or substantial portions of the Software.
|
|
59
|
+
|
|
60
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
61
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
62
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
63
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
64
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
65
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
66
|
+
SOFTWARE.
|
|
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "seldon-runtime"
|
|
7
|
-
version = "0.1.1.
|
|
7
|
+
version = "0.1.1.dev2"
|
|
8
8
|
description = "Standalone Seldon Functions interpreter and local execution client"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
11
|
-
license-files = ["LICENSE", "NOTICE"]
|
|
11
|
+
license-files = ["LICENSE", "NOTICE", "THIRD_PARTY_NOTICES.md"]
|
|
12
12
|
requires-python = ">=3.11"
|
|
13
13
|
dependencies = ["pydantic>=2.2", "jsonschema>=4.21", "tiktoken>=0.7"]
|
|
14
14
|
|
|
@@ -24,6 +24,9 @@ schema = ["pydantic==2.14.4"]
|
|
|
24
24
|
[tool.setuptools]
|
|
25
25
|
packages = ["seldon_runtime"]
|
|
26
26
|
|
|
27
|
+
[tool.setuptools.package-data]
|
|
28
|
+
seldon_runtime = ["data/*.tiktoken", "data/*.json"]
|
|
29
|
+
|
|
27
30
|
[tool.pytest.ini_options]
|
|
28
31
|
testpaths = ["tests"]
|
|
29
32
|
markers = [
|
|
@@ -25,7 +25,7 @@ from .program_validation import validate_program
|
|
|
25
25
|
from .provider_error import ProviderError
|
|
26
26
|
|
|
27
27
|
MAX_ARTIFACT_BYTES = 2 * 1024 * 1024
|
|
28
|
-
RUNTIME_VERSION = "0.1.1.
|
|
28
|
+
RUNTIME_VERSION = "0.1.1.dev2"
|
|
29
29
|
_SHA256 = r"^[0-9a-f]{64}$"
|
|
30
30
|
Capability = Literal["chat", "structured_output", "tools"]
|
|
31
31
|
OptimizerContract = Literal[
|
|
@@ -69,9 +69,9 @@ class Evidence(_Data):
|
|
|
69
69
|
class ArtifactManifest(_Data):
|
|
70
70
|
version: Literal["compiler-artifact-v1"]
|
|
71
71
|
compiler_version: str = Field(min_length=1, max_length=64, pattern=r"^[a-zA-Z0-9.+_-]+$")
|
|
72
|
-
#
|
|
73
|
-
#
|
|
74
|
-
runtime_version: Literal["0.1.1.dev1"]
|
|
72
|
+
# Explicit reviewed reader compatibility, never a version-prefix/range guess.
|
|
73
|
+
# dev2 changes asset delivery only; dev1's token and plan semantics are frozen.
|
|
74
|
+
runtime_version: Literal["0.1.1.dev1", "0.1.1.dev2"]
|
|
75
75
|
optimizer_contract_version: OptimizerContract
|
|
76
76
|
instruction_envelope: Literal["instruction-envelope-v1"] | None
|
|
77
77
|
conditional: bool = Field(strict=True)
|