Issue with Pytorch installation on Ubuntu 18.4 and Jetpack 4.6.6

I having been facing issues with pytorch installation. I am using ubuntu 18.4 and jetpack 4.6.6
I used the with pytorch 1.8 and 1.10 version both, and have followed the Nvidia docs to install PyTorch for Jetson Platform - NVIDIA Docs) however while running the final “import torch” command, getting the error “illegal instruction”.

user@ubuntu:/$ echo $LD_LIBRARY_PATH
/home/user/.local/lib/python3.6/site-packages/torch:/usr/local/cuda-10.2/lib64:
user@ubuntu:/$ python3
Python 3.6.9 (default, Mar 10 2023, 16:46:00)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import torch
Illegal instruction
user@ubuntu:/$

Can someone please help