ML Frameworks interview questions
100 Machine Learning practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise ML Frameworks questionsBeginner
- A basic PyTorch training loop
- Automatic differentiation in PyTorch
- Choosing a model for a tabular problem
- Classifier ignores the rare class
- Dataset and DataLoader in PyTorch
- Fine-tuning a pre-trained text classifier quickly
- Fixing a PyTorch CUDA OOM crash
- groupby in pandas
- Handling categories unseen during training
- Making a notebook's results reproducible
- Managing Python environments for ML
- Model performs poorly without scaling
- Notebooks in ML work
- NumPy broadcasting
- pandas changes not applying to the DataFrame
- pandas DataFrames
- pandas runs out of memory on a large CSV
- PyTorch training isn't using the GPU
- Quickly exploring a new dataset
- Running an open LLM locally for prototyping
- Saved model fails to load in production
- Saving and loading models
- scikit-learn Pipelines
- Serving a model with a simple API
- Slow Python loop over arrays
- Suspiciously high cross-validation scores
- TensorFlow and Keras today
- The Hugging Face ecosystem
- The scikit-learn API design
- Tuning hyperparameters efficiently
- Using GPUs in PyTorch
- Visualization libraries for ML
- What is PyTorch?
- Why NumPy is the foundation of Python ML
Intermediate
- Batch scoring millions of records with a Python model
- Building an image classifier with transfer learning
- Building models with nn.Module
- Building semantic search with open-source tools
- Choosing an LLM framework for a RAG prototype
- Choosing between TensorFlow and PyTorch for a new project
- Choosing libraries for a forecasting pipeline
- Cross-validation tools in scikit-learn
- Customizing the Hugging Face Trainer
- Distributed training in PyTorch
- Evaluation utilities in scikit-learn
- Exporting a PyTorch model for CPU deployment
- Feature order mismatch in production
- Feature pipeline too slow in pandas
- Fine-tuning a 7B model on one GPU
- Integrating experiment tracking into training code
- Managing many experiment configurations
- ONNX and ONNX Runtime
- Optimizers and learning rate schedulers in PyTorch
- Polars vs pandas
- Preprocessing tools in scikit-learn
- PyTorch Lightning and Hugging Face Accelerate
- Scaling training from one GPU to eight
- Serving an open LLM with high throughput
- Speeding up pandas code
- torch.compile
- Tracking down NaN losses with PyTorch tools
- Training is slower than expected
- Using autocast and GradScaler in PyTorch
- Using Hugging Face Transformers effectively
- What is JAX?
- Working with tokenizers
- XGBoost, LightGBM and CatBoost
Experienced
- A custom layer is the training bottleneck
- Adopting FP8 training on new GPUs
- Benchmarking inference engines fairly
- Building an LLM evaluation harness
- Choosing tools for data and model versioning
- CUDA and library version conflicts
- Custom GPU kernels with Triton
- Depending on fast-moving open-source ML libraries
- Deploying a PyTorch model to mobile apps
- Deterministic training in PyTorch
- DuckDB for ML data work
- Efficient data loading at scale
- Evaluating a move to JAX on TPUs
- Explainability libraries in practice
- Fine-tuning with PEFT and TRL
- Guaranteeing valid structured output from open models
- Improving GPU utilization across a team
- LLM application frameworks
- LLM inference libraries
- Long training jobs keep failing midway
- Profiling PyTorch training performance
- Quantization libraries and formats
- Raising code quality of an ML team
- Ray for distributed ML
- Reducing GPU memory usage in training
- Reducing transformer inference latency
- Safely loading models from the internet
- Serving models from multiple frameworks together
- Spark for machine learning
- Training a 30B-parameter model across nodes
- Vector search libraries
- Views, copies and memory layout in NumPy
- Writing custom scikit-learn transformers