SGPA
Example code of Sparse Gaussian Process Attention (ICLR 2023)
Install / Use
/learn @chenw20/SGPAREADME
Sparse Gaussian Process Attention
This is an example code for the paper titled Calibrating Transformers via Sparse Gaussian Processes (ICLR 2023)
This code implememts SGPA on CIFAR10 and IMDB datasets.
To use this code: simply run train_cifar.py or train_imdb.py
The IMDB dataset can be downloaded here
Dependencies:
- Python - 3.8
- Pytorch - 1.10.2
- numpy - 1.22.4
- einops - 0.4.1
- pandas - 1.4.3
- transformers - 4.18.0
Citing the paper (bib)
@inproceedings{chen2023calibrating,
title = {Calibrating Transformers via Sparse Gaussian Processes},
author = {Chen, Wenlong and Li, Yingzhen},
booktitle = {International Conference on Learning Representations},
year = {2023}
}
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
