Skip to content

[wrapq] High PEIR (46%) of LlamaDecoderLayer of TinyLlama #513

@dayo09

Description

@dayo09

What?

tico/quantization/wrapq/examples/llama/quantize_llama_decoder_layer.py PEIR is very high >=46%

Copied from #490 (comment)

@mhs4670go

I found that PEIR is very high. Is it okay?

ai-edge-torch                0.7.1
torch                        2.10.0+cpu
torch_xla2                   0.0.1.dev202412041639
torchaudio                   2.10.0+cpu
torchcodec                   0.10.0
torchvision                  0.25.0+cpu
transformers                 4.57.3


┌───────────── Quantization Error Summary ─────────────
│ Mean |diff|: 0.262138
│ PEIR       : 46.538607 %
└──────────────────────────────────────────────────────
     ┌───────────────────────────────────────────┐
 0.95┤                                           │
     │                                           │
     │                                           │
 0.60┤                                           │
     │                                           │
     │                                           │
     │                                           │
 0.25┤                                           │
     │            •  •  •••••••••••••••••••• ••  │
     │             •• •••••• ••••••••••••••      │
-0.09┤     • •  •••••••• •••••••••••••           │
     │  •              •                         │
     │                                           │
-0.44┤                                           │
     │                                           │
     │                                           │
     │                                           │
-0.79┤                                           │
     │                                           │
     │                                           │
-1.14┤                                           │
     └┬──────────┬─────────┬──────────┬─────────┬┘
    -1.14      -0.61     -0.09      0.43     0.95 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions