Giuliocc commited on
Commit
2153e0a
·
verified ·
1 Parent(s): b6e07f2

Document task-specific local SDK, asset provenance and measured limits

Browse files
ModelRequest.schema.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additionalProperties": false,
3
+ "properties": {
4
+ "schema_version": {
5
+ "const": "doxa-portfolio-request-v1",
6
+ "default": "doxa-portfolio-request-v1",
7
+ "title": "Schema Version",
8
+ "type": "string"
9
+ },
10
+ "request_id": {
11
+ "maxLength": 200,
12
+ "minLength": 1,
13
+ "title": "Request Id",
14
+ "type": "string"
15
+ },
16
+ "model_id": {
17
+ "title": "Model Id",
18
+ "type": "string"
19
+ },
20
+ "revision": {
21
+ "pattern": "^[a-f0-9]{40}$",
22
+ "title": "Revision",
23
+ "type": "string"
24
+ },
25
+ "task": {
26
+ "title": "Task",
27
+ "type": "string"
28
+ },
29
+ "payload": {
30
+ "additionalProperties": true,
31
+ "title": "Payload",
32
+ "type": "object"
33
+ }
34
+ },
35
+ "required": [
36
+ "request_id",
37
+ "model_id",
38
+ "revision",
39
+ "task",
40
+ "payload"
41
+ ],
42
+ "title": "ModelRequest",
43
+ "type": "object"
44
+ }
ModelResult.schema.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additionalProperties": false,
3
+ "properties": {
4
+ "schema_version": {
5
+ "const": "doxa-portfolio-result-v1",
6
+ "default": "doxa-portfolio-result-v1",
7
+ "title": "Schema Version",
8
+ "type": "string"
9
+ },
10
+ "request_id": {
11
+ "title": "Request Id",
12
+ "type": "string"
13
+ },
14
+ "model_id": {
15
+ "title": "Model Id",
16
+ "type": "string"
17
+ },
18
+ "revision": {
19
+ "title": "Revision",
20
+ "type": "string"
21
+ },
22
+ "task": {
23
+ "title": "Task",
24
+ "type": "string"
25
+ },
26
+ "status": {
27
+ "enum": [
28
+ "ok",
29
+ "abstained",
30
+ "unsupported_task",
31
+ "invalid_input",
32
+ "dependency_unavailable",
33
+ "integrity_error",
34
+ "error"
35
+ ],
36
+ "title": "Status",
37
+ "type": "string"
38
+ },
39
+ "result": {
40
+ "anyOf": [
41
+ {
42
+ "additionalProperties": true,
43
+ "type": "object"
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ],
49
+ "title": "Result"
50
+ },
51
+ "reason": {
52
+ "anyOf": [
53
+ {
54
+ "type": "string"
55
+ },
56
+ {
57
+ "type": "null"
58
+ }
59
+ ],
60
+ "title": "Reason"
61
+ },
62
+ "scope_limitations": {
63
+ "items": {
64
+ "type": "string"
65
+ },
66
+ "title": "Scope Limitations",
67
+ "type": "array"
68
+ },
69
+ "source_payload_uploaded": {
70
+ "const": false,
71
+ "default": false,
72
+ "title": "Source Payload Uploaded",
73
+ "type": "boolean"
74
+ }
75
+ },
76
+ "required": [
77
+ "request_id",
78
+ "model_id",
79
+ "revision",
80
+ "task",
81
+ "status",
82
+ "result",
83
+ "reason",
84
+ "scope_limitations"
85
+ ],
86
+ "title": "ModelResult",
87
+ "type": "object"
88
+ }
README.md CHANGED
@@ -98,3 +98,19 @@ research-validity and comparative-bias questions need their own evidence
98
  and labels. The same news outlets can occur in training and test roles, and
99
  known source-URL imperfections remain documented. Additional independent
100
  evaluation is needed before broad service-quality claims.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  and labels. The same news outlets can occur in training and test roles, and
99
  known source-URL imperfections remain documented. Additional independent
100
  evaluation is needed before broad service-quality claims.
101
+
102
+ ## Local SDK and provenance contract
103
+
104
+ The [DOXA Methods foundation](https://huggingface.co/datasets/Giuliocc/doxa-methods) supplies a common local request/result envelope, exact-commit asset loader and checked source/reviewer schemas. This model retains its native task and output labels: `biased_wording`. Its recorded portfolio status is `qualified_news_wording_research`.
105
+
106
+ The [task manifest](portfolio-task.json) pins the existing inference artifact and expected hashes. Run it with the Methods SDK using `doxa portfolio fetch` and `doxa portfolio run`. Document text stays local; fetching public weights does not provide hosted inference. This update changes documentation and contracts; learned parameters are unchanged.
107
+
108
+ Scope boundaries:
109
+
110
+ - English news wording task.
111
+ - No supervised surrounding-article context.
112
+ - Input above256tokens unresolved.
113
+ - Browser improvement interval includes zero.
114
+ - Academic/prejudice/whole-document conclusions require separate validation.
115
+
116
+ Source judgments, model predictions and actual human review remain separate. The production new-reviewer registry starts empty. This model does not certify political neutrality, infer a person's beliefs or supply an overall political-bias percentage. See the [research foundation guide](https://huggingface.co/spaces/Giuliocc/doxa-lab/blob/main/RESEARCH_FOUNDATION.md) for data roles and independent evaluation requirements.
SHA256SUMS CHANGED
@@ -1,36 +1,4 @@
1
- 6d12a71bf69b1cb7098ebe44a9210c3b8522c16d5e08703e3bea4096dd8ca245 BROWSER_PARITY.json
2
- e298f9202485b61fdde484be745f0a8fd27a9b64d09c0356554fda05a8e42b56 EVALUATION.json
3
- e9d2f8ed07be1ff893fca7c5b7e6fc94f449d5154f779577851d48fc911693cd EVALUATION.md
4
- 2d42761f95fce054a9b8d855daf8d0d6536c8fc8426b9e779782d02d57cb3d65 EVALUATION_AMENDMENT_1.md
5
- 45fd0d26b7c78ec5963e396bfe3b9a42b087e90eaeaeb7855fa9c26db70412b2 EVALUATION_REGISTRATION.md
6
- 31fc3d9b7c6df27e565ddaf2699559657b1b5e589c7e39302879785a5a7eb46b EXPORT_ATTEMPTS.json
7
- 01f6c4e3cc7e65fcb0075bbeb8a2c75949aece7e3a688fc99126cd7d1817fc81 EXPORT_PLAN.md
8
- c750910939855b368a842e2ea980110b70cffbecadfc5ba227d53864bedde168 EXPORT_REPAIR.md
9
- ad30110089dd6c383018c49d773e39c44fd877df26fb97153d2f618cae47101e EXPORT_VALIDATION.json
10
- 9f7d90f371b824c9839f42bd9c6a41f7dee3f94471e0e46e2a24b82834a2b681 INDEPENDENT_GATE.json
11
- cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
12
- 69dbbaf5de5faed3503ea6a56fec0395b400323bba60def5bd9eac2860a6bdc7 NOTICE
13
- ca811a805c7d23904c2942c1084be21bf1fb663c39664d2a1ad8ed654bf2854a README.md
14
- 94dcbf331a205df0019bc0293befc4b8f96c440a98d777b9b73a3067862fd800 REPRODUCE.md
15
- 541dfafe727935e67c913d3a5496f70fd74541dcae22d8b0dc79cef46a260644 calibration.json
16
- 39d20dd17922da1c8cd2a09a0dd4aa5984c3c8d31b46635c841ee64c1579233e config.json
17
- 404a492d3842e035b5f6d7658391be8707574d66276821a15a8ba145457d35cc errors.json
18
- a910bf7b387cf6d0ac56b08b7f53325f13485cff4042e3a1e49ced3bb3adbf03 illustrations.json
19
- 1d42024cda004709af572fd5a47180594ea95eef89ae4b4b63cff3d589ccdd8e inference.py
20
- 224ccb559be77307594d4b520abe33edbee3fd1130f77e16f31196e0f47f3754 model.safetensors
21
- cb6dd5d63b6ed2f28c142141c263e3a29deb88289ad4dab50f7584a7c7b27d48 onnx/model_quantized.onnx
22
- 6bbe65acb427ee1dba69f3b2a008f8b92728c0a7d43c36c90352048671b8600c political_consistency_predictions.json
23
- 45d1943a7a7e3e7ae18e1b2ca381d900ba7806ca85043f7abc466685eaf8e988 requirements.txt
24
- 41d062afe08867983f40a4be89db9f16ad47f973aa6e29526759cad4295f835a runtime_manifest.json
25
- 5d5b662e421ea9fac075174bb0688ee0d9431699900b90662acd44b2a350503a special_tokens_map.json
26
- 7d93e95a031b67a588b7cb2a0bfd214754e6e11ff26e7a079d9ab5268b0b9a99 test_predictions.jsonl
27
- d241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66 tokenizer.json
28
- ccb4eb21a03e1442ee5c3f85431b9c307960a04579942537d74778dc8080a48c tokenizer_config.json
29
- 67c0d1e6ca6e29100b153f72e29f83f1dd7a773b94da624b225607661041b097 training/browser_parity.mjs
30
- 55505241377ec18a9a1837aa74d886605e523dcc5b8f3c248f3c981742a913e5 training/finalize_export.py
31
- e581c26fdd805edb09d0b903ef51149b09c02769fcef5334184779b0e7b510eb training/package_model.py
32
- 223ee08a340b9f0f7007fe96fae187b148de5eee24188ed103e5df91cce10a2e training/repair_export.py
33
- fd0f13a799c79558de04767f6e35c5362d7353b1a3eab85841bd3f252e96778e training/train.py
34
- ee1d041606ba9e9dfe4e14aa7fdde703e016ca2ef33091c6fc13f9b00700d7fc training_history.json
35
- 64bdbe8b2dcfd71a74b7e2470c1866eb6c2bdf232606254d09e9e378ac291d3c validation_controls.json
36
- 07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3 vocab.txt
 
1
+ 870ee85850fc18cff4777cfe5f95509ad58dd502c1ea361b7dc1acf1421dcf26 ModelRequest.schema.json
2
+ 785889c1278d942517fc31fcaa6380892b4ffa05de8e0ef1452022782948e081 ModelResult.schema.json
3
+ 5b2520a2bd6e011afa2db3089b39bdec8d62729f4cdc35dd91b0cd57a24f008e README.md
4
+ b674341c3f649cc7bd17cbfc30111e8296ab37fc58e7b99cb9c72c44a9072ac5 portfolio-task.json
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
portfolio-task.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_id": "Giuliocc/doxa-wording-encoder",
3
+ "revision": "b6e07f2cc0ea82c0c46b89aac65fee8b74660db5",
4
+ "task": "biased_wording",
5
+ "status": "qualified_news_wording_research",
6
+ "format": "doxa_wording_onnx",
7
+ "files": {
8
+ "runtime_manifest.json": {
9
+ "sha256": "41d062afe08867983f40a4be89db9f16ad47f973aa6e29526759cad4295f835a",
10
+ "bytes": 824
11
+ },
12
+ "tokenizer.json": {
13
+ "sha256": "d241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66",
14
+ "bytes": 711396
15
+ },
16
+ "onnx/model_quantized.onnx": {
17
+ "sha256": "cb6dd5d63b6ed2f28c142141c263e3a29deb88289ad4dab50f7584a7c7b27d48",
18
+ "bytes": 23157564
19
+ }
20
+ },
21
+ "card_url": "https://huggingface.co/Giuliocc/doxa-wording-encoder/blob/b6e07f2cc0ea82c0c46b89aac65fee8b74660db5/README.md",
22
+ "limitations": [
23
+ "English news wording task",
24
+ "No supervised surrounding-article context",
25
+ "Input above256tokens unresolved",
26
+ "Browser improvement interval includes zero",
27
+ "Academic/prejudice/whole-document conclusions require separate validation"
28
+ ],
29
+ "request_contract": "doxa-portfolio-request-v1",
30
+ "inference_location": "local_cpu_or_browser_where_supported",
31
+ "source_payload_uploaded": false
32
+ }