Transformers
PyTorch
code
custom_code
Inference Endpoints
codesage commited on
Commit
0278276
1 Parent(s): 6929fa4

Update modeling_codesage.py

Browse files
Files changed (1) hide show
  1. modeling_codesage.py +1 -5
modeling_codesage.py CHANGED
@@ -288,14 +288,10 @@ class CodeSageForMaskedLM(CodeSagePreTrainedModel):
288
  def __init__(self, config):
289
  super().__init__(config)
290
  self.transformer = CodeSageModel(config)
291
- self.lm_head = nn.Linear(config.n_embd, config.vocab_size, bias=False)
292
 
293
  self.init_weights()
294
 
295
- # Model parallel
296
- self.model_parallel = False
297
- self.device_map = None
298
-
299
  def get_output_embeddings(self):
300
  return self.lm_head
301
 
 
288
  def __init__(self, config):
289
  super().__init__(config)
290
  self.transformer = CodeSageModel(config)
291
+ self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
292
 
293
  self.init_weights()
294
 
 
 
 
 
295
  def get_output_embeddings(self):
296
  return self.lm_head
297