Views
No views yet
torch.onnx.export (dynamo) produces val_41 = [-1] used in Reshape shapes for multi-head attention (GQA: 16 Q heads, 8 KV heads). DirectML's execution provider cannot resolve symbolic -1 at graph-capture time.[-1] with four concrete head-count constants (16 for Q, 8 for K, 8 for V, 2048 for attention output) and reconnect 84 Reshape consumer nodes.fix_octen_dml.py for the full patch script.model.fp16.onnx — ONNX graph proto (4 MB)model.fp16.onnx.data — external weights (1.1 GB, fp16)tokenizer.json — Qwen2 tokenizerconfig.json — model config (max_position_embeddings=32768)fix_octen_dml.py — reproduction script1import onnxruntime as ort
2
3session = ort.InferenceSession(
4 "model.fp16.onnx",
5 providers=["DmlExecutionProvider"],
6)| Dataset | R@5 | R@10 | MRR |
|---|---|---|---|
| esp32 (smoke) | 0.930 | 0.950 | 0.810 |
| autosar | 0.678 | 0.774 | 0.552 |