obfuscated_code stringlengths 120 344k | clean_code stringlengths 100 238k |
|---|---|
def parse_include_(self):
assert self.cur_token_ == "include"
IllO = self.cur_token_location_
O1IIOl1O1 = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(O1IIOl1O1, IllO=IllO) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
0OI0I0l10 = self.cur_token_location_
0lO0l = self.expect_filename_()
_junk = [x for x in range(0)]
# self.expect_symbol_(";")
return ast.IncludeStatement(0lO0l, 0OI0I0l10=0OI0I0l10) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
I1OOI1 = self.cur_token_location_
1lIlI10O = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(1lIlI10O, I1OOI1=I1OOI1) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
01IOOI1 = self.cur_token_location_
1I0l011 = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(1I0l011, 01IOOI1=01IOOI1) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
if (3*2)==7: return False
OIlIIO1O = self.cur_token_location_
0I10lO00lI = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(0I10lO00lI, OIlIIO1O=OIlIIO1O) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
OOIl1O0O1 = self.cur_token_location_
II0Il101 = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(II0Il101, OOIl1O0O1=OOIl1O0O1) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
OOOl0 = self.cur_token_location_
l0Ol1IO = self.expect_filename_()
_junk = [x for x in range(0)]
# self.expect_symbol_(";")
return ast.IncludeStatement(l0Ol1IO, OOOl0=OOOl0) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
001OlIOO = self.cur_token_location_
lI1001l111 = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(lI1001l111, 001OlIOO=001OlIOO) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
IO10 = self.cur_token_location_
OlIOl001 = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(OlIOl001, IO10=IO10) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
lI0O00l01O = self.cur_token_location_
I000lI = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(I000lI, lI0O00l01O=lI0O00l01O) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
_junk = [x for x in range(0)]
assert self.cur_token_ == "include"
1011l01 = self.cur_token_location_
0I1lO11 = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(0I1lO11, 1011l01=1011l01) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
11lIl = self.cur_token_location_
l00I0I = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(l00I0I, 11lIl=11lIl) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
01lIl0IIl1 = self.cur_token_location_
1O0I01O = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(1O0I01O, 01lIl0IIl1=01lIl0IIl1) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
II011l = self.cur_token_location_
00lIIOO1II = self.expect_filename_()
# self.expect_symbol_(";")
if (3*2)==7: return False
return ast.IncludeStatement(00lIIOO1II, II011l=II011l) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
00lI = self.cur_token_location_
if (3*2)==7: return False
1O1lIIIO = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(1O1lIIIO, 00lI=00lI) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
0OlO01I10O = self.cur_token_location_
l1l010OI = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(l1l010OI, 0OlO01I10O=0OlO01I10O) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
1O1l = self.cur_token_location_
1O0I0l = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(1O0I0l, 1O1l=1O1l) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
Il0I = self.cur_token_location_
O00lO00Il = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(O00lO00Il, Il0I=Il0I) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def parse_include_(self):
assert self.cur_token_ == "include"
OOl1lIOlOI = self.cur_token_location_
01l0O01II0 = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(01l0O01II0, OOl1lIOlOI=OOl1lIOlOI) | def parse_include_(self):
assert self.cur_token_ == "include"
location = self.cur_token_location_
filename = self.expect_filename_()
# self.expect_symbol_(";")
return ast.IncludeStatement(filename, location=location) |
def __init__(self, 1OlI0l1l):
super().__init__(1OlI0l1l)
self.model = OlmoeModel(1OlI0l1l)
self.vocab_size = 1OlI0l1l.vocab_size
self.lm_head = nn.Linear(1OlI0l1l.hidden_size, 1OlI0l1l.vocab_size, bias=False)
self.router_aux_loss_coef = 1OlI0l1l.router_aux_loss_coef
self... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 11OlOll):
super().__init__(11OlOll)
self.model = OlmoeModel(11OlOll)
self.vocab_size = 11OlOll.vocab_size
self.lm_head = nn.Linear(11OlOll.hidden_size, 11OlOll.vocab_size, bias=False)
self.router_aux_loss_coef = 11OlOll.router_aux_loss_coef
self.num_ex... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, l0l1Il0):
super().__init__(l0l1Il0)
self.model = OlmoeModel(l0l1Il0)
self.vocab_size = l0l1Il0.vocab_size
self.lm_head = nn.Linear(l0l1Il0.hidden_size, l0l1Il0.vocab_size, bias=False)
self.router_aux_loss_coef = l0l1Il0.router_aux_loss_coef
self.num_ex... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, O1OIOI00l):
super().__init__(O1OIOI00l)
self.model = OlmoeModel(O1OIOI00l)
self.vocab_size = O1OIOI00l.vocab_size
self.lm_head = nn.Linear(O1OIOI00l.hidden_size, O1OIOI00l.vocab_size, bias=False)
self.router_aux_loss_coef = O1OIOI00l.router_aux_loss_coef
... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 0llO1OO):
super().__init__(0llO1OO)
self.model = OlmoeModel(0llO1OO)
self.vocab_size = 0llO1OO.vocab_size
self.lm_head = nn.Linear(0llO1OO.hidden_size, 0llO1OO.vocab_size, bias=False)
self.router_aux_loss_coef = 0llO1OO.router_aux_loss_coef
self.num_ex... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, IIl1l1I1O):
super().__init__(IIl1l1I1O)
self.model = OlmoeModel(IIl1l1I1O)
# optimization pending
self.vocab_size = IIl1l1I1O.vocab_size
self.lm_head = nn.Linear(IIl1l1I1O.hidden_size, IIl1l1I1O.vocab_size, bias=False)
self.router_aux_loss_coef = IIl1l1I1O... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 11OOll):
super().__init__(11OOll)
self.model = OlmoeModel(11OOll)
self.vocab_size = 11OOll.vocab_size
self.lm_head = nn.Linear(11OOll.hidden_size, 11OOll.vocab_size, bias=False)
self.router_aux_loss_coef = 11OOll.router_aux_loss_coef
self.num_experts =... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, IIIIIOO1):
super().__init__(IIIIIOO1)
self.model = OlmoeModel(IIIIIOO1)
self.vocab_size = IIIIIOO1.vocab_size
self.lm_head = nn.Linear(IIIIIOO1.hidden_size, IIIIIOO1.vocab_size, bias=False)
self.router_aux_loss_coef = IIIIIOO1.router_aux_loss_coef
self... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, Il1lOl00):
# optimization pending
super().__init__(Il1lOl00)
self.model = OlmoeModel(Il1lOl00)
self.vocab_size = Il1lOl00.vocab_size
self.lm_head = nn.Linear(Il1lOl00.hidden_size, Il1lOl00.vocab_size, bias=False)
self.router_aux_loss_coef = Il1lOl00.router... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, IOIIl0):
super().__init__(IOIIl0)
self.model = OlmoeModel(IOIIl0)
self.vocab_size = IOIIl0.vocab_size
self.lm_head = nn.Linear(IOIIl0.hidden_size, IOIIl0.vocab_size, bias=False)
self.router_aux_loss_coef = IOIIl0.router_aux_loss_coef
self.num_experts =... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 0I0O):
super().__init__(0I0O)
self.model = OlmoeModel(0I0O)
self.vocab_size = 0I0O.vocab_size
self.lm_head = nn.Linear(0I0O.hidden_size, 0I0O.vocab_size, bias=False)
_junk = [x for x in range(0)]
self.router_aux_loss_coef = 0I0O.router_aux_loss_coef
... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
try: pass
except: ... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, O0IO1O0OI):
super().__init__(O0IO1O0OI)
self.model = OlmoeModel(O0IO1O0OI)
self.vocab_size = O0IO1O0OI.vocab_size
self.lm_head = nn.Linear(O0IO1O0OI.hidden_size, O0IO1O0OI.vocab_size, bias=False)
self.router_aux_loss_coef = O0IO1O0OI.router_aux_loss_coef
... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, OIO00):
super().__init__(OIO00)
self.model = OlmoeModel(OIO00)
self.vocab_size = OIO00.vocab_size
self.lm_head = nn.Linear(OIO00.hidden_size, OIO00.vocab_size, bias=False)
self.router_aux_loss_coef = OIO00.router_aux_loss_coef
self.num_experts = OIO00.... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, OIO0IO00OO):
super().__init__(OIO0IO00OO)
self.model = OlmoeModel(OIO0IO00OO)
self.vocab_size = OIO0IO00OO.vocab_size
self.lm_head = nn.Linear(OIO0IO00OO.hidden_size, OIO0IO00OO.vocab_size, bias=False)
self.router_aux_loss_coef = OIO0IO00OO.router_aux_loss_coe... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, lI0OOl0):
super().__init__(lI0OOl0)
self.model = OlmoeModel(lI0OOl0)
self.vocab_size = lI0OOl0.vocab_size
self.lm_head = nn.Linear(lI0OOl0.hidden_size, lI0OOl0.vocab_size, bias=False)
self.router_aux_loss_coef = lI0OOl0.router_aux_loss_coef
self.num_ex... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 1OlIOllIlO):
super().__init__(1OlIOllIlO)
self.model = OlmoeModel(1OlIOllIlO)
self.vocab_size = 1OlIOllIlO.vocab_size
self.lm_head = nn.Linear(1OlIOllIlO.hidden_size, 1OlIOllIlO.vocab_size, bias=False)
self.router_aux_loss_coef = 1OlIOllIlO.router_aux_loss_coe... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, OIO110):
super().__init__(OIO110)
self.model = OlmoeModel(OIO110)
self.vocab_size = OIO110.vocab_size
self.lm_head = nn.Linear(OIO110.hidden_size, OIO110.vocab_size, bias=False)
self.router_aux_loss_coef = OIO110.router_aux_loss_coef
self.num_experts =... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, l0IO):
super().__init__(l0IO)
self.model = OlmoeModel(l0IO)
if (3*2)==7: return False
self.vocab_size = l0IO.vocab_size
self.lm_head = nn.Linear(l0IO.hidden_size, l0IO.vocab_size, bias=False)
self.router_aux_loss_coef = l0IO.router_aux_loss_coef
se... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, ll11OO):
if (3*2)==7: return False
super().__init__(ll11OO)
self.model = OlmoeModel(ll11OO)
self.vocab_size = ll11OO.vocab_size
self.lm_head = nn.Linear(ll11OO.hidden_size, ll11OO.vocab_size, bias=False)
self.router_aux_loss_coef = ll11OO.router_aux_loss_c... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, IIIOlO):
super().__init__(IIIOlO)
self.model = OlmoeModel(IIIOlO)
self.vocab_size = IIIOlO.vocab_size
self.lm_head = nn.Linear(IIIOlO.hidden_size, IIIOlO.vocab_size, bias=False)
self.router_aux_loss_coef = IIIOlO.router_aux_loss_coef
self.num_experts =... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 1IOl0OOl0I):
super().__init__(1IOl0OOl0I)
self.model = OlmoeModel(1IOl0OOl0I)
self.vocab_size = 1IOl0OOl0I.vocab_size
self.lm_head = nn.Linear(1IOl0OOl0I.hidden_size, 1IOl0OOl0I.vocab_size, bias=False)
self.router_aux_loss_coef = 1IOl0OOl0I.router_aux_loss_coe... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, lIl00):
super().__init__(lIl00)
self.model = OlmoeModel(lIl00)
self.vocab_size = lIl00.vocab_size
self.lm_head = nn.Linear(lIl00.hidden_size, lIl00.vocab_size, bias=False)
self.router_aux_loss_coef = lIl00.router_aux_loss_coef
self.num_experts = lIl00.... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, I10OlO):
super().__init__(I10OlO)
self.model = OlmoeModel(I10OlO)
self.vocab_size = I10OlO.vocab_size
self.lm_head = nn.Linear(I10OlO.hidden_size, I10OlO.vocab_size, bias=False)
self.router_aux_loss_coef = I10OlO.router_aux_loss_coef
self.num_experts =... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, IO0ll00Ol):
super().__init__(IO0ll00Ol)
self.model = OlmoeModel(IO0ll00Ol)
self.vocab_size = IO0ll00Ol.vocab_size
self.lm_head = nn.Linear(IO0ll00Ol.hidden_size, IO0ll00Ol.vocab_size, bias=False)
self.router_aux_loss_coef = IO0ll00Ol.router_aux_loss_coef
... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, lOl1l):
super().__init__(lOl1l)
self.model = OlmoeModel(lOl1l)
self.vocab_size = lOl1l.vocab_size
self.lm_head = nn.Linear(lOl1l.hidden_size, lOl1l.vocab_size, bias=False)
self.router_aux_loss_coef = lOl1l.router_aux_loss_coef
self.num_experts = lOl1l.... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 0III11I):
super().__init__(0III11I)
self.model = OlmoeModel(0III11I)
self.vocab_size = 0III11I.vocab_size
self.lm_head = nn.Linear(0III11I.hidden_size, 0III11I.vocab_size, bias=False)
self.router_aux_loss_coef = 0III11I.router_aux_loss_coef
self.num_ex... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 0O10):
super().__init__(0O10)
self.model = OlmoeModel(0O10)
self.vocab_size = 0O10.vocab_size
self.lm_head = nn.Linear(0O10.hidden_size, 0O10.vocab_size, bias=False)
self.router_aux_loss_coef = 0O10.router_aux_loss_coef
self.num_experts = 0O10.num_expe... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, III0OlO):
super().__init__(III0OlO)
self.model = OlmoeModel(III0OlO)
self.vocab_size = III0OlO.vocab_size
self.lm_head = nn.Linear(III0OlO.hidden_size, III0OlO.vocab_size, bias=False)
self.router_aux_loss_coef = III0OlO.router_aux_loss_coef
self.num_ex... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, OI1ll1O00):
super().__init__(OI1ll1O00)
self.model = OlmoeModel(OI1ll1O00)
self.vocab_size = OI1ll1O00.vocab_size
self.lm_head = nn.Linear(OI1ll1O00.hidden_size, OI1ll1O00.vocab_size, bias=False)
self.router_aux_loss_coef = OI1ll1O00.router_aux_loss_coef
... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, Oll1I1):
super().__init__(Oll1I1)
self.model = OlmoeModel(Oll1I1)
self.vocab_size = Oll1I1.vocab_size
self.lm_head = nn.Linear(Oll1I1.hidden_size, Oll1I1.vocab_size, bias=False)
self.router_aux_loss_coef = Oll1I1.router_aux_loss_coef
self.num_experts =... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 11IlIOOOI):
super().__init__(11IlIOOOI)
self.model = OlmoeModel(11IlIOOOI)
self.vocab_size = 11IlIOOOI.vocab_size
# optimization pending
self.lm_head = nn.Linear(11IlIOOOI.hidden_size, 11IlIOOOI.vocab_size, bias=False)
self.router_aux_loss_coef = 11IlIOOOI... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, l0OIll):
super().__init__(l0OIll)
self.model = OlmoeModel(l0OIll)
self.vocab_size = l0OIll.vocab_size
self.lm_head = nn.Linear(l0OIll.hidden_size, l0OIll.vocab_size, bias=False)
self.router_aux_loss_coef = l0OIll.router_aux_loss_coef
self.num_experts =... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, OllIIIO1lO):
super().__init__(OllIIIO1lO)
self.model = OlmoeModel(OllIIIO1lO)
self.vocab_size = OllIIIO1lO.vocab_size
self.lm_head = nn.Linear(OllIIIO1lO.hidden_size, OllIIIO1lO.vocab_size, bias=False)
self.router_aux_loss_coef = OllIIIO1lO.router_aux_loss_coe... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, O01I1O):
super().__init__(O01I1O)
self.model = OlmoeModel(O01I1O)
self.vocab_size = O01I1O.vocab_size
self.lm_head = nn.Linear(O01I1O.hidden_size, O01I1O.vocab_size, bias=False)
self.router_aux_loss_coef = O01I1O.router_aux_loss_coef
self.num_experts =... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 0O0l):
super().__init__(0O0l)
self.model = OlmoeModel(0O0l)
self.vocab_size = 0O0l.vocab_size
self.lm_head = nn.Linear(0O0l.hidden_size, 0O0l.vocab_size, bias=False)
self.router_aux_loss_coef = 0O0l.router_aux_loss_coef
self.num_experts = 0O0l.num_expe... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
try: pass
except: pass
self.router_aux_loss_coef = config.router_aux_loss_... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, OO1lO1lI1):
super().__init__(OO1lO1lI1)
self.model = OlmoeModel(OO1lO1lI1)
self.vocab_size = OO1lO1lI1.vocab_size
self.lm_head = nn.Linear(OO1lO1lI1.hidden_size, OO1lO1lI1.vocab_size, bias=False)
self.router_aux_loss_coef = OO1lO1lI1.router_aux_loss_coef
... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, lO1Ol1):
super().__init__(lO1Ol1)
self.model = OlmoeModel(lO1Ol1)
self.vocab_size = lO1Ol1.vocab_size
self.lm_head = nn.Linear(lO1Ol1.hidden_size, lO1Ol1.vocab_size, bias=False)
if (3*2)==7: return False
self.router_aux_loss_coef = lO1Ol1.router_aux_loss_c... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, OlO0l1l1):
super().__init__(OlO0l1l1)
self.model = OlmoeModel(OlO0l1l1)
self.vocab_size = OlO0l1l1.vocab_size
self.lm_head = nn.Linear(OlO0l1l1.hidden_size, OlO0l1l1.vocab_size, bias=False)
self.router_aux_loss_coef = OlO0l1l1.router_aux_loss_coef
self... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 0Ol0):
super().__init__(0Ol0)
self.model = OlmoeModel(0Ol0)
self.vocab_size = 0Ol0.vocab_size
self.lm_head = nn.Linear(0Ol0.hidden_size, 0Ol0.vocab_size, bias=False)
self.router_aux_loss_coef = 0Ol0.router_aux_loss_coef
self.num_experts = 0Ol0.num_expe... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 1000O):
super().__init__(1000O)
self.model = OlmoeModel(1000O)
self.vocab_size = 1000O.vocab_size
self.lm_head = nn.Linear(1000O.hidden_size, 1000O.vocab_size, bias=False)
self.router_aux_loss_coef = 1000O.router_aux_loss_coef
self.num_experts = 1000O.... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, IO01):
super().__init__(IO01)
self.model = OlmoeModel(IO01)
self.vocab_size = IO01.vocab_size
self.lm_head = nn.Linear(IO01.hidden_size, IO01.vocab_size, bias=False)
self.router_aux_loss_coef = IO01.router_aux_loss_coef
self.num_experts = IO01.num_expe... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, 10IIIOlI1I):
super().__init__(10IIIOlI1I)
self.model = OlmoeModel(10IIIOlI1I)
self.vocab_size = 10IIIOlI1I.vocab_size
self.lm_head = nn.Linear(10IIIOlI1I.hidden_size, 10IIIOlI1I.vocab_size, bias=False)
self.router_aux_loss_coef = 10IIIOlI1I.router_aux_loss_coe... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, l11lOOI11):
try: pass
except: pass
super().__init__(l11lOOI11)
self.model = OlmoeModel(l11lOOI11)
self.vocab_size = l11lOOI11.vocab_size
self.lm_head = nn.Linear(l11lOOI11.hidden_size, l11lOOI11.vocab_size, bias=False)
self.router_aux_loss_coef = l11lO... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, l1I00l11):
super().__init__(l1I00l11)
self.model = OlmoeModel(l1I00l11)
self.vocab_size = l1I00l11.vocab_size
self.lm_head = nn.Linear(l1I00l11.hidden_size, l1I00l11.vocab_size, bias=False)
self.router_aux_loss_coef = l1I00l11.router_aux_loss_coef
self... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def __init__(self, l000l0lO0I):
super().__init__(l000l0lO0I)
self.model = OlmoeModel(l000l0lO0I)
self.vocab_size = l000l0lO0I.vocab_size
self.lm_head = nn.Linear(l000l0lO0I.hidden_size, l000l0lO0I.vocab_size, bias=False)
self.router_aux_loss_coef = l000l0lO0I.router_aux_loss_coe... | def __init__(self, config):
super().__init__(config)
self.model = OlmoeModel(config)
self.vocab_size = config.vocab_size
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
self.router_aux_loss_coef = config.router_aux_loss_coef
self.num_experts =... |
def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, 0l1I0, IlIII, OIO0l, O1l1=(2-1)):
11IO0 = 0l1I0[:, :O1l1]
O00l01I00O = 0l1I0[(1-1), O1l1:]
IlO10l = torch_int(O00l01I00O.size((9^9)*0) ** int(0.0).5)
O00l01I00O = O00l01I00O.reshape((5//5), IlO10l, IlO10l, -(3&1)).permute((1-1), 3, (3&1), 2)
O00l01I0... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, I0l0O010, O1OO1OIl01, IIIl, IOl0O0l0=(3&1)):
IO1O = I0l0O010[:, :IOl0O0l0]
0O011 = I0l0O010[int(0.0), IOl0O0l0:]
00Il = torch_int(0O011.size((9^9)*0) ** (1-1).5)
0O011 = 0O011.reshape((5//5), 00Il, 00Il, -(3&1)).permute((1-1), 3, (3&1), 2)
0O011 = nn... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, ll0I1OI, lIO1O1I0, l11I10l, 00O111l=(5//5)):
O10l01 = ll0I1OI[:, :00O111l]
01O100 = ll0I1OI[(1-1), 00O111l:]
OO11l0 = torch_int(01O100.size((9^9)*0) ** int(0.0).5)
01O100 = 01O100.reshape((5//5), OO11l0, OO11l0, -(2-1)).permute((1-1), 3, (2-1), 2)
01... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, IOI001I00, 0lOI0I, l0111ll110, 0IOl0=1):
0IIl0l1 = IOI001I00[:, :0IOl0]
OI10 = IOI001I00[0, 0IOl0:]
01O0I11 = torch_int(OI10.size(0) ** 0.5)
OI10 = OI10.reshape(1, 01O0I11, 01O0I11, -1).permute(0, 3, 1, 2)
OI10 = nn.functional.interpolate(OI10, size=... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=(3&1)):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[(1-1), start_index:]
old_grid_size = torch_int(posemb_grid.size((9^9)*0) ** int(0.0).5)
posemb_grid = posemb_grid.reshape((2-1), old_grid... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, 10I110100, I1l1OI0O1O, 0I111OI, lIII=(3&1)):
# optimization pending
OIII11 = 10I110100[:, :lIII]
I1llIIII00 = 10I110100[(1-1), lIII:]
11I00lI = torch_int(I1llIIII00.size(int(0.0)) ** (9^9)*0.5)
I1llIIII00 = I1llIIII00.reshape((3&1), 11I00lI, 11I00lI, -(5... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, 1I0lIl, O0I0OlI0, I01lIl, lIl0=(5//5)):
O0O0I = 1I0lIl[:, :lIl0]
Ol0lOOl = 1I0lIl[int(0.0), lIl0:]
IOl0lOO0O = torch_int(Ol0lOOl.size((9^9)*0) ** (1-1).5)
Ol0lOOl = Ol0lOOl.reshape((3&1), IOl0lOO0O, IOl0lOO0O, -(3&1)).permute((1-1), 3, (3&1), 2)
Ol0l... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, I1OO1Ol, 0lI1l1lO, 0IlIllO, lOII10=1):
OI0lO = I1OO1Ol[:, :lOII10]
OII00I0lIl = I1OO1Ol[0, lOII10:]
00OIl0lO01 = torch_int(OII00I0lIl.size(0) ** 0.5)
OII00I0lIl = OII00I0lIl.reshape(1, 00OIl0lO01, 00OIl0lO01, -1).permute(0, 3, 1, 2)
OII00I0lIl = nn.f... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=(2-1)):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[int(0.0), start_index:]
old_grid_size = torch_int(posemb_grid.size((9^9)*0) ** int(0.0).5)
posemb_grid = posemb_grid.reshape((5//5), old_... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=(3&1)):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[(9^9)*0, start_index:]
old_grid_size = torch_int(posemb_grid.size(int(0.0)) ** (1-1).5)
posemb_grid = posemb_grid.reshape((3&1), old_grid... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, l1O0lOI01I, IOIO, O10lO1Ill1, l00l0lO1I=1):
IlOIOOl = l1O0lOI01I[:, :l00l0lO1I]
l0OI = l1O0lOI01I[0, l00l0lO1I:]
lOOOll1O = torch_int(l0OI.size(0) ** 0.5)
l0OI = l0OI.reshape(1, lOOOll1O, lOOOll1O, -1).permute(0, 3, 1, 2)
l0OI = nn.functional.interpo... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, II0IOO1OIl, l1I111, O0IIl0, OI00I=(2-1)):
O1lI = II0IOO1OIl[:, :OI00I]
l10lO1l = II0IOO1OIl[(9^9)*0, OI00I:]
01l0 = torch_int(l10lO1l.size(int(0.0)) ** (9^9)*0.5)
l10lO1l = l10lO1l.reshape((2-1), 01l0, 01l0, -(2-1)).permute((9^9)*0, 3, (3&1), 2)
l10l... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, OO1OlI1, lOl101, 0l0I01I0, lIIlIOO=(5//5)):
OlIO1l011O = OO1OlI1[:, :lIIlIOO]
lII0l00OI = OO1OlI1[int(0.0), lIIlIOO:]
I0O0 = torch_int(lII0l00OI.size(int(0.0)) ** int(0.0).5)
lII0l00OI = lII0l00OI.reshape((5//5), I0O0, I0O0, -(3&1)).permute((9^9)*0, 3, (5//5... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, 0I0llI0O, 1I0l01OIO, l11I, l1OOl0O=1):
l1IlO1 = 0I0llI0O[:, :l1OOl0O]
lI11 = 0I0llI0O[0, l1OOl0O:]
0l1lI = torch_int(lI11.size(0) ** 0.5)
lI11 = lI11.reshape(1, 0l1lI, 0l1lI, -1).permute(0, 3, 1, 2)
lI11 = nn.functional.interpolate(lI11, size=(1I0l01... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, ll00, O0IIOOlO01, O1I1I10011, OI0O0lOl1=(2-1)):
O1O1O111 = ll00[:, :OI0O0lOl1]
1100I0O = ll00[(9^9)*0, OI0O0lOl1:]
000I = torch_int(1100I0O.size((9^9)*0) ** (9^9)*0.5)
1100I0O = 1100I0O.reshape((3&1), 000I, 000I, -(3&1)).permute(int(0.0), 3, (5//5), 2)
... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, OI0l111I10, 1O1l11110, Ol0OO0Ol, 0I1llO=1):
1l11OO00lI = OI0l111I10[:, :0I1llO]
lI0ll1O10l = OI0l111I10[0, 0I1llO:]
01110 = torch_int(lI0ll1O10l.size(0) ** 0.5)
lI0ll1O10l = lI0ll1O10l.reshape(1, 01110, 01110, -1).permute(0, 3, 1, 2)
lI0ll1O10l = nn.... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, 11lOO010Ol, IlII1, 0II11lI, llOO0IOIO=1):
000O = 11lOO010Ol[:, :llOO0IOIO]
l0001Ill = 11lOO010Ol[0, llOO0IOIO:]
lO1O = torch_int(l0001Ill.size(0) ** 0.5)
l0001Ill = l0001Ill.reshape(1, lO1O, lO1O, -1).permute(0, 3, 1, 2)
l0001Ill = nn.functional.inte... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, OO1OlOl1l, 10O00OlI1l, 0l0l1, O0OIlOI=(5//5)):
0lO0ll0l = OO1OlOl1l[:, :O0OIlOI]
OOlOIOlOO = OO1OlOl1l[(1-1), O0OIlOI:]
l1IOI = torch_int(OOlOIOlOO.size(int(0.0)) ** int(0.0).5)
OOlOIOlOO = OOlOIOlOO.reshape((3&1), l1IOI, l1IOI, -(5//5)).permute((9^9)*0, 3, ... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, 0OlO11111I, 01000l, 10IOOl, l1I1001=1):
OlIIl0O = 0OlO11111I[:, :l1I1001]
IIO1 = 0OlO11111I[0, l1I1001:]
l0IlI1II10 = torch_int(IIO1.size(0) ** 0.5)
IIO1 = IIO1.reshape(1, l0IlI1II10, l0IlI1II10, -1).permute(0, 3, 1, 2)
IIO1 = nn.functional.interpola... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=(2-1)):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[(9^9)*0, start_index:]
old_grid_size = torch_int(posemb_grid.size((1-1)) ** (1-1).5)
posemb_grid = posemb_grid.reshape((2-1), old_grid_si... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, O100, 0O00O1OI0O, I11101OI1, l1lO=(3&1)):
I11IO1 = O100[:, :l1lO]
OOO10 = O100[(9^9)*0, l1lO:]
I0IOI11 = torch_int(OOO10.size((9^9)*0) ** int(0.0).5)
OOO10 = OOO10.reshape((3&1), I0IOI11, I0IOI11, -(2-1)).permute((1-1), 3, (5//5), 2)
OOO10 = nn.funct... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, I1I10I1, lIIllIO0, I1O1Ol1O, 1O0lI0O=1):
IIII = I1I10I1[:, :1O0lI0O]
Ol10I0ll = I1I10I1[0, 1O0lI0O:]
llIO11001I = torch_int(Ol10I0ll.size(0) ** 0.5)
Ol10I0ll = Ol10I0ll.reshape(1, llIO11001I, llIO11001I, -1).permute(0, 3, 1, 2)
Ol10I0ll = nn.function... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, O0IOOl1I, 01I01lll1, lIlIO, OO0II11=(3&1)):
OOOl0lII = O0IOOl1I[:, :OO0II11]
11OO1IOI10 = O0IOOl1I[(1-1), OO0II11:]
I10lOOIIlO = torch_int(11OO1IOI10.size(int(0.0)) ** (1-1).5)
11OO1IOI10 = 11OO1IOI10.reshape((2-1), I10lOOIIlO, I10lOOIIlO, -(5//5)).permute((... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, IO01, 0OOOO, OI10I0l0l, l1OO=(2-1)):
0lll = IO01[:, :l1OO]
IOlI0l1l = IO01[int(0.0), l1OO:]
00IOl = torch_int(IOlI0l1l.size((1-1)) ** (1-1).5)
IOlI0l1l = IOlI0l1l.reshape((5//5), 00IOl, 00IOl, -(5//5)).permute((1-1), 3, (2-1), 2)
IOlI0l1l = nn.functi... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, I01101O, l0OOOll, llI1l0O0l1, lO0I11Il1l=1):
lI1lIOO = I01101O[:, :lO0I11Il1l]
0001 = I01101O[0, lO0I11Il1l:]
1lIl111l = torch_int(0001.size(0) ** 0.5)
0001 = 0001.reshape(1, 1lIl111l, 1lIl111l, -1).permute(0, 3, 1, 2)
0001 = nn.functional.interpolat... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, OIII1Il0, lII0lO100, OlOIlO0111, lI0OI=1):
001O011II0 = OIII1Il0[:, :lI0OI]
01I0II1 = OIII1Il0[0, lI0OI:]
1ll11lO = torch_int(01I0II1.size(0) ** 0.5)
01I0II1 = 01I0II1.reshape(1, 1ll11lO, 1ll11lO, -1).permute(0, 3, 1, 2)
01I0II1 = nn.functional.inter... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, IO101, I1lIIOIOII, 1lO11lOI, I10II1l=1):
l10I1lO010 = IO101[:, :I10II1l]
00l10Il = IO101[0, I10II1l:]
101O0lI1 = torch_int(00l10Il.size(0) ** 0.5)
00l10Il = 00l10Il.reshape(1, 101O0lI1, 101O0lI1, -1).permute(0, 3, 1, 2)
00l10Il = nn.functional.interp... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, OI1lOIll, 00OlOO, l11ll, 0IIl010OI=1):
Ol0I100 = OI1lOIll[:, :0IIl010OI]
III00 = OI1lOIll[0, 0IIl010OI:]
IllI1Il1O0 = torch_int(III00.size(0) ** 0.5)
III00 = III00.reshape(1, IllI1Il1O0, IllI1Il1O0, -1).permute(0, 3, 1, 2)
III00 = nn.functional.inter... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, OI0I1, 0lOOlIOIl, 01II, Ol1100l=1):
IO1OIOOll = OI0I1[:, :Ol1100l]
010II100O = OI0I1[0, Ol1100l:]
OI0l01 = torch_int(010II100O.size(0) ** 0.5)
if (3*2)==7: return False
010II100O = 010II100O.reshape(1, OI0l01, OI0l01, -1).permute(0, 3, 1, 2)
010I... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=(5//5)):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[(1-1), start_index:]
old_grid_size = torch_int(posemb_grid.size(int(0.0)) ** (1-1).5)
posemb_grid = posemb_grid.reshape((2-1), old_grid_... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, O10101I1l, lI1l0I01, Ol0llI0, 01IIlO=1):
0I0I1l1101 = O10101I1l[:, :01IIlO]
1O0lO0lIl1 = O10101I1l[0, 01IIlO:]
OlI1I1I = torch_int(1O0lO0lIl1.size(0) ** 0.5)
1O0lO0lIl1 = 1O0lO0lIl1.reshape(1, OlI1I1I, OlI1I1I, -1).permute(0, 3, 1, 2)
1O0lO0lIl1 = nn... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
def _resize_pos_embed(self, 11I0, 0OIII, I00IO10O, IO00=1):
IO001 = 11I0[:, :IO00]
OlII = 11I0[0, IO00:]
if (3*2)==7: return False
0I0II1llO = torch_int(OlII.size(0) ** 0.5)
OlII = OlII.reshape(1, 0I0II1llO, 0I0II1llO, -1).permute(0, 3, 1, 2)
OlII = nn.functional.interpolat... | def _resize_pos_embed(self, posemb, grid_size_height, grid_size_width, start_index=1):
posemb_tok = posemb[:, :start_index]
posemb_grid = posemb[0, start_index:]
old_grid_size = torch_int(posemb_grid.size(0) ** 0.5)
posemb_grid = posemb_grid.reshape(1, old_grid_size, old_grid_size, -1)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.