system HF Staff commited on
Commit
5e2b05f
·
verified ·
1 Parent(s): 4126208

Publish authorized source 5c074de75746

Browse files
Files changed (3) hide show
  1. README.md +8 -4
  2. publication.json +25 -25
  3. tests/test_miniembed.py +20 -0
README.md CHANGED
@@ -5,10 +5,8 @@ tags:
5
  - governance
6
  - provenance
7
  - suite
8
- - sklearn
9
- - embeddings
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-02T21:59:49.590055+00:00",
9
  "publisher": {
10
  "branch_protection_observed": true,
11
- "protected_main": "ef849ac2de50585a9eceee3b5122891043d56d8d",
12
  "repository": "szl-holdings/szl-forge",
13
- "revision": "ef849ac2de50585a9eceee3b5122891043d56d8d"
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": 110915903455,
22
  "conclusion": "success",
23
- "details_url": "https://github.com/szl-holdings/szl-kernels/actions/runs/37030527496/job/110915903455",
24
  "name": "Kernel contract",
25
  "status": "completed"
26
  },
27
  {
28
  "app_id": 15368,
29
- "check_run_id": 110915903069,
30
  "conclusion": "success",
31
- "details_url": "https://github.com/szl-holdings/szl-kernels/actions/runs/37030527496/job/110915903069",
32
  "name": "MiniEmbed artifact replay",
33
  "status": "completed"
34
  },
35
  {
36
  "app_id": 15368,
37
- "check_run_id": 110915903239,
38
  "conclusion": "success",
39
- "details_url": "https://github.com/szl-holdings/szl-kernels/actions/runs/37030527496/job/110915903239",
40
  "name": "Source binding dry run (no publication)",
41
  "status": "completed"
42
  }
43
  ],
44
- "protected_main": "386ab162712b79caeed9fef6b9c1e8ea059b74de",
45
  "repository": "szl-holdings/szl-kernels",
46
- "revision": "386ab162712b79caeed9fef6b9c1e8ea059b74de",
47
  "signature_reason": "valid",
48
  "signature_verified": true
49
  },
@@ -72,19 +72,19 @@
72
  "sha256": "7862ebac9193d010606d89fb5aa6c046cbd638590d7a40c068c7bb60b3ed665e"
73
  }
74
  ],
75
- "declared_files_present": 44,
76
- "revision": "f67a26a8141b1436ee2d1de64fb202c493981a2d"
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": "ef849ac2de50585a9eceee3b5122891043d56d8d",
82
  "run_attempt": "1",
83
- "run_id": "37069521663",
84
- "run_url": "https://github.com/szl-holdings/szl-forge/actions/runs/37069521663",
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/ef849ac2de50585a9eceee3b5122891043d56d8d/.github/workflows/publish-szl-kernels.yml"
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": "ef849ac2de50585a9eceee3b5122891043d56d8d",
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": "7920d6303b2cd187363de19066539960f432abb5c98c4a3bd7b8344e3265dabf",
115
  "declared_file_count": 54,
116
  "files": [
117
  {
@@ -135,9 +135,9 @@
135
  "sha256": "8402eed6dae6d6c724109026a25b8d0943741853a384b768a9d1cf9bf4cf9665"
136
  },
137
  {
138
- "bytes": 33014,
139
  "path": "README.md",
140
- "sha256": "cc35f06695130e0340c85bdd1a214090e65d38aa99083a2525b07b3dae65aa6b"
141
  },
142
  {
143
  "bytes": 1305,
@@ -320,9 +320,9 @@
320
  "sha256": "47f381b19f5651de94fe4db827849d4dcb2d61b605aa320e774120aad74b932a"
321
  },
322
  {
323
- "bytes": 8565,
324
  "path": "tests/test_miniembed.py",
325
- "sha256": "5f445ab98f3ffcd389a580bab3afc1ae049d0d62bba139dded81ea22c7bed90a"
326
  },
327
  {
328
  "bytes": 342,
@@ -385,9 +385,9 @@
385
  "sha256": "7862ebac9193d010606d89fb5aa6c046cbd638590d7a40c068c7bb60b3ed665e"
386
  }
387
  ],
388
- "revision": "386ab162712b79caeed9fef6b9c1e8ea059b74de",
389
  "url": "https://github.com/szl-holdings/szl-kernels"
390
  },
391
  "source_repository": "szl-holdings/szl-kernels",
392
- "source_revision": "386ab162712b79caeed9fef6b9c1e8ea059b74de"
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