Wonder-Griffin commited on
Commit
4c81121
1 Parent(s): aecaf49

Upload JudgeXL

Browse files
Files changed (2) hide show
  1. judge_xl_model.py +3 -1
  2. model.safetensors +1 -1
judge_xl_model.py CHANGED
@@ -28,8 +28,10 @@ class JudgeXLConfig(PretrainedConfig):
28
  class CustomEmbedding(nn.Module):
29
  def __init__(self, vocab_size, hidden_size):
30
  super(CustomEmbedding, self).__init__()
31
- self.embedding = nn.Embedding(vocab_size, hidden_size)
32
  assert isinstance(vocab_size, int) and isinstance(hidden_size, int)
 
 
 
33
  def forward(self, inputs):
34
  return self.embedding(inputs)
35
 
 
28
  class CustomEmbedding(nn.Module):
29
  def __init__(self, vocab_size, hidden_size):
30
  super(CustomEmbedding, self).__init__()
 
31
  assert isinstance(vocab_size, int) and isinstance(hidden_size, int)
32
+ self.embedding = nn.Embedding(config.vocab_size, config.hidden_size)
33
+ print(f"vocab_size: {config.vocab_size}, hidden_size: {config.hidden_size}")
34
+
35
  def forward(self, inputs):
36
  return self.embedding(inputs)
37
 
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2b17fb87eb9a0731e250e91bc45ce5d2cdd943c44eb02775767add2b8a5d81da
3
  size 1053691936
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7748f30578453658d57e62715496ea224ec2f5ed4d7a3c3134b509ecc9b895f4
3
  size 1053691936