Upload from tools/hosting/upload_models.py
Browse files- .gitattributes +1 -0
- README.md +19 -0
- calibration.json +5 -0
- export.json +4 -0
- onnx/model_fp16.onnx +3 -0
- onnx/model_fp16.onnx_data +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +24 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
onnx/model_fp16.onnx_data filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: knowledgator/gliclass-v4-edge
|
| 4 |
+
library_name: onnx
|
| 5 |
+
tags: [onnx, webgpu, game, zero-shot-classification]
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Handler: GLiClass for orders
|
| 9 |
+
|
| 10 |
+
knowledgator/gliclass-v4-edge (built on microsoft/deberta-v3-large) fine-tuned to read the spoken orders in Handler,
|
| 11 |
+
a game in which you talk two spies through a mission. This is the fp16 ONNX export the game runs in the browser with
|
| 12 |
+
onnxruntime-web on WebGPU, one run per question.
|
| 13 |
+
|
| 14 |
+
- Inputs `input_ids` and `attention_mask`; the output is calibrated logits for 25 option slots. Keep the first n for a
|
| 15 |
+
question's n options and apply `calibration.json`'s temperature: softmax(logits / T).
|
| 16 |
+
- The text is every option as `<<LABEL>>key: description`, then `<<SEP>>`, the question's instructions and the
|
| 17 |
+
state (gliclass 0.1.22's uni-encoder pipeline).
|
| 18 |
+
|
| 19 |
+
Licence: Apache 2.0, as for GLiClass v4 Edge (Knowledgator); DeBERTa-v3 by Microsoft is MIT.
|
calibration.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"temperature": 1.934621684591098,
|
| 3 |
+
"base": "knowledgator/gliclass-v4-edge",
|
| 4 |
+
"problem_type": "single_label_classification"
|
| 5 |
+
}
|
export.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_labels": 25,
|
| 3 |
+
"output": "calibrated logits"
|
| 4 |
+
}
|
onnx/model_fp16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af67f463cc07736ed85da74eeeb172aa6dd510c183048e32ef5ea41162d43592
|
| 3 |
+
size 5909612
|
onnx/model_fp16.onnx_data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d28c1a070c519590666823b2fabfa1e94fcf1c3276ea723ffcf025157839460
|
| 3 |
+
size 879595512
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
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": 1000000000000000019884624838656,
|
| 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 |
+
}
|