A US student whose "appalling" anti-Asian and anti-Japanese rant went viral on YouTube announced she was quitting college, after receiving death threats.

The University of California in Los Angeles (UCLA) undergraduate, Alexandra Wallace, said the video had led to "the harassment of my family ... death threats and being ostracized from an entire community.

Alexandra Wallace.

"Accordingly, for personal safety reasons, I have chosen to no longer attend classes at UCLA," added the student, in her third year studying political science, in a letter to campus newspaper The Daily Bruin.

In the YouTube clip she lashed out at the "hordes of Asian people" at UCLA. Speaking in a fake Asian language - "Ohhhh. Ching chong ling long ting tong" - she chastised them notably for talking on their mobile phones in the library.