Repository: pytorch
Issue: Inconsistent outputs of `cosine_similarity` and `linalg_svdvals` between eagermode and torch.jit.trace()
Labels: oncall: jit

### 🐛 Describe the bug

`torch.cosine_similarity` and `torch._C._linalg.linalg_svdvals` exhibit differences in output under eager mode and torch.compile. Additionally, when these two functions are used separately, the output results do not show any errors.
```
from typing import Dict
import torch
import torch.nn as nn

param1 = torch.rand([4, 4, 4, 4, 1, 1], dtype=torch.float32)

class Model(nn.Module):
    def __init__(self):
        super().__init__()
        self.p0 = torch.nn.parameter.Parameter(param1, requires_grad=True)

    def forward(self, i1, i0):
        res1 = torch.cosine_similarity(dim=1, eps=7.3, x1=i1, x2=self.p0)
        res2 = torch._C._linalg.linalg_svdvals(A=i0, out=i1)
        return res1, res2

model = Model().to(torch.device("cpu"))
input0 = torch.rand([4, 4], dtype=torch.float32)
input1 = torch.rand([4, 4, 4], dtype=torch.float32)
inputs = {
        'i0' : input0,
        'i1' : input1
}

ret_eager = model(**inputs)
exported = torch.jit.trace(model, example_kwarg_inputs=inputs)
exported = torch.jit.optimize_for_inference(exported)
ret_exported = exported(**inputs)

for r1, r2 in zip(ret_eager, ret_exported):
    assert torch.allclose(r1, r2), (r1, r2)
```
error stacktrace
```
assert torch.allclose(r1, r2), (r1, r2)
AssertionError: (tensor([[[[[0.0054, 0.0084, 0.0027, 0.0081],
           [0.0035, 0.0026, 0.0097, 0.0029],
           [0.0091, 0.0031, 0.0015, 0.0012],
           [0.0007, 0.0010, 0.0006, 0.0051]],

          [[0.0080, 0.0136, 0.0031, 0.0037],
           [0.0051, 0.0008, 0.0092, 0.0036],
           [0.0022, 0.0019, 0.0140, 0.0055],
           [0.0136, 0.0113, 0.0031, 0.0088]],

          [[0.0344, 0.0392, 0.0273, 0.0258],
           [0.0189, 0.0297, 0.0061, 0.0170],
           [0.0346, 0.0231, 0.0298, 0.0373],
           [0.0057, 0.0207, 0.0115, 0.0062]],

          [[0.0361, 0.0204, 0.0140, 0.0403],
           [0.0134, 0.0035, 0.0459, 0.0116],
           [0.0381, 0.0199, 0.0319, 0.0029],
           [0.0456, 0.0205, 0.0152, 0.0115]]],


         [[[0.0290, 0.0454, 0.0143, 0.0437],
           [0.0189, 0.0143, 0.0522, 0.0156],
           [0.0489, 0.0165, 0.0082, 0.0066],
           [0.0037, 0.0055, 0.0033, 0.0273]],

          [[0.0140, 0.0236, 0.0054, 0.0065],
           [0.0088, 0.0013, 0.0160, 0.0063],
           [0.0039, 0.0034, 0.0244, 0.0096],
           [0.0237, 0.0197, 0.0053, 0.0153]],

          [[0.0231, 0.0264, 0.0184, 0.0174],
           [0.0127, 0.0200, 0.0041, 0.0114],
           [0.0233, 0.0156, 0.0201, 0.0251],
           [0.0038, 0.0139, 0.0077, 0.0041]],

          [[0.0196, 0.0111, 0.0076, 0.0219],
           [0.0073, 0.0019, 0.0250, 0.0063],
           [0.0207, 0.0108, 0.0174, 0.0016],
           [0.0248, 0.0111, 0.0082, 0.0063]]],


         [[[0.0269, 0.0420, 0.0132, 0.0405],
           [0.0175, 0.0132, 0.0484, 0.0145],
           [0.0453, 0.0153, 0.0076, 0.0061],
           [0.0035, 0.0051, 0.0031, 0.0253]],

          [[0.0290, 0.0489, 0.0111, 0.0134],
           [0.0182, 0.0027, 0.0332, 0.0131],
           [0.0081, 0.0070, 0.0506, 0.0200],
           [0.0491, 0.0408, 0.0110, 0.0318]],

          [[0.0177, 0.0201, 0.0140, 0.0132],
           [0.0097, 0.0153, 0.0031, 0.0087],
           [0.0178, 0.0119, 0.0153, 0.0192],
           [0.0029, 0.0106, 0.0059, 0.0032]],

          [[0.0341, 0.0193, 0.0133, 0.0381],
           [0.0127, 0.0033, 0.0433, 0.0110],
           [0.0360, 0.0188, 0.0301, 0.0027],
           [0.0431, 0.0194, 0.0143, 0.0109]]],


         [[[0.0115, 0.0180, 0.0057, 0.0174],
           [0.0075, 0.0057, 0.0207, 0.0062],
           [0.0194, 0.0066, 0.0032, 0.0026],
           [0.0015, 0.0022, 0.0013, 0.0108]],

          [[0.0145, 0.0244, 0.0055, 0.0067],
           [0.0091, 0.0014, 0.0166, 0.0066],
           [0.0040, 0.0035, 0.0252, 0.0100],
           [0.0245, 0.0204, 0.0055, 0.0158]],

          [[0.0200, 0.0228, 0.0159, 0.0150],
           [0.0110, 0.0173, 0.0036, 0.0099],
           [0.0201, 0.0135, 0.0174, 0.0217],
           [0.0033, 0.0120, 0.0067, 0.0036]],

          [[0.0288, 0.0163, 0.0112, 0.0322],
           [0.0107, 0.0028, 0.0367, 0.0093],
           [0.0304, 0.0159, 0.0255, 0.0023],
           [0.0364, 0.0164, 0.0121, 0.0092]]]],



        [[[[0.0187, 0.0292, 0.0092, 0.0282],
           [0.0122, 0.0092, 0.0336, 0.0101],
           [0.0315, 0.0107, 0.0053, 0.0043],
           [0.0024, 0.0035, 0.0021, 0.0176]],

          [[0.0243, 0.0410, 0.0093, 0.0112],
           [0.0153, 0.0023, 0.0278, 0.0110],
           [0.0067, 0.0059, 0.0424, 0.0168],
           [0.0411, 0.0342, 0.0092, 0.0266]],

          [[0.0309, 0.0353, 0.0246, 0.0232],
           [0.0170, 0.0267, 0.0055, 0.0153],
           [0.0311, 0.0208, 0.0268, 0.0336],
           [0.0051, 0.0186, 0.0104, 0.0055]],

          [[0.0336, 0.0190, 0.0131, 0.0375],
           [0.0125, 0.0032, 0.0427, 0.0108],
           [0.0355, 0.0185, 0.0297, 0.0027],
           [0.0425, 0.0191, 0.0141, 0.0108]]],


         [[[0.0209, 0.0327, 0.0103, 0.0315],
           [0.0136, 0.0103, 0.0377, 0.0113],
           [0.0353, 0.0119, 0.0059, 0.0048],
           [0.0027, 0.0039, 0.0024, 0.0197]],

          [[0.0165, 0.0277, 0.0063, 0.0076],
           [0.0103, 0.0016, 0.0188, 0.0074],
           [0.0046, 0.0040, 0.0287, 0.0113],
           [0.0278, 0.0232, 0.0062, 0.0180]],

          [[0.0176, 0.0201, 0.0140, 0.0132],
           [0.0097, 0.0152, 0.0031, 0.0087],
           [0.0177, 0.0119, 0.0153, 0.0191],
           [0.0029, 0.0106, 0.0059, 0.0032]],

          [[0.0331, 0.0188, 0.0129, 0.0370],
           [0.0123, 0.0032, 0.0421, 0.0107],
           [0.0349, 0.0182, 0.0293, 0.0026],
           [0.0418, 0.0188, 0.0139, 0.0106]]],


         [[[0.0259, 0.0405, 0.0128, 0.0391],
           [0.0169, 0.0127, 0.0467, 0.0140],
           [0.0437, 0.0148, 0.0073, 0.0059],
           [0.0034, 0.0049, 0.0030, 0.0244]],

          [[0.0159, 0.0268, 0.0061, 0.0073],
           [0.0100, 0.0015, 0.0182, 0.0072],
           [0.0044, 0.0038, 0.0277, 0.0109],
           [0.0268, 0.0223, 0.0060, 0.0174]],

          [[0.0339, 0.0387, 0.0269, 0.0255],
           [0.0187, 0.0293, 0.0060, 0.0167],
           [0.0341, 0.0228, 0.0294, 0.0369],
           [0.0056, 0.0204, 0.0114, 0.0061]],

          [[0.0330, 0.0187, 0.0128, 0.0369],
           [0.0123, 0.0032, 0.0420, 0.0106],
           [0.0348, 0.0182, 0.0292, 0.0026],
           [0.0417, 0.0188, 0.0139, 0.0106]]],


         [[[0.0076, 0.0118, 0.0037, 0.0114],
           [0.0049, 0.0037, 0.0136, 0.0041],
           [0.0128, 0.0043, 0.0021, 0.0017],
           [0.0010, 0.0014, 0.0009, 0.0071]],

          [[0.0068, 0.0114, 0.0026, 0.0031],
           [0.0043, 0.0006, 0.0078, 0.0031],
           [0.0019, 0.0016, 0.0118, 0.0047],
           [0.0115, 0.0096, 0.0026, 0.0074]],

          [[0.0298, 0.0340, 0.0236, 0.0223],
           [0.0164, 0.0257, 0.0053, 0.0147],
           [0.0300, 0.0201, 0.0258, 0.0324],
           [0.0049, 0.0179, 0.0100, 0.0053]],

          [[0.0280, 0.0159, 0.0109, 0.0312],
           [0.0104, 0.0027, 0.0356, 0.0090],
           [0.0295, 0.0154, 0.0247, 0.0022],
           [0.0353, 0.0159, 0.0118, 0.0090]]]],



        [[[[0.0214, 0.0334, 0.0105, 0.0322],
           [0.0139, 0.0105, 0.0385, 0.0115],
           [0.0360, 0.0122, 0.0060, 0.0049],
           [0.0028, 0.0040, 0.0024, 0.0201]],

          [[0.0216, 0.0364, 0.0083, 0.0100],
           [0.0136, 0.0020, 0.0247, 0.0098],
           [0.0060, 0.0052, 0.0377, 0.0149],
           [0.0365, 0.0304, 0.0082, 0.0236]],

          [[0.0316, 0.0360, 0.0251, 0.0237],
           [0.0174, 0.0273, 0.0056, 0.0156],
           [0.0318, 0.0213, 0.0274, 0.0343],
           [0.0052, 0.0190, 0.0106, 0.0057]],

          [[0.0439, 0.0249, 0.0171, 0.0490],
           [0.0164, 0.0042, 0.0558, 0.0141],
           [0.0463, 0.0242, 0.0388, 0.0035],
           [0.0554, 0.0249, 0.0184, 0.0141]]],


         [[[0.0128, 0.0200, 0.0063, 0.0193],
           [0.0083, 0.0063, 0.0230, 0.0069],
           [0.0215, 0.0073, 0.0036, 0.0029],
           [0.0017, 0.0024, 0.0015, 0.0120]],

          [[0.0217, 0.0365, 0.0083, 0.0100],
           [0.0136, 0.0021, 0.0248, 0.0098],
           [0.0060, 0.0052, 0.0378, 0.0149],
           [0.0366, 0.0305, 0.0082, 0.0237]],

          [[0.0382, 0.0435, 0.0303, 0.0286],
           [0.0210, 0.0330, 0.0068, 0.0188],
           [0.0384, 0.0257, 0.0331, 0.0415],
           [0.0063, 0.0229, 0.0128, 0.0068]],

          [[0.0257, 0.0146, 0.0100, 0.0287],
           [0.0096, 0.0025, 0.0327, 0.0083],
           [0.0271, 0.0141, 0.0227, 0.0020],
           [0.0324, 0.0146, 0.0108, 0.0082]]],


         [[[0.0192, 0.0301, 0.0095, 0.0290],
           [0.0125, 0.0095, 0.0346, 0.0104],
           [0.0324, 0.0110, 0.0054, 0.0044],
           [0.0025, 0.0036, 0.0022, 0.0181]],

          [[0.0189, 0.0319, 0.0072, 0.0088],
           [0.0119, 0.0018, 0.0217, 0.0086],
           [0.0053, 0.0046, 0.0330, 0.0130],
           [0.0320, 0.0266, 0.0072, 0.0207]],

          [[0.0299, 0.0341, 0.0237, 0.0224],
           [0.0165, 0.0258, 0.0053, 0.0148],
           [0.0301, 0.0201, 0.0259, 0.0325],
           [0.0049, 0.0180, 0.0100, 0.0054]],

          [[0.0353, 0.0200, 0.0137, 0.0394],
           [0.0132, 0.0034, 0.0449, 0.0114],
           [0.0373, 0.0194, 0.0312, 0.0028],
           [0.0446, 0.0201, 0.0148, 0.0113]]],


         [[[0.0173, 0.0271, 0.0085, 0.0261],
           [0.0113, 0.0085, 0.0312, 0.0093],
           [0.0292, 0.0099, 0.0049, 0.0039],
           [0.0022, 0.0033, 0.0020, 0.0163]],

          [[0.0101, 0.0170, 0.0039, 0.0047],
           [0.0063, 0.0010, 0.0116, 0.0046],
           [0.0028, 0.0024, 0.0176, 0.0070],
           [0.0171, 0.0142, 0.0038, 0.0111]],

          [[0.0270, 0.0308, 0.0214, 0.0203],
           [0.0149, 0.0233, 0.0048, 0.0133],
           [0.0272, 0.0182, 0.0234, 0.0294],
           [0.0045, 0.0162, 0.0090, 0.0048]],

          [[0.0253, 0.0143, 0.0098, 0.0282],
           [0.0094, 0.0024, 0.0321, 0.0081],
           [0.0267, 0.0139, 0.0223, 0.0020],
           [0.0319, 0.0144, 0.0106, 0.0081]]]],



        [[[[0.0164, 0.0256, 0.0081, 0.0247],
           [0.0107, 0.0081, 0.0295, 0.0088],
           [0.0276, 0.0093, 0.0046, 0.0037],
           [0.0021, 0.0031, 0.0019, 0.0154]],

          [[0.0206, 0.0348, 0.0079, 0.0095],
           [0.0130, 0.0020, 0.0236, 0.0093],
           [0.0057, 0.0050, 0.0360, 0.0142],
           [0.0349, 0.0290, 0.0078, 0.0226]],

          [[0.0250, 0.0285, 0.0198, 0.0187],
           [0.0138, 0.0216, 0.0044, 0.0123],
           [0.0251, 0.0168, 0.0217, 0.0272],
           [0.0041, 0.0150, 0.0084, 0.0045]],

          [[0.0264, 0.0150, 0.0103, 0.0295],
           [0.0098, 0.0025, 0.0336, 0.0085],
           [0.0279, 0.0145, 0.0234, 0.0021],
           [0.0334, 0.0150, 0.0111, 0.0085]]],


         [[[0.0123, 0.0192, 0.0060, 0.0185],
           [0.0080, 0.0060, 0.0221, 0.0066],
           [0.0207, 0.0070, 0.0035, 0.0028],
           [0.0016, 0.0023, 0.0014, 0.0116]],

          [[0.0206, 0.0348, 0.0079, 0.0095],
           [0.0129, 0.0020, 0.0236, 0.0093],
           [0.0057, 0.0050, 0.0360, 0.0142],
           [0.0349, 0.0290, 0.0078, 0.0226]],

          [[0.0073, 0.0083, 0.0058, 0.0055],
           [0.0040, 0.0063, 0.0013, 0.0036],
           [0.0073, 0.0049, 0.0063, 0.0079],
           [0.0012, 0.0044, 0.0024, 0.0013]],

          [[0.0511, 0.0289, 0.0199, 0.0570],
           [0.0190, 0.0049, 0.0649, 0.0164],
           [0.0539, 0.0281, 0.0451, 0.0041],
           [0.0645, 0.0290, 0.0215, 0.0163]]],


         [[[0.0183, 0.0287, 0.0090, 0.0277],
           [0.0120, 0.0090, 0.0330, 0.0099],
           [0.0309, 0.0105, 0.0052, 0.0042],
           [0.0024, 0.0035, 0.0021, 0.0173]],

          [[0.0252, 0.0425, 0.0096, 0.0117],
           [0.0158, 0.0024, 0.0289, 0.0114],
           [0.0070, 0.0061, 0.0440, 0.0174],
           [0.0426, 0.0355, 0.0096, 0.0276]],

          [[0.0259, 0.0295, 0.0205, 0.0194],
           [0.0143, 0.0224, 0.0046, 0.0128],
           [0.0260, 0.0174, 0.0225, 0.0281],
           [0.0043, 0.0156, 0.0087, 0.0046]],

          [[0.0207, 0.0117, 0.0080, 0.0231],
           [0.0077, 0.0020, 0.0263, 0.0067],
           [0.0218, 0.0114, 0.0183, 0.0016],
           [0.0261, 0.0117, 0.0087, 0.0066]]],


         [[[0.0271, 0.0424, 0.0133, 0.0409],
           [0.0177, 0.0133, 0.0488, 0.0146],
           [0.0457, 0.0155, 0.0076, 0.0062],
           [0.0035, 0.0051, 0.0031, 0.0255]],

          [[0.0229, 0.0387, 0.0088, 0.0106],
           [0.0144, 0.0022, 0.0262, 0.0104],
           [0.0064, 0.0055, 0.0400, 0.0158],
           [0.0388, 0.0323, 0.0087, 0.0251]],

          [[0.0212, 0.0242, 0.0168, 0.0159],
           [0.0117, 0.0183, 0.0038, 0.0105],
           [0.0213, 0.0143, 0.0184, 0.0230],
           [0.0035, 0.0127, 0.0071, 0.0038]],

          [[0.0252, 0.0143, 0.0098, 0.0282],
           [0.0094, 0.0024, 0.0321, 0.0081],
           [0.0266, 0.0139, 0.0223, 0.0020],
           [0.0318, 0.0143, 0.0106, 0.0081]]]]], grad_fn=<SumBackward1>), tensor([[[[[0.0201, 0.0065, 0.0028, 0.0012]],

          [[0.0263, 0.0086, 0.0037, 0.0016]],

          [[0.0916, 0.0298, 0.0129, 0.0054]],

          [[0.0870, 0.0283, 0.0122, 0.0052]]],


         [[[0.1080, 0.0351, 0.0152, 0.0064]],

          [[0.0458, 0.0149, 0.0064, 0.0027]],

          [[0.0617, 0.0201, 0.0087, 0.0037]],

          [[0.0473, 0.0154, 0.0067, 0.0028]]],


         [[[0.1001, 0.0325, 0.0141, 0.0059]],

          [[0.0949, 0.0309, 0.0133, 0.0056]],

          [[0.0470, 0.0153, 0.0066, 0.0028]],

          [[0.0822, 0.0267, 0.0116, 0.0049]]],


         [[[0.0429, 0.0139, 0.0060, 0.0025]],

          [[0.0473, 0.0154, 0.0067, 0.0028]],

          [[0.0533, 0.0173, 0.0075, 0.0032]],

          [[0.0696, 0.0226, 0.0098, 0.0041]]]],



        [[[[0.0696, 0.0226, 0.0098, 0.0041]],

          [[0.0795, 0.0258, 0.0112, 0.0047]],

          [[0.0825, 0.0268, 0.0116, 0.0049]],

          [[0.0811, 0.0264, 0.0114, 0.0048]]],


         [[[0.0779, 0.0253, 0.0109, 0.0046]],

          [[0.0538, 0.0175, 0.0076, 0.0032]],

          [[0.0469, 0.0153, 0.0066, 0.0028]],

          [[0.0798, 0.0260, 0.0112, 0.0047]]],


         [[[0.0965, 0.0314, 0.0136, 0.0057]],

          [[0.0519, 0.0169, 0.0073, 0.0031]],

          [[0.0904, 0.0294, 0.0127, 0.0054]],

          [[0.0797, 0.0259, 0.0112, 0.0047]]],


         [[[0.0282, 0.0092, 0.0040, 0.0017]],

          [[0.0222, 0.0072, 0.0031, 0.0013]],

          [[0.0794, 0.0258, 0.0112, 0.0047]],

          [[0.0675, 0.0219, 0.0095, 0.0040]]]],



        [[[[0.0796, 0.0259, 0.0112, 0.0047]],

          [[0.0706, 0.0230, 0.0099, 0.0042]],

          [[0.0842, 0.0274, 0.0118, 0.0050]],

          [[0.1059, 0.0344, 0.0149, 0.0063]]],


         [[[0.0476, 0.0155, 0.0067, 0.0028]],

          [[0.0708, 0.0230, 0.0100, 0.0042]],

          [[0.1017, 0.0331, 0.0143, 0.0060]],

          [[0.0620, 0.0201, 0.0087, 0.0037]]],


         [[[0.0716, 0.0233, 0.0101, 0.0042]],

          [[0.0619, 0.0201, 0.0087, 0.0037]],

          [[0.0797, 0.0259, 0.0112, 0.0047]],

          [[0.0852, 0.0277, 0.0120, 0.0051]]],


         [[[0.0645, 0.0210, 0.0091, 0.0038]],

          [[0.0331, 0.0107, 0.0046, 0.0020]],

          [[0.0720, 0.0234, 0.0101, 0.0043]],

          [[0.0610, 0.0198, 0.0086, 0.0036]]]],



        [[[[0.0610, 0.0198, 0.0086, 0.0036]],

          [[0.0675, 0.0219, 0.0095, 0.0040]],

          [[0.0666, 0.0217, 0.0094, 0.0039]],

          [[0.0638, 0.0207, 0.0090, 0.0038]]],


         [[[0.0457, 0.0149, 0.0064, 0.0027]],

          [[0.0674, 0.0219, 0.0095, 0.0040]],

          [[0.0194, 0.0063, 0.0027, 0.0012]],

          [[0.1232, 0.0401, 0.0173, 0.0073]]],


         [[[0.0684, 0.0222, 0.0096, 0.0041]],

          [[0.0825, 0.0268, 0.0116, 0.0049]],

          [[0.0690, 0.0224, 0.0097, 0.0041]],

          [[0.0499, 0.0162, 0.0070, 0.0030]]],


         [[[0.1009, 0.0328, 0.0142, 0.0060]],

          [[0.0750, 0.0244, 0.0105, 0.0044]],

          [[0.0565, 0.0184, 0.0079, 0.0033]],

          [[0.0608, 0.0198, 0.0085, 0.0036]]]]]))
```

### Versions

PyTorch version: 2.0.1+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.3 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: Could not collect
CMake version: version 3.27.4
Libc version: glibc-2.35

Python version: 3.9.18 (main, Sep 11 2023, 13:41:44)  [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-86-generic-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: 12.3.103
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: 
GPU 0: NVIDIA GeForce RTX 2070
GPU 1: NVIDIA GeForce RTX 2070
GPU 2: NVIDIA GeForce RTX 2070
GPU 3: NVIDIA GeForce RTX 2070

Nvidia driver version: 535.104.12
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture:                       x86_64
CPU op-mode(s):                     32-bit, 64-bit
Address sizes:                      46 bits physical, 48 bits virtual
Byte Order:                         Little Endian
CPU(s):                             32
On-line CPU(s) list:                0-31
Vendor ID:                          GenuineIntel
Model name:                         Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz
CPU family:                         6
Model:                              63
Thread(s) per core:                 2
Core(s) per socket:                 8
Socket(s):                          2
Stepping:                           2
CPU max MHz:                        3200.0000
CPU min MHz:                        1200.0000
BogoMIPS:                           4794.64
Flags:                              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts md_clear flush_l1d
Virtualization:                     VT-x
L1d cache:                          512 KiB (16 instances)
L1i cache:                          512 KiB (16 instances)
L2 cache:                           4 MiB (16 instances)
L3 cache:                           40 MiB (2 instances)
NUMA node(s):                       2
NUMA node0 CPU(s):                  0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30
NUMA node1 CPU(s):                  1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit:        KVM: Mitigation: VMX disabled
Vulnerability L1tf:                 Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Vulnerability Mds:                  Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown:             Mitigation; PTI
Vulnerability Mmio stale data:      Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Retbleed:             Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:           Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP conditional, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds:                Not affected
Vulnerability Tsx async abort:      Not affected

Versions of relevant libraries:
[pip3] numpy==1.24.3
[pip3] torch==2.0.1
[pip3] triton==2.0.0
[conda] numpy                     1.24.3                   pypi_0    pypi
[conda] torch                     2.0.1                    pypi_0    pypi
[conda] triton                    2.0.0                    pypi_0    pypi

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel