Skip to content

[torchlib] Fix registrations 3/n #7436

[torchlib] Fix registrations 3/n

[torchlib] Fix registrations 3/n #7436

GitHub Actions / Test Results failed Jul 22, 2024 in 0s

2 fail, 1 189 skipped, 3 353 pass in 5m 54s

     8 files   -       8      8 suites   - 8   5m 54s ⏱️ - 58m 49s
 4 544 tests  -   8 995  3 353 ✅  -  6 627  1 189 💤  -  2 364  2 ❌  -  4 
13 122 runs   - 124 122  9 986 ✅  - 29 147  3 130 💤  - 94 931  6 ❌  - 44 

Results for commit 8dad3bc. ± Comparison against earlier commit 19e2568.

Annotations

Check warning on line 0 in onnxscript.tools.transformers_models.phi_test.TestExportPhi

See this annotation in the file changed.

@github-actions github-actions / Test Results

3 out of 6 runs failed: test_phi_dort_static (onnxscript.tools.transformers_models.phi_test.TestExportPhi)

artifacts/Test Results (py311-onnx-weekly-ubuntu-latest)/pytest.xml [took 9s]
artifacts/Test Results (py311-torch-nightly-ubuntu-latest)/pytest.xml [took 6s]
artifacts/Test Results (py312-torch-nightly-ubuntu-latest)/pytest.xml [took 9s]
Raw output
onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : This is an invalid model. In Node, ("Gemm_455", Gemm, "", -1) : ("view_1": tensor(float),"t_1": tensor(float),"primals_7": tensor(float),) -> ("addmm_1": tensor(float),) , Error Mismatched attribute type in 'Gemm_455 : beta'
onnxscript/_internal/version_utils.py:114: in call_f
    return fct(self)
onnxscript/tools/transformers_models/phi_test.py:101: in test_phi_dort_static
    results = compiled_model(*input_tensors)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/nn/modules/module.py:1716: in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/nn/modules/module.py:1727: in _call_impl
    return forward_call(*args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/_dynamo/eval_frame.py:435: in _fn
    return fn(*args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/nn/modules/module.py:1716: in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/nn/modules/module.py:1727: in _call_impl
    return forward_call(*args, **kwargs)
onnxscript/tools/transformers_models/phi.py:114: in forward
    def forward(self, input_ids, attention_mask):
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/_dynamo/eval_frame.py:602: in _fn
    return fn(*args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/_functorch/aot_autograd.py:1034: in forward
    return compiled_fn(full_args)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py:308: in runtime_wrapper
    all_outs = call_func_at_runtime_with_args(
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/_functorch/_aot_autograd/utils.py:120: in call_func_at_runtime_with_args
    out = normalize_as_list(f(args))
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/_functorch/_aot_autograd/utils.py:94: in g
    return f(*args)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/autograd/function.py:574: in apply
    return super().apply(*args, **kwargs)  # type: ignore[misc]
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py:1508: in forward
    fw_outs = call_func_at_runtime_with_args(
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/_functorch/_aot_autograd/utils.py:120: in call_func_at_runtime_with_args
    out = normalize_as_list(f(args))
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py:500: in wrapper
    return compiled_fn(runtime_args)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/_functorch/_aot_autograd/utils.py:94: in g
    return f(*args)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/nn/modules/module.py:1716: in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/nn/modules/module.py:1727: in _call_impl
    return forward_call(*args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/fx/_lazy_graph_module.py:124: in _lazy_forward
    return self(*args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/fx/graph_module.py:738: in call_wrapped
    return self._wrapped_call(self, *args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/fx/graph_module.py:316: in __call__
    raise e
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/fx/graph_module.py:303: in __call__
    return super(self.cls, obj).__call__(*args, **kwargs)  # type: ignore[misc]
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/nn/modules/module.py:1716: in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/nn/modules/module.py:1727: in _call_impl
    return forward_call(*args, **kwargs)
<eval_with_key>.9:5: in forward
    fused_0 = self.fused_0(primals_1, primals_36, primals_37, primals_4, primals_6, primals_8, primals_32, primals_33, primals_10, primals_12, primals_14, primals_18, primals_20, primals_22, primals_34, primals_35, primals_24, primals_26, primals_28, primals_2, primals_3, primals_5, primals_7, primals_9, primals_13, primals_15, primals_11, primals_16, primals_17, primals_19, primals_21, primals_23, primals_27, primals_29, primals_25, primals_30, primals_31);  primals_1 = primals_37 = primals_4 = primals_6 = primals_8 = primals_32 = primals_33 = primals_10 = primals_12 = primals_14 = primals_18 = primals_20 = primals_22 = primals_34 = primals_35 = primals_24 = primals_26 = primals_28 = primals_3 = primals_5 = primals_7 = primals_9 = primals_13 = primals_15 = primals_11 = primals_17 = primals_19 = primals_21 = primals_23 = primals_27 = primals_29 = primals_25 = primals_31 = None
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/fx/graph_module.py:738: in call_wrapped
    return self._wrapped_call(self, *args, **kwargs)
.nox/test_torch_nightly/lib/python3.11/site-packages/torch/onnx/_internal/onnxruntime.py:970: in _ort_acclerated_call
    onnx_session = onnxruntime.InferenceSession(
.nox/test_torch_nightly/lib/python3.11/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py:419: in __init__
    self._create_inference_session(providers, provider_options, disabled_optimizers)
.nox/test_torch_nightly/lib/python3.11/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py:474: in _create_inference_session
    sess = C.InferenceSession(session_options, self._model_bytes, False, self._read_config_from_model)
E   onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : This is an invalid model. In Node, ("Gemm_455", Gemm, "", -1) : ("view_1": tensor(float),"t_1": tensor(float),"primals_7": tensor(float),) -> ("addmm_1": tensor(float),) , Error Mismatched attribute type in 'Gemm_455 : beta'

Check warning on line 0 in onnxscript.ir.serde_test.TensorProtoTensorTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

3 out of 6 runs failed: test_tensor_proto_tensor_bfloat16 (onnxscript.ir.serde_test.TensorProtoTensorTest)

artifacts/Test Results (py311-onnx-weekly-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-torch-nightly-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py312-torch-nightly-ubuntu-latest)/pytest.xml [took 0s]
Raw output
AssertionError: 
Arrays are not equal

Mismatched elements: 8 / 9 (88.9%)
Max absolute difference: 49219.
Max relative difference: 97793.
 x: array([[49216, 49024, 48896, 32768,     0, 16128, 16256, 16936, 16384]],
      dtype=(numpy.uint16, [('bfloat16', '<u2')]))
 y: array([[-3, -1, -0.5, -0, 0, 0.5, 1, 42, 2]], dtype=bfloat16)
onnxscript/ir/serde_test.py:106: in test_tensor_proto_tensor_bfloat16
    np.testing.assert_array_equal(array_from_raw_data, expected_array)
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/contextlib.py:81: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Arrays are not equal
E   
E   Mismatched elements: 8 / 9 (88.9%)
E   Max absolute difference: 49219.
E   Max relative difference: 97793.
E    x: array([[49216, 49024, 48896, 32768,     0, 16128, 16256, 16936, 16384]],
E         dtype=(numpy.uint16, [('bfloat16', '<u2')]))
E    y: array([[-3, -1, -0.5, -0, 0, 0.5, 1, 42, 2]], dtype=bfloat16)