[Release/2.14] E2E performance drops compared with pt2.13
- Dominant language
- Python
- Stars
- 113
- Forks
- 128
- Avg merge
- 5d 9h
- Merged PRs (30d)
- 112
Description
### 🐛 Describe the bug
# Performance Regression
Detailed Drops
Suite | Dtype | Mode | Model | Ind Ratio | Eager Ratio
-- | -- | -- | -- | -- | --
huggingface | amp_bf16 | inference | AlbertForMaskedLM | 1.001 | 0.7657
huggingface | amp_bf16 | inference | AlbertForQuestionAnswering | 0.999 | 0.762
huggingface | amp_bf16 | inference | BartForCausalLM | 0.9856 | 0.8766
huggingface | amp_bf16 | inference | BartForConditionalGeneration | 0.9892 | 0.8745
huggingface | amp_bf16 | inference | BertForMaskedLM | 1.0269 | 0.8531
huggingface | amp_bf16 | inference | BertForQuestionAnswering | 1.0095 | 0.7738
huggingface | amp_bf16 | inference | BlenderbotSmallForCausalLM | 1.0077 | 0.8766
huggingface | amp_bf16 | inference | BlenderbotSmallForConditionalGeneration | 1.0069 | 0.837
huggingface | amp_bf16 | inference | DistilBertForMaskedLM | 0.9969 | 0.8335
huggingface | amp_bf16 | inference | DistilBertForQuestionAnswering | 1.0073 | 0.7679
huggingface | amp_bf16 | inference | DistillGPT2 | 0.9787 | 0.7525
huggingface | amp_bf16 | inference | ElectraForQuestionAnswering | 0.9916 | 0.7483
huggingface | amp_bf16 | inference | GPT2ForSequenceClassification | 0.9998 | 0.6511
huggingface | amp_bf16 | inference | MBartForCausalLM | 0.9891 | 0.8864
huggingface | amp_bf16 | inference | MBartForConditionalGeneration | 0.9725 | 0.8549
huggingface | amp_bf16 | inference | MobileBertForQuestionAnswering | 1.0169 | 0.7108
huggingface | amp_bf16 | inference | OPTForCausalLM | 0.9968 | 0.8938
huggingface | amp_bf16 | inference | PLBartForCausalLM | 0.9877 | 0.8774
huggingface | amp_bf16 | inference | PLBartForConditionalGeneration | 0.9812 | 0.8343
huggingface | amp_bf16 | inference | PegasusForConditionalGeneration | 0.9925 | 0.8439
huggingface | amp_bf16 | inference | RobertaForQuestionAnswering | 0.9673 | 0.7421
huggingface | amp_bf16 | training | AlbertForMaskedLM | 1.0013 | 0.8658
huggingface | amp_bf16 | training | AlbertForQuestionAnswering | 1.0015 | 0.8588
huggingface | amp_bf16 | training | BertForQuestionAnswering | 1.0183 | 0.8335
huggingface | amp_bf16 | training | DistilBertForQuestionAnswering | 1.0035 | 0.88
huggingface | amp_bf16 | training | DistillGPT2 | 1.0207 | 0.8486
huggingface | amp_bf16 | training | ElectraForQuestionAnswering | 1.004 | 0.8281
huggingface | amp_bf16 | training | GPT2ForSequenceClassification | 1.1274 | 0.8438
huggingface | amp_bf16 | training | PLBartForCausalLM | 1.0852 | 0.8946
huggingface | amp_bf16 | training | PLBartForConditionalGeneration | 1.049 | 0.8491
huggingface | amp_bf16 | training | RobertaForQuestionAnswering | 1.0185 | 0.8427
huggingface | amp_fp16 | inference | AlbertForMaskedLM | 0.9967 | 0.7666
huggingface | amp_fp16 | inference | AlbertForQuestionAnswering | 1.0004 | 0.7666
huggingface | amp_fp16 | inference | BartForConditionalGeneration | 0.9895 | 0.8663
huggingface | amp_fp16 | inference | BertForMaskedLM | 0.9987 | 0.8179
huggingface | amp_fp16 | inference | BertForQuestionAnswering | 0.9584 | 0.727
huggingface | amp_fp16 | inference | BlenderbotSmallForCausalLM | 0.9859 | 0.8609
huggingface | amp_fp16 | inference | BlenderbotSmallForConditionalGeneration | 0.9961 | 0.8214
huggingface | amp_fp16 | inference | DistilBertForMaskedLM | 1.0012 | 0.839
huggingface | amp_fp16 | inference | DistilBertForQuestionAnswering | 1.0028 | 0.7718
huggingface | amp_fp16 | inference | DistillGPT2 | 0.9915 | 0.7395
huggingface | amp_fp16 | inference | ElectraForQuestionAnswering | 0.9983 | 0.748
huggingface | amp_fp16 | inference | GPT2ForSequenceClassification | 1.026 | 0.706
huggingface | amp_fp16 | inference | LayoutLMForSequenceClassification | 1.0066 | 0.8892
huggingface | amp_fp16 | inference | MBartForCausalLM | 0.9857 | 0.8814
huggingface | amp_fp16 | inference | MBartForConditionalGeneration | 0.9948 | 0.8625
huggingface | amp_fp16 | inference | MobileBertForQuestionAnswering | 1.0876 | 0.7039
huggingface | amp_fp16 | inference | PLBartForCausalLM | 0.9704 | 0.8497
huggingface | amp_fp16 | inference | PLBartForConditionalGeneration | 1.0103 | 0.8517
huggingface | amp_fp16 | inference | PegasusForCausalLM | 0.9777 | 0.8806
huggingface | amp_fp16 | inference | PegasusForConditionalGeneration | 0.9764 | 0.8251
huggingface | amp_fp16 | inference | RobertaForCausalLM | 0.998 | 0.8416
huggingface | amp_fp16 | inference | RobertaForQuestionAnswering | 0.9724 | 0.7446
huggingface | amp_fp16 | training | AlbertForMaskedLM | 1.0047 | 0.8649
huggingface | amp_fp16 | training | AlbertForQuestionAnswering | 1.0031 | 0.8594
huggingface | amp_fp16 | training | BertForQuestionAnswering | 1.0152 | 0.8301
huggingface | amp_fp16 | training | DistilBertForQuestionAnswering | 1.0083 | 0.8779
huggingface | amp_fp16 | training | DistillGPT2 | 1.0342 | 0.8378
huggingface | amp_fp16 | training | ElectraForQuestionAnswering | 1.0109 | 0.821
huggingface | amp_fp16 | training | GPT2ForSequenceClassification | 1.1226 | 0.8519
huggingface | amp_fp16 | training | MobileBertForQuestionAnswering | 0.8859 | 0.8382
huggingface | amp_fp16 | training | PLBartForConditionalGeneration | 1.0564 | 0.8452
huggingface | amp_fp16 | training | RobertaForQuestionAnswering | 1.0163 | 0.8302
huggingface | bfloat16 | training | BertForQuestionAnswering | 1.0065 | 0.8669
huggingface | bfloat16 | training | ElectraForQuestionAnswering | 1.0145 | 0.8672
huggingface | bfloat16 | training | PLBartForCausalLM | 1.0877 | 0.8955
huggingface | bfloat16 | training | PLBartForConditionalGeneration | 1.0528 | 0.8602
huggingface | bfloat16 | training | RobertaForQuestionAnswering | 1.0005 | 0.8633
huggingface | float16 | inference | Qwen/Qwen3-0.6B | 0.7064 | 0.706
huggingface | float16 | training | BertForQuestionAnswering | 1.0177 | 0.8603
huggingface | float16 | training | ElectraForQuestionAnswering | 1.0118 | 0.857
huggingface | float16 | training | PLBartForCausalLM | 1.096 | 0.8934
huggingface | float16 | training | PLBartForConditionalGeneration | 1.0714 | 0.858
huggingface | float16 | training | RobertaForQuestionAnswering | 1.0023 | 0.8514
timm_models | amp_bf16 | inference | coat_lite_mini | 0.9952 | 0.8722
timm_models | amp_bf16 | inference | convnextv2_nano.fcmae_ft_in22k_in1k | 1.0134 | 0.7121
timm_models | amp_bf16 | inference | crossvit_9_240 | 1.0064 | 0.7745
timm_models | amp_bf16 | inference | deit_base_distilled_patch16_224 | 1.0025 | 0.7617
timm_models | amp_bf16 | inference | visformer_small | 1.0258 | 0.8349
timm_models | amp_bf16 | training | convnextv2_nano.fcmae_ft_in22k_in1k | 1.0217 | 0.8272
timm_models | amp_fp16 | inference | coat_lite_mini | 1.0097 | 0.8871
timm_models | amp_fp16 | inference | convnextv2_nano.fcmae_ft_in22k_in1k | 1.0115 | 0.7091
timm_models | amp_fp16 | inference | crossvit_9_240 | 0.9903 | 0.7782
timm_models | amp_fp16 | inference | deit_base_distilled_patch16_224 | 1.0218 | 0.7624
timm_models | amp_fp16 | inference | visformer_small | 1.0212 | 0.8569
timm_models | amp_fp16 | training | convnextv2_nano.fcmae_ft_in22k_in1k | 1.0247 | 0.8274
torchbench | amp_bf16 | inference | hf_Albert | 1.0087 | 0.6952
torchbench | amp_bf16 | inference | hf_Bart | 0.968 | 0.8374
torchbench | amp_bf16 | inference | hf_Bert | 0.9622 | 0.8227
torchbench | amp_bf16 | inference | hf_Bert_large | 0.9126 | 0.8847
torchbench | amp_bf16 | inference | hf_BigBird | 1.0118 | 0.8288
torchbench | amp_bf16 | inference | hf_DistilBert | 1.0391 | 0.8642
torchbench | amp_bf16 | inference | hf_GPT2 | 0.9618 | 0.7289
torchbench | amp_bf16 | inference | hf_GPT2_large | 0.9949 | 0.7765
torchbench | amp_bf16 | inference | hf_Roberta_base | 0.9694 | 0.8739
torchbench | amp_bf16 | inference | hf_T5 | 1.0249 | 0.8461
torchbench | amp_bf16 | inference | hf_T5_base | 1.0413 | 0.8509
torchbench | amp_bf16 | inference | moondream | 1.1212 | 0.8667
torchbench | amp_bf16 | inference | timm_vision_transformer | 1.0106 | 0.7333
torchbench | amp_bf16 | inference | timm_vision_transformer_large | 0.994 | 0.8528
torchbench | amp_bf16 | training | hf_GPT2_large | 1.004 | 0.7584
torchbench | amp_fp16 | inference | hf_Albert | 0.9996 | 0.6694
torchbench | amp_fp16 | inference | hf_Bert | 1.0095 | 0.8577
torchbench | amp_fp16 | inference | hf_Bert_large | 0.9772 | 0.8873
torchbench | amp_fp16 | inference | hf_BigBird | 1.0242 | 0.869
torchbench | amp_fp16 | inference | hf_DistilBert | 0.942 | 0.8076
torchbench | amp_fp16 | inference | hf_GPT2 | 1.0009 | 0.7312
torchbench | amp_fp16 | inference | hf_GPT2_large | 0.9947 | 0.7709
torchbench | amp_fp16 | inference | hf_T5 | 1.0225 | 0.8476
torchbench | amp_fp16 | inference | hf_T5_base | 1.033 | 0.8625
torchbench | amp_fp16 | inference | timm_vision_transformer | 1.0133 | 0.741
torchbench | amp_fp16 | inference | timm_vision_transformer_large | 0.9986 | 0.852
torchbench | amp_fp16 | training | hf_GPT2_large | 1.0596 | 0.8234
torchbench | amp_fp16 | training | vgg16 | 0.886 | 1.0054
torchbench | bfloat16 | training | vgg16 | 0.8877 | 1.0008
## Issue Summary
Performance regression analysis identified multiple models with significant performance degradation. Models with **Ind Ratio < 0.9** or **Eager Ratio < 0.9** are experiencing more than 10% performance drop compared to baseline targets. Analysis reveals that **Eager mode** is severely affected across most models (70+ models), while **Inductor mode** shows relatively better performance (only ~8 models with issues).
## Problematic Model(s)
### Critical Issues (Ratio < 0.75)
| Suite | Dtype | Mode | Model | Ind Ratio | Eager Ratio | Issue Type |
|-------|-------|------|-------|-----------|-------------|------------|
| huggingface | float16 | inference | Qwen/Qwen3-0.6B | 0.7064 | 0.7060 | **CRITICAL**: Both Modes |
| huggingface | amp_bf16 | inference | GPT2ForSequenceClassification | 0.9998 | 0.6511 | **CRITICAL**: Eager |
| torchbench | amp_bf16 | inference | hf_Albert | 1.0087 | 0.6952 | **CRITICAL**: Eager |
| timm_models | amp_bf16 | inference | convnextv2_nano.fcmae_ft_in22k_in1k | 1.0134 | 0.7121 | **CRITICAL**: Eager |
| torchbench | amp_bf16 | inference | timm_vision_transformer | 1.0106 | 0.7333 | **CRITICAL**: Eager |
| huggingface | amp_fp16 | inference | GPT2ForSequenceClassification | 1.0260 | 0.7060 | **CRITICAL**: Eager |
| huggingface | amp_fp16 | inference | MobileBertForQuestionAnswering | 1.0876 | 0.7039 | **CRITICAL**: Eager |
| huggingface | amp_fp16 | inference | RobertaForQuestionAnswering | 0.9724 | 0.7446 | **CRITICAL**: Eager |
| timm_models | amp_fp16 | inference | convnextv2_nano.fcmae_ft_in22k_in1k | 1.0115 | 0.7091 | **CRITICAL**: Eager |
| torchbench | amp_fp16 | inference | hf_Albert | 0.9996 | 0.6694 | **CRITICAL**: Eager |
| torchbench | amp_fp16 | inference | timm_vision_transformer | 1.0133 | 0.7410 | **CRITICAL**: Eager |
### Severe Issues (Ind Ratio < 0.9)
| Suite | Dtype | Mode | Model | Ind Ratio | Eager Ratio | Issue Type |
|-------|-------|------|-------|-----------|-------------|------------|
| huggingface | amp_fp16 | training | MobileBertForQuestionAnswering | 0.8859 | 0.8382 | **SEVERE**: Mixed |
| torchbench | bfloat16 | training | vgg16 | 0.8877 | 1.0008 | **SEVERE**: Inductor |
| torchbench | amp_fp16 | training | vgg16 | 0.8860 | 1.0054 | **SEVERE**: Inductor |
| torchbench | amp_bf16 | inference | hf_Bert_large | 0.9126 | 0.8847 | Mild Mixed |
| huggingface | amp_bf16 | inference | MBartForConditionalGeneration | 0.9725 | 0.8549 | Mild Mixed |
| huggingface | amp_bf16 | inference | RobertaForQuestionAnswering | 0.9673 | 0.7421 | **SEVERE**: Mixed |
| huggingface | amp_bf16 | inference | PLBartForConditionalGeneration | 0.9812 | 0.8343 | Eager |
| huggingface | amp_bf16 | training | MBartForConditionalGeneration | 1.0490 | 0.8491 | Eager |
### Moderate Eager Regression (0.75-0.85) - Selected Examples
| Suite | Dtype | Mode | Model | Ind Ratio | Eager Ratio |
|-------|-------|------|-------|-----------|-------------|
| huggingface | amp_bf16 | inference | AlbertForMaskedLM | 1.0010 | 0.7657 |
| huggingface | amp_bf16 | inference | AlbertForQuestionAnswering | 0.9990 | 0.7620 |
| huggingface | amp_bf16 | inference | BertForQuestionAnswering | 1.0095 | 0.7738 |
| huggingface | amp_bf16 | inference | DistilBertForQuestionAnswering | 1.0073 | 0.7679 |
| huggingface | amp_bf16 | inference | ElectraForQuestionAnswering | 0.9916 | 0.7483 |
| timm_models | amp_bf16 | inference | crossvit_9_240 | 1.0064 | 0.7745 |
| timm_models | amp_bf16 | inference | deit_base_distilled_patch16_224 | 1.0025 | 0.7617 |
| torchbench | amp_bf16 | inference | hf_GPT2 | 0.9618 | 0.7289 |
| torchbench | amp_fp16 | inference | hf_DistilBert | 0.9420 | 0.8076 |
| torchbench | amp_fp16 | inference | hf_GPT2_large | 0.9947 | 0.7709 |
*Note: Over 60+ models show moderate Eager regression (ratio 0.75-0.85)*
## Analysis
### Affected Ratios Summary
- [x] **Ind Ratio < 0.9** - Inductor performance regression (8 models affected)
- [x] **Eager Ratio < 0.9** - Eager mode performance regression (70+ models affected)
## Environment Information
- **PyTorch Version:** 0163eec5ea4
- **OS:** Ubuntu 24.04
## Expected Behavior
- Both Inductor and Eager modes should maintain performance within 10% (ratio ≥ 0.9) of baseline targets
- Eager mode should not show 15-30% performance degradation across 60%+ of models
- Models should perform consistently across different dtypes and test suites
## Actual Behavior
- **Eager mode**: 73 out of 115 models (64%) show performance regression of >10%
- **Inductor mode**: Only 8 out of 115 models (7%) show performance regression
- **Severity**: Many affected models show 15-30% performance drops in Eager mode
- **Consistency**: Issues observed across multiple dtypes, suites, and model types
## Reproduction Steps
To reproduce these performance issues:
```bash
pip install --pre torch==2.14.0.dev20260804+xpu torchaudio==2.11.0.dev20260805+xpu torchvision==0.29.0.dev20260805+xpu triton-xpu==3.7.2+git5fcc14d9 --index-url https://download.pytorch.org/whl/nightly/xpu
TORCH_COMMIT_ID=$(python -c 'import torch; print(torch.version.git_version)')
git clone -b https://github.com/pytorch/pytorch pytorch
cd pytorch
pip install requests pandas psutil scipy pyyaml accelerate
# huggingface
pip install -r .ci/docker/ci_commit_pins/huggingface-requirements.txt || pip install transformers==4.54.0 soxr==0.5.0
# timm_models
TIMM_COMMIT_ID="$(cat .ci/docker/ci_commit_pins/timm.txt 2> /dev/null || echo 'v1.0.14')"
pip install git+https://github.com/huggingface/pytorch-image-models@${TIMM_COMMIT_ID}
# torchbench
TORCHBENCH_COMMIT_ID="$(cat .ci/docker/ci_commit_pins/torchbench.txt 2> /dev/null || echo 'e03a63be')"
cd ../
rm -rf ./benchmark
git clone https://github.com/pytorch/benchmark benchmark
cd benchmark
git checkout ${TORCHBENCH_COMMIT_ID}
python install.py --continue_on_fail
# Example benchmark commands for critical models
python benchmarks/dynamo/huggingface.py --performance -d xpu -n10 --backend=inductor --cold-start-latency --inference --amp --amp-dtype bfloat16 --only
python benchmarks/dynamo/timm_models.py --performance -d xpu -n10 --backend=inductor --cold-start-latency --inference --amp --amp-dtype bfloat16 --only
python benchmarks/dynamo/torchbench.py --performance -d xpu -n10 --backend=inductor --cold-start-latency --inference --amp --amp-dtype bfloat16 --only
```
## Additional Context
### Related Models with Similar Issues
**Models by Suite and Severity:**
**huggingface suite:**
- Severe (ratio < 0.75): Qwen, GPT2ForSequenceClassification, MobileBertForQuestionAnswering, RobertaForQuestionAnswering
- Moderate (ratio 0.75-0.85): AlbertForMaskedLM, BertForQuestionAnswering, DistilBertForQuestionAnswering
**timm_models suite:**
- Severe (ratio < 0.75): convnextv2_nano.fcmae_ft_in22k_in1k
- Moderate (ratio 0.75-0.85): crossvit_9_240, deit_base_distilled_patch16_224, visformer_small
**torchbench suite:**
- Severe (ratio < 0.75): hf_Albert, timm_vision_transformer, vgg16 (Inductor)
- Moderate (ratio 0.75-0.85): hf_GPT2, hf_T5, hf_T5_base
### Logs / Output
Click to expand performance data summary
```
Summary:
- Total models: 115
- Inductor Fails: 8 models (7%)
- Eager Fails: 73 models (64%)
- Critical Issues (<0.75): 11 models (10%)
- Both modes affected: 1 model (Qwen - 0.7064)
Most Common Issue Patterns:
1. Eager mode regression while Inductor performs normally (70+ models)
2. Models with 20-30% performance drops in Eager mode
3. Consistent issues across multiple test suites and dtypes
```
### Versions
torch 2.14.0.dev20260804+xpu
torchao 0.19.0.dev20260810+xpu
torchaudio 2.11.0.dev20260805+xpu
torchvision 0.29.0.dev20260805+xpu
Contributor guide
Assessment
This issue has not been assessed yet.