Publish inference-only contextual model v0.1.0
Browse files- README.md +49 -0
- base_config.json +34 -0
- config.json +29 -0
- model.safetensors +3 -0
- provenance.json +41 -0
- tokenizer/tokenizer.json +0 -0
- tokenizer/tokenizer_config.json +24 -0
README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: premove-itn
|
| 3 |
+
tags:
|
| 4 |
+
- inverse-text-normalization
|
| 5 |
+
- voice-agents
|
| 6 |
+
- custom-code
|
| 7 |
+
license: mit
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Premove ITN Contextual v0.1.0
|
| 11 |
+
|
| 12 |
+
This is the first frozen, inference-only artifact for Premove ITN's
|
| 13 |
+
structured-value contextual scorer. It contains the complete trained model
|
| 14 |
+
parameters in `model.safetensors`, the exact DeBERTa configuration, and the
|
| 15 |
+
tokenizer files used by the selected production checkpoint. Optimizer state,
|
| 16 |
+
schedulers, counters, and training datasets are not included.
|
| 17 |
+
|
| 18 |
+
The artifact is loaded through the `premove-itn` package. It is not a generic
|
| 19 |
+
Transformers model; use the package loader so candidate generation and scoring
|
| 20 |
+
stay aligned with the release implementation:
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
from premove_itn.inference_artifact import load_inference_artifact
|
| 24 |
+
|
| 25 |
+
artifact = load_inference_artifact(".")
|
| 26 |
+
model = artifact.model
|
| 27 |
+
tokenizer = artifact.tokenizer
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
The model uses `microsoft/deberta-v3-large` at the exact revision recorded in
|
| 31 |
+
`provenance.json`. The base model is referenced rather than redistributed.
|
| 32 |
+
Microsoft's model card lists the base model and tokenizer under the MIT
|
| 33 |
+
license; retain that attribution when redistributing this artifact.
|
| 34 |
+
|
| 35 |
+
This release is tagged `v0.1.0`. Do not move or overwrite that tag after
|
| 36 |
+
publication. The artifact digest and source checkpoint lineage are recorded in
|
| 37 |
+
`provenance.json`.
|
| 38 |
+
|
| 39 |
+
## Scope
|
| 40 |
+
|
| 41 |
+
The supported span kinds are the values listed in `config.json`. This artifact
|
| 42 |
+
selects deterministic Rust candidates with a contextual scorer. It does not
|
| 43 |
+
contain training data or the frozen VoiceAgent benchmark dataset.
|
| 44 |
+
|
| 45 |
+
## Release identity
|
| 46 |
+
|
| 47 |
+
- Artifact version: `v0.1.0`
|
| 48 |
+
- Architecture: `premove-candidate-scorer-v1`
|
| 49 |
+
- Package version: `0.1.0`
|
base_config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attention_probs_dropout_prob": 0.1,
|
| 3 |
+
"bos_token_id": null,
|
| 4 |
+
"eos_token_id": null,
|
| 5 |
+
"hidden_act": "gelu",
|
| 6 |
+
"hidden_dropout_prob": 0.1,
|
| 7 |
+
"hidden_size": 1024,
|
| 8 |
+
"initializer_range": 0.02,
|
| 9 |
+
"intermediate_size": 4096,
|
| 10 |
+
"layer_norm_eps": 1e-07,
|
| 11 |
+
"legacy": true,
|
| 12 |
+
"max_position_embeddings": 512,
|
| 13 |
+
"max_relative_positions": -1,
|
| 14 |
+
"model_type": "deberta-v2",
|
| 15 |
+
"norm_rel_ebd": "layer_norm",
|
| 16 |
+
"num_attention_heads": 16,
|
| 17 |
+
"num_hidden_layers": 24,
|
| 18 |
+
"pad_token_id": 0,
|
| 19 |
+
"pooler_dropout": 0.0,
|
| 20 |
+
"pooler_hidden_act": "gelu",
|
| 21 |
+
"pooler_hidden_size": 1024,
|
| 22 |
+
"pos_att_type": [
|
| 23 |
+
"p2c",
|
| 24 |
+
"c2p"
|
| 25 |
+
],
|
| 26 |
+
"position_biased_input": false,
|
| 27 |
+
"position_buckets": 256,
|
| 28 |
+
"relative_attention": true,
|
| 29 |
+
"share_att_key": true,
|
| 30 |
+
"tie_word_embeddings": true,
|
| 31 |
+
"transformers_version": "5.16.1",
|
| 32 |
+
"type_vocab_size": 0,
|
| 33 |
+
"vocab_size": 128100
|
| 34 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture_version": "premove-candidate-scorer-v1",
|
| 3 |
+
"artifact_schema_version": 1,
|
| 4 |
+
"base_config_file": "base_config.json",
|
| 5 |
+
"base_model": "microsoft/deberta-v3-large",
|
| 6 |
+
"base_model_revision": "64a8c8eab3e352a784c658aef62be1662607476f",
|
| 7 |
+
"dropout": 0.1,
|
| 8 |
+
"kind_embedding_size": 32,
|
| 9 |
+
"model_max_tokens": 512,
|
| 10 |
+
"scorer_hidden_size": 256,
|
| 11 |
+
"state_dict_file": "model.safetensors",
|
| 12 |
+
"supported_span_kinds": [
|
| 13 |
+
"DIGIT_SEQUENCE",
|
| 14 |
+
"CARDINAL",
|
| 15 |
+
"TIME",
|
| 16 |
+
"DATE",
|
| 17 |
+
"MONEY",
|
| 18 |
+
"DECIMAL",
|
| 19 |
+
"PHONE",
|
| 20 |
+
"ELECTRONIC",
|
| 21 |
+
"MEASUREMENT",
|
| 22 |
+
"ORDINAL",
|
| 23 |
+
"PUNCTUATION",
|
| 24 |
+
"WHITELIST",
|
| 25 |
+
"WORD"
|
| 26 |
+
],
|
| 27 |
+
"tokenizer_dir": "tokenizer",
|
| 28 |
+
"tokenizer_revision": "64a8c8eab3e352a784c658aef62be1662607476f"
|
| 29 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:119c0f19767b61446e04da1f8f01a001edf97a47a66965e7146db2483b4937a1
|
| 3 |
+
size 1742425916
|
provenance.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": "premove-candidate-scorer-v1",
|
| 3 |
+
"artifact_sha256": "119c0f19767b61446e04da1f8f01a001edf97a47a66965e7146db2483b4937a1",
|
| 4 |
+
"artifact_sha256_definition": "SHA-256 of model.safetensors",
|
| 5 |
+
"artifact_version": "v0.1.0",
|
| 6 |
+
"hub_repository": "premove-itn/premove-itn-contextual",
|
| 7 |
+
"hub_revision": "v0.1.0",
|
| 8 |
+
"base_model": "microsoft/deberta-v3-large",
|
| 9 |
+
"base_model_revision": "64a8c8eab3e352a784c658aef62be1662607476f",
|
| 10 |
+
"benchmark_checkpoint_sha256": "9021fa11a028faefb31ef67878170cbe29ed25e68a9a78999f37b120c2ad00d5",
|
| 11 |
+
"package_version": "0.1.0",
|
| 12 |
+
"production_manifest": "data/models/structured_value_selected_20k/manifest.json",
|
| 13 |
+
"redistribution": {
|
| 14 |
+
"base_model_license": "MIT (as listed by microsoft/deberta-v3-large)",
|
| 15 |
+
"base_model_weights_included": false,
|
| 16 |
+
"project_license": "MIT",
|
| 17 |
+
"tokenizer_files_included": true
|
| 18 |
+
},
|
| 19 |
+
"source_checkpoint": "data/models/structured_value_selected_20k/checkpoint.pt",
|
| 20 |
+
"source_checkpoint_sha256": "9021fa11a028faefb31ef67878170cbe29ed25e68a9a78999f37b120c2ad00d5",
|
| 21 |
+
"supported_span_kinds": [
|
| 22 |
+
"DIGIT_SEQUENCE",
|
| 23 |
+
"CARDINAL",
|
| 24 |
+
"TIME",
|
| 25 |
+
"DATE",
|
| 26 |
+
"MONEY",
|
| 27 |
+
"DECIMAL",
|
| 28 |
+
"PHONE",
|
| 29 |
+
"ELECTRONIC",
|
| 30 |
+
"MEASUREMENT",
|
| 31 |
+
"ORDINAL",
|
| 32 |
+
"PUNCTUATION",
|
| 33 |
+
"WHITELIST",
|
| 34 |
+
"WORD"
|
| 35 |
+
],
|
| 36 |
+
"tokenizer_revision": "64a8c8eab3e352a784c658aef62be1662607476f",
|
| 37 |
+
"training_lineage": {
|
| 38 |
+
"combined_exposure": 418000,
|
| 39 |
+
"run_fingerprint": "96c110801753166276df98ca9d65406f161009b8e981c03ca8cca94a9fb489fe"
|
| 40 |
+
}
|
| 41 |
+
}
|
tokenizer/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "[CLS]",
|
| 5 |
+
"cls_token": "[CLS]",
|
| 6 |
+
"do_lower_case": false,
|
| 7 |
+
"eos_token": "[SEP]",
|
| 8 |
+
"extra_special_tokens": [
|
| 9 |
+
"[PAD]",
|
| 10 |
+
"[CLS]",
|
| 11 |
+
"[SEP]"
|
| 12 |
+
],
|
| 13 |
+
"is_local": false,
|
| 14 |
+
"local_files_only": false,
|
| 15 |
+
"mask_token": "[MASK]",
|
| 16 |
+
"model_max_length": 512,
|
| 17 |
+
"pad_token": "[PAD]",
|
| 18 |
+
"sep_token": "[SEP]",
|
| 19 |
+
"split_by_punct": false,
|
| 20 |
+
"tokenizer_class": "DebertaV2Tokenizer",
|
| 21 |
+
"unk_id": 3,
|
| 22 |
+
"unk_token": "[UNK]",
|
| 23 |
+
"vocab_type": "spm"
|
| 24 |
+
}
|