Run a Natural Language Processing (NLP) model from Hugging Face on Arm servers
Introduction
Run a Natural Language Processing (NLP) model from Hugging Face on Arm servers
Next Steps
Run a Natural Language Processing (NLP) model from Hugging Face on Arm servers
Who is this for?
This is an introductory topic for software developers who want to learn how to run a natural language processing (NLP) model from Hugging Face using PyTorch on Arm based servers.
What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Deploy a PyTorch NLP model from Hugging Face on an Arm AArch64 CPU
- Use the PyTorch profiler to analyze the execution time of the model
Prerequisites
Before starting, you'll need the following prerequisites:
- An Arm based instance from a cloud service provider or an on-premise Arm server.
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
text in sentiment-analysis.py, save the file, and run python sentiment-analysis.py again. The script preprocesses your text before passing it to the tokenizer and model.preprocess function replaces words that start with @ and contain more than one character with @user. It replaces words that start with http with http before tokenization.cardiffnlp/twitter-roberta-base-sentiment-latest model.model_inference row summarizes the profiled inference region.