Skip to content

Instantly share code, notes, and snippets.

View iamNCJ's full-sized avatar

NCJ iamNCJ

View GitHub Profile
@iamNCJ
iamNCJ / glue.py
Created March 24, 2021 07:40
GLUE with transformer and pytorch lightning
from argparse import ArgumentParser
from datetime import datetime
from typing import Optional
import datasets
import numpy as np
import pytorch_lightning as pl
import torch
from torch.utils.data import DataLoader
from transformers import (
Other 60 hrs 16 mins ███████████████████▋░ 93.5%
Python 3 hrs 37 mins █▏░░░░░░░░░░░░░░░░░░░ 5.6%
YAML 9 mins ░░░░░░░░░░░░░░░░░░░░░ 0.3%
Docker 9 mins ░░░░░░░░░░░░░░░░░░░░░ 0.2%
Markdown 6 mins ░░░░░░░░░░░░░░░░░░░░░ 0.2%