Skip to content

Instantly share code, notes, and snippets.

View KillTheAI's full-sized avatar

KillTheAI

View GitHub Profile
@KillTheAI
KillTheAI / ml-p100-notes.md
Created March 7, 2025 13:05
Running Machine Learning Models on NVIDIA P100 for Inferenc

Running Machine Learning Models on NVIDIA P100 for Inference

Framework Compatibility

The NVIDIA P100 is well-supported by major ML frameworks:

  • TensorFlow
  • PyTorch
  • MXNet
  • ONNX Runtime
  • Caffe/Caffe2
@KillTheAI
KillTheAI / p100.py
Created March 7, 2025 13:02
FP16 half precision for p100
import torch
def optimize_model_for_p100(model, use_amp=True):
# Move model to GPU
model = model.cuda()
# Use FP16 precision (P100 supports this, but without Tensor Cores)
if use_amp:
model = model.half()