Add OpenMed validation model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: deepgrove/maple-preview
|
| 3 |
+
base_model_relation: quantized
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
library_name: onnxruntime
|
| 7 |
+
license: mit
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
tags:
|
| 10 |
+
- onnx
|
| 11 |
+
- onnxruntime-web
|
| 12 |
+
- webgpu
|
| 13 |
+
- browser
|
| 14 |
+
- maple
|
| 15 |
+
- mixture-of-experts
|
| 16 |
+
- quantized
|
| 17 |
+
- openmed
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# Maple Preview 4-bit ONNX for browser WebGPU
|
| 21 |
+
|
| 22 |
+
Private OpenMed development export of
|
| 23 |
+
[`deepgrove/maple-preview`](https://huggingface.co/deepgrove/maple-preview)
|
| 24 |
+
revision `ac1ddd79d2b5cb4406f5d2bebdf95406ce505a07` for a compatible ONNX
|
| 25 |
+
Runtime Web/WebGPU integration. The expert matrices use symmetric 4-bit,
|
| 26 |
+
128-value blocks through the fused `com.microsoft.QMoE` operator; cache and
|
| 27 |
+
logit I/O use FP16. The included `openmed-maple-onnx-export.json` records file
|
| 28 |
+
hashes, source provenance, the exact toolchain, and validation gates.
|
| 29 |
+
|
| 30 |
+
## Validation status
|
| 31 |
+
|
| 32 |
+
The complete 24-layer graph passed ONNX checker and OpenMed's graph contract.
|
| 33 |
+
On ONNX Runtime 1.25.1 CPU it completed a real one-token prefill and cached
|
| 34 |
+
decode with finite logits and correct KV growth. Physical browser WebGPU
|
| 35 |
+
execution, source-logit parity, useful generation, direct-identifier recall,
|
| 36 |
+
critical-leakage, peak memory, and latency remain release gates.
|
| 37 |
+
|
| 38 |
+
This custom Maple graph is not a stock Transformers.js model. The browser demo
|
| 39 |
+
requires an audited, same-origin adapter with compatible QMoE support. See
|
| 40 |
+
[`docs/maple-on-device.md`](https://github.com/maziyarpanahi/openmed/blob/master/docs/maple-on-device.md)
|
| 41 |
+
and the standalone demo in `docs/demo/web/`. Notes and generated outputs must
|
| 42 |
+
not be persisted in browser storage, and PHI workflows must not use cloud
|
| 43 |
+
fallback.
|
| 44 |
+
|
| 45 |
+
Maple Preview is a research model, not a medical device. It must not
|
| 46 |
+
automatically trigger clinical or disclosure decisions. The upstream model is
|
| 47 |
+
licensed under MIT; see its repository for the license and model card.
|