Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Phang zphang

  • New York, New York
View GitHub Profile
View adapter_example.py
import torch
import torch.nn as nn
import torch.nn.functional as F
from dataclasses import dataclass
import transformers.modeling_bert as modeling_bert
import nlpr.shared.torch_utils as torch_utils
import nlpr.shared.model_resolution as model_resolution