gemma-2-2b-it-gpu-diag-lora
NVIDIA GPU diagnostic log decoder
2 min readupdated
This model turns dry technical GPU test reports into clear explanations with recommendations for next steps. It is a LoRA (small add-on for a base model) built on google/gemma-2-2b-it by developer williammahunda, designed to work alongside the GPU Diagnostics Test Suite utility. Unlike standard Gemma, which panics at any error, the adapter understands hardware context: for example, it knows that Tesla T4, A100, and L4 server cards do not have built-in fans, so a fan test error is normal for them. The tool is useful for system administrators, ML engineers, and developers to automate server monitoring and diagnostics.
Key features
- Distinguishes between real failures and false positives — it accounts for whether a specific GPU should even have a fan (based on data from
nvidia-smi) and recognizes fault injection modes. - Analyzes four core metrics: temperature, fan operation, memory errors, and compute accuracy.
- Trained on data for six GPU models: Tesla T4, A100, L4, RTX 3090, RTX 4090, and RTX A4000, but relies on dynamic driver output rather than hardcoded lists.
- Runs in 4-bit quantization (NF4), making it easy to run even on a free Tesla T4 in Google Colab.
What you can do
- Integrate it into server monitoring or CI/CD pipelines to automatically decode C++/CUDA test logs and send clear notifications to administrators.
- Use it with the
gpu-diagnostics-test-suiteutility to quickly check the health of cloud instances before running heavy workloads. - Apply it as a foundation for building a local hardware diagnostics AI assistant by fine-tuning it on your own server logs.
Example
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
from peft import PeftModel
adapter = "williammahunda/gemma-2-2b-it-gpu-diag-lora"
bnb = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4")
tokenizer = AutoTokenizer.from_pretrained(adapter)
base = AutoModelForCausalLM.from_pretrained("google/gemma-2-2b-it", quantization_config=bnb, device_map="auto")
model = PeftModel.from_pretrained(base, adapter)
Read more
DetailsTraining: 2 epochs on 360 training and 40 test examples (loss dropped from 1.15 to 0.19 in ~12 minutes on a Tesla T4).
LoRA parameters: r=16, alpha=32, dropout=0.05 for all linear layers.
Limitations: the dataset is synthetic (rule-based), covering only 4 basic tests (temperature, fan, memory, compute).
To load the base model, you must accept the Gemma license agreement on Hugging Face.










Comments