Views
No views yet
nreimers/MiniLM-L6-H384-uncased and exported to dynamic INT8 ONNX.open_cameraclose_cameratake_photoobject_detectchat96, learning rate 2e-5, four epochs, train batch 32, eval batch 64, CPU training.| Evaluation | Examples | Accuracy | Macro-F1 | Weighted-F1 | ECE (10 bins) |
|---|---|---|---|---|---|
| Historical notebook split | 600 | 1.0000 | 1.0000 | 1.0000 | Not reported |
| Frozen project stress set | 1,000 | 1.0000 | 1.0000 | 1.0000 | 0.1813 |

evaluation/minilm_intent_results.json.1import numpy as np
2import onnxruntime as ort
3from huggingface_hub import hf_hub_download
4from transformers import AutoConfig, AutoTokenizer
5
6repo_id = "Fatihaybasn/pathfinder-minilm-intent-onnx-int8"
7tokenizer = AutoTokenizer.from_pretrained(repo_id)
8config = AutoConfig.from_pretrained(repo_id)
9model_path = hf_hub_download(repo_id, "intent-minilm-int8.onnx")
10session = ort.InferenceSession(model_path, providers=["CPUExecutionProvider"])
11
12encoded = tokenizer(
13 ["please open the camera"],
14 padding=True,
15 truncation=True,
16 max_length=96,
17 return_tensors="np",
18)
19required = {item.name for item in session.get_inputs()}
20feed = {name: encoded[name].astype(np.int64) for name in required}
21logits = session.run(None, feed)[0]
22label_id = int(logits.argmax(axis=-1)[0])
23print(config.id2label[label_id])chat.