from transformers import PretrainedConfig | |
class ExtSummConfig(PretrainedConfig): | |
model_type = "longformer-bio-ext-summ" | |
def __init__( | |
self, | |
input_size: int = 4096, | |
**kwargs | |
): | |
self.input_size = input_size | |
super().__init__(**kwargs) |
from transformers import PretrainedConfig | |
class ExtSummConfig(PretrainedConfig): | |
model_type = "longformer-bio-ext-summ" | |
def __init__( | |
self, | |
input_size: int = 4096, | |
**kwargs | |
): | |
self.input_size = input_size | |
super().__init__(**kwargs) |