File size: 706 Bytes
6a12954 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
from transformers import PretrainedConfig
from typing import List
class ViTFNQSConfig(PretrainedConfig):
model_type = "vit_fnqs"
def __init__(
self,
L_eff=25,
num_layers = 8,
d_model = 72,
heads = 12,
b = 2,
complex: bool = True,
disorder: bool = False,
tras_inv = True,
two_dim = True,
**kwargs,
):
self.L_eff = L_eff
self.num_layers = num_layers
self.d_model = d_model
self.heads = heads
self.b = b
self.complex = complex
self.disorder = disorder
self.tras_inv = tras_inv
self.two_dim = two_dim
super().__init__(**kwargs) |