This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# port of models described in RW | |
# We use the bloom model as a starting point for these model. | |
# Please refer to the bloom models for usage instructions. | |
import math | |
import warnings | |
from typing import Optional, Tuple, Union | |
import torch | |
import torch.utils.checkpoint |