Kernels
kernel
governance
provenance
suite
embedding-table
not-a-transformers-config
doi:10.5281/zenodo.19944926
Instructions to use SZLHOLDINGS/szl-kernels with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use SZLHOLDINGS/szl-kernels with Kernels:
# !pip install kernels from kernels import get_kernel # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("SZLHOLDINGS/szl-kernels", version=1) - Notebooks
- Google Colab
- Kaggle
Publish authorized source 5c074de75746
Browse files- README.md +8 -4
- publication.json +25 -25
- tests/test_miniembed.py +20 -0
README.md
CHANGED
|
@@ -5,10 +5,8 @@ tags:
|
|
| 5 |
- governance
|
| 6 |
- provenance
|
| 7 |
- suite
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
- word-embeddings
|
| 11 |
-
- feature-extraction
|
| 12 |
- doi:10.5281/zenodo.19944926
|
| 13 |
library_name: kernels
|
| 14 |
license: apache-2.0
|
|
@@ -69,6 +67,12 @@ This is a governed kernel suite with a receipted word-embedding companion. It is
|
|
| 69 |
not a general-purpose language model, and its intrinsic nearest-neighbor replay
|
| 70 |
is not a downstream quality benchmark.
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
## Artifact truth card
|
| 73 |
|
| 74 |
| Lane | Classification | Evidence available here | Limitation |
|
|
|
|
| 5 |
- governance
|
| 6 |
- provenance
|
| 7 |
- suite
|
| 8 |
+
- embedding-table
|
| 9 |
+
- not-a-transformers-config
|
|
|
|
|
|
|
| 10 |
- doi:10.5281/zenodo.19944926
|
| 11 |
library_name: kernels
|
| 12 |
license: apache-2.0
|
|
|
|
| 67 |
not a general-purpose language model, and its intrinsic nearest-neighbor replay
|
| 68 |
is not a downstream quality benchmark.
|
| 69 |
|
| 70 |
+
The legacy model-type mirror intentionally has no hosted `feature-extraction`
|
| 71 |
+
task tag. Its `config.json` describes the PPMI/SVD MiniEmbed table, not a
|
| 72 |
+
Transformers configuration; `AutoConfig`/`AutoModel` and the standard inference
|
| 73 |
+
widget cannot load it. Use the documented `MiniEmbed` loader at a reviewed,
|
| 74 |
+
immutable revision instead.
|
| 75 |
+
|
| 76 |
## Artifact truth card
|
| 77 |
|
| 78 |
| Lane | Classification | Evidence available here | Limitation |
|
publication.json
CHANGED
|
@@ -5,12 +5,12 @@
|
|
| 5 |
"repo_type": "model"
|
| 6 |
},
|
| 7 |
"authorization": {
|
| 8 |
-
"authorized_at": "2026-10-
|
| 9 |
"publisher": {
|
| 10 |
"branch_protection_observed": true,
|
| 11 |
-
"protected_main": "
|
| 12 |
"repository": "szl-holdings/szl-forge",
|
| 13 |
-
"revision": "
|
| 14 |
},
|
| 15 |
"schema": "szl.kernels-release-authorization/v1",
|
| 16 |
"source": {
|
|
@@ -18,32 +18,32 @@
|
|
| 18 |
"checks": [
|
| 19 |
{
|
| 20 |
"app_id": 15368,
|
| 21 |
-
"check_run_id":
|
| 22 |
"conclusion": "success",
|
| 23 |
-
"details_url": "https://github.com/szl-holdings/szl-kernels/actions/runs/
|
| 24 |
"name": "Kernel contract",
|
| 25 |
"status": "completed"
|
| 26 |
},
|
| 27 |
{
|
| 28 |
"app_id": 15368,
|
| 29 |
-
"check_run_id":
|
| 30 |
"conclusion": "success",
|
| 31 |
-
"details_url": "https://github.com/szl-holdings/szl-kernels/actions/runs/
|
| 32 |
"name": "MiniEmbed artifact replay",
|
| 33 |
"status": "completed"
|
| 34 |
},
|
| 35 |
{
|
| 36 |
"app_id": 15368,
|
| 37 |
-
"check_run_id":
|
| 38 |
"conclusion": "success",
|
| 39 |
-
"details_url": "https://github.com/szl-holdings/szl-kernels/actions/runs/
|
| 40 |
"name": "Source binding dry run (no publication)",
|
| 41 |
"status": "completed"
|
| 42 |
}
|
| 43 |
],
|
| 44 |
-
"protected_main": "
|
| 45 |
"repository": "szl-holdings/szl-kernels",
|
| 46 |
-
"revision": "
|
| 47 |
"signature_reason": "valid",
|
| 48 |
"signature_verified": true
|
| 49 |
},
|
|
@@ -72,19 +72,19 @@
|
|
| 72 |
"sha256": "7862ebac9193d010606d89fb5aa6c046cbd638590d7a40c068c7bb60b3ed665e"
|
| 73 |
}
|
| 74 |
],
|
| 75 |
-
"declared_files_present":
|
| 76 |
-
"revision": "
|
| 77 |
},
|
| 78 |
"publisher": {
|
| 79 |
"certificate_identity": "https://github.com/szl-holdings/szl-forge/.github/workflows/publish-szl-kernels.yml@refs/heads/main",
|
| 80 |
"repository": "szl-holdings/szl-forge",
|
| 81 |
-
"revision": "
|
| 82 |
"run_attempt": "1",
|
| 83 |
-
"run_id": "
|
| 84 |
-
"run_url": "https://github.com/szl-holdings/szl-forge/actions/runs/
|
| 85 |
"workflow_path": ".github/workflows/publish-szl-kernels.yml",
|
| 86 |
"workflow_ref": "szl-holdings/szl-forge/.github/workflows/publish-szl-kernels.yml@refs/heads/main",
|
| 87 |
-
"workflow_url": "https://github.com/szl-holdings/szl-forge/blob/
|
| 88 |
},
|
| 89 |
"publisher_authority": {
|
| 90 |
"audience": "https://huggingface.co",
|
|
@@ -97,7 +97,7 @@
|
|
| 97 |
"issuer": "https://token.actions.githubusercontent.com",
|
| 98 |
"mode": "GITHUB_OIDC_REPO_SCOPED",
|
| 99 |
"persistent_hub_secret_used": false,
|
| 100 |
-
"publisher_revision": "
|
| 101 |
"resources": {
|
| 102 |
"first_class_kernel": "kernels/SZLHOLDINGS/szl-kernels",
|
| 103 |
"legacy_model": "SZLHOLDINGS/szl-kernels"
|
|
@@ -111,7 +111,7 @@
|
|
| 111 |
},
|
| 112 |
"schema": "szl.hf-kernel-source-binding/v2",
|
| 113 |
"source": {
|
| 114 |
-
"artifact_tree_sha256": "
|
| 115 |
"declared_file_count": 54,
|
| 116 |
"files": [
|
| 117 |
{
|
|
@@ -135,9 +135,9 @@
|
|
| 135 |
"sha256": "8402eed6dae6d6c724109026a25b8d0943741853a384b768a9d1cf9bf4cf9665"
|
| 136 |
},
|
| 137 |
{
|
| 138 |
-
"bytes":
|
| 139 |
"path": "README.md",
|
| 140 |
-
"sha256": "
|
| 141 |
},
|
| 142 |
{
|
| 143 |
"bytes": 1305,
|
|
@@ -320,9 +320,9 @@
|
|
| 320 |
"sha256": "47f381b19f5651de94fe4db827849d4dcb2d61b605aa320e774120aad74b932a"
|
| 321 |
},
|
| 322 |
{
|
| 323 |
-
"bytes":
|
| 324 |
"path": "tests/test_miniembed.py",
|
| 325 |
-
"sha256": "
|
| 326 |
},
|
| 327 |
{
|
| 328 |
"bytes": 342,
|
|
@@ -385,9 +385,9 @@
|
|
| 385 |
"sha256": "7862ebac9193d010606d89fb5aa6c046cbd638590d7a40c068c7bb60b3ed665e"
|
| 386 |
}
|
| 387 |
],
|
| 388 |
-
"revision": "
|
| 389 |
"url": "https://github.com/szl-holdings/szl-kernels"
|
| 390 |
},
|
| 391 |
"source_repository": "szl-holdings/szl-kernels",
|
| 392 |
-
"source_revision": "
|
| 393 |
}
|
|
|
|
| 5 |
"repo_type": "model"
|
| 6 |
},
|
| 7 |
"authorization": {
|
| 8 |
+
"authorized_at": "2026-10-02T22:49:12.916200+00:00",
|
| 9 |
"publisher": {
|
| 10 |
"branch_protection_observed": true,
|
| 11 |
+
"protected_main": "4afae5a942a0ac3fd7c906b4c7aefb6a4f5b3c41",
|
| 12 |
"repository": "szl-holdings/szl-forge",
|
| 13 |
+
"revision": "4afae5a942a0ac3fd7c906b4c7aefb6a4f5b3c41"
|
| 14 |
},
|
| 15 |
"schema": "szl.kernels-release-authorization/v1",
|
| 16 |
"source": {
|
|
|
|
| 18 |
"checks": [
|
| 19 |
{
|
| 20 |
"app_id": 15368,
|
| 21 |
+
"check_run_id": 111058481400,
|
| 22 |
"conclusion": "success",
|
| 23 |
+
"details_url": "https://github.com/szl-holdings/szl-kernels/actions/runs/37073617077/job/111058481400",
|
| 24 |
"name": "Kernel contract",
|
| 25 |
"status": "completed"
|
| 26 |
},
|
| 27 |
{
|
| 28 |
"app_id": 15368,
|
| 29 |
+
"check_run_id": 111058481499,
|
| 30 |
"conclusion": "success",
|
| 31 |
+
"details_url": "https://github.com/szl-holdings/szl-kernels/actions/runs/37073617077/job/111058481499",
|
| 32 |
"name": "MiniEmbed artifact replay",
|
| 33 |
"status": "completed"
|
| 34 |
},
|
| 35 |
{
|
| 36 |
"app_id": 15368,
|
| 37 |
+
"check_run_id": 111058481235,
|
| 38 |
"conclusion": "success",
|
| 39 |
+
"details_url": "https://github.com/szl-holdings/szl-kernels/actions/runs/37073617077/job/111058481235",
|
| 40 |
"name": "Source binding dry run (no publication)",
|
| 41 |
"status": "completed"
|
| 42 |
}
|
| 43 |
],
|
| 44 |
+
"protected_main": "5c074de75746b54c96798498007d9d975db07aad",
|
| 45 |
"repository": "szl-holdings/szl-kernels",
|
| 46 |
+
"revision": "5c074de75746b54c96798498007d9d975db07aad",
|
| 47 |
"signature_reason": "valid",
|
| 48 |
"signature_verified": true
|
| 49 |
},
|
|
|
|
| 72 |
"sha256": "7862ebac9193d010606d89fb5aa6c046cbd638590d7a40c068c7bb60b3ed665e"
|
| 73 |
}
|
| 74 |
],
|
| 75 |
+
"declared_files_present": 54,
|
| 76 |
+
"revision": "4126208d9ae1f17c7dda589e2dc32811d1c3dafb"
|
| 77 |
},
|
| 78 |
"publisher": {
|
| 79 |
"certificate_identity": "https://github.com/szl-holdings/szl-forge/.github/workflows/publish-szl-kernels.yml@refs/heads/main",
|
| 80 |
"repository": "szl-holdings/szl-forge",
|
| 81 |
+
"revision": "4afae5a942a0ac3fd7c906b4c7aefb6a4f5b3c41",
|
| 82 |
"run_attempt": "1",
|
| 83 |
+
"run_id": "37073876711",
|
| 84 |
+
"run_url": "https://github.com/szl-holdings/szl-forge/actions/runs/37073876711",
|
| 85 |
"workflow_path": ".github/workflows/publish-szl-kernels.yml",
|
| 86 |
"workflow_ref": "szl-holdings/szl-forge/.github/workflows/publish-szl-kernels.yml@refs/heads/main",
|
| 87 |
+
"workflow_url": "https://github.com/szl-holdings/szl-forge/blob/4afae5a942a0ac3fd7c906b4c7aefb6a4f5b3c41/.github/workflows/publish-szl-kernels.yml"
|
| 88 |
},
|
| 89 |
"publisher_authority": {
|
| 90 |
"audience": "https://huggingface.co",
|
|
|
|
| 97 |
"issuer": "https://token.actions.githubusercontent.com",
|
| 98 |
"mode": "GITHUB_OIDC_REPO_SCOPED",
|
| 99 |
"persistent_hub_secret_used": false,
|
| 100 |
+
"publisher_revision": "4afae5a942a0ac3fd7c906b4c7aefb6a4f5b3c41",
|
| 101 |
"resources": {
|
| 102 |
"first_class_kernel": "kernels/SZLHOLDINGS/szl-kernels",
|
| 103 |
"legacy_model": "SZLHOLDINGS/szl-kernels"
|
|
|
|
| 111 |
},
|
| 112 |
"schema": "szl.hf-kernel-source-binding/v2",
|
| 113 |
"source": {
|
| 114 |
+
"artifact_tree_sha256": "4852c1e0b98ab53e20c4d37b367459930cdfc5cc7de003b67ba453080def948d",
|
| 115 |
"declared_file_count": 54,
|
| 116 |
"files": [
|
| 117 |
{
|
|
|
|
| 135 |
"sha256": "8402eed6dae6d6c724109026a25b8d0943741853a384b768a9d1cf9bf4cf9665"
|
| 136 |
},
|
| 137 |
{
|
| 138 |
+
"bytes": 33335,
|
| 139 |
"path": "README.md",
|
| 140 |
+
"sha256": "ba3751f912f4a9693434c40a42e1856dd748844584a890408494a7b2d870bb74"
|
| 141 |
},
|
| 142 |
{
|
| 143 |
"bytes": 1305,
|
|
|
|
| 320 |
"sha256": "47f381b19f5651de94fe4db827849d4dcb2d61b605aa320e774120aad74b932a"
|
| 321 |
},
|
| 322 |
{
|
| 323 |
+
"bytes": 9319,
|
| 324 |
"path": "tests/test_miniembed.py",
|
| 325 |
+
"sha256": "f68529342ff8fd99a66523787e3942abf2b9c1458bec2022e5e6fad1ea03dd9c"
|
| 326 |
},
|
| 327 |
{
|
| 328 |
"bytes": 342,
|
|
|
|
| 385 |
"sha256": "7862ebac9193d010606d89fb5aa6c046cbd638590d7a40c068c7bb60b3ed665e"
|
| 386 |
}
|
| 387 |
],
|
| 388 |
+
"revision": "5c074de75746b54c96798498007d9d975db07aad",
|
| 389 |
"url": "https://github.com/szl-holdings/szl-kernels"
|
| 390 |
},
|
| 391 |
"source_repository": "szl-holdings/szl-kernels",
|
| 392 |
+
"source_revision": "5c074de75746b54c96798498007d9d975db07aad"
|
| 393 |
}
|
tests/test_miniembed.py
CHANGED
|
@@ -217,3 +217,23 @@ def test_metadata_name_is_legal_dashed_kernel_id() -> None:
|
|
| 217 |
)
|
| 218 |
assert meta["name"] == "szl-kernels"
|
| 219 |
assert meta["miniembed"]["kind"] == "distributional_word_embedding_table"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
)
|
| 218 |
assert meta["name"] == "szl-kernels"
|
| 219 |
assert meta["miniembed"]["kind"] == "distributional_word_embedding_table"
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
def test_model_card_does_not_advertise_unsupported_feature_extraction() -> None:
|
| 223 |
+
readme = (ROOT / "README.md").read_text(encoding="utf-8")
|
| 224 |
+
lines = readme.splitlines()
|
| 225 |
+
assert lines[0] == "---"
|
| 226 |
+
front = lines[1 : lines.index("---", 1)]
|
| 227 |
+
tag_start = front.index("tags:") + 1
|
| 228 |
+
tags = set()
|
| 229 |
+
for line in front[tag_start:]:
|
| 230 |
+
if not line.startswith("- "):
|
| 231 |
+
break
|
| 232 |
+
tags.add(line[2:])
|
| 233 |
+
|
| 234 |
+
assert {"embedding-table", "not-a-transformers-config"} <= tags
|
| 235 |
+
assert not tags.intersection(
|
| 236 |
+
{"feature-extraction", "embeddings", "word-embeddings", "sklearn"}
|
| 237 |
+
)
|
| 238 |
+
config = json.loads((ROOT / "config.json").read_text(encoding="utf-8"))
|
| 239 |
+
assert "model_type" not in config and "auto_map" not in config
|