You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We introduced a WikiText demo to demonstrate how to apply PTQ to GPT2.
Notice that ACT2FN(modified LayerNorm) in GPT2MLP of official GPT2 model is replaced by nn.LayerNorm, which lead to slightly performance degragation (zero-shot ppl from 29.88 to 29.96)
Run
Install Requirements
pip install -r requirements.txt
Training(Optional)
run python main.py finetuning to get a fine-tuned float checkpoint