This project documents how I created a virtual machine environment to experiment with PyTorch and HuggingFace Transformers.
The goal was to practice setting up reproducible environments for machine learning libraries on Linux.
- Host: VirtualBox
- Guest OS: Arch Linux (installed and configured manually)
- Dependencies: Python 3, pip, CUDA (for GPU acceleration)
sudo pacman -Syu
sudo pacman -S python python-pip git
pip install torch torchvision torchaudio
pip install transformers
from transformers import pipeline
classifier = pipeline("sentiment-analysis")
print(classifier("I love learning about cybersecurity!"))
[{'label': 'POSITIVE', 'score': 0.99}]
How to set up Arch Linux in a VirtualBox environment.
How to manage Python dependencies with pip.
Installing and troubleshooting PyTorch and Transformers.
Testing pre-trained NLP models in a secure, isolated VM.