Harley-ml commited on
Commit
002f7b0
·
verified ·
1 Parent(s): 75c5c71

Upload 4 files

Browse files
Files changed (3) hide show
  1. config.json +1 -1
  2. configuration_mr_pong.py +2 -2
  3. modeling_mr_pong.py +6 -3
config.json CHANGED
@@ -13,7 +13,7 @@
13
  "torch_dtype": "float32",
14
  "global_step": 9975808,
15
  "auto_map": {
16
- "AutoConfig": "configuration_mrs_paleta.MrPongConfig",
17
  "AutoModel": "modeling_mr_pong.MrPongForRL"
18
  }
19
  }
 
13
  "torch_dtype": "float32",
14
  "global_step": 9975808,
15
  "auto_map": {
16
+ "AutoConfig": "configuration_mr_pong.MrPongConfig",
17
  "AutoModel": "modeling_mr_pong.MrPongForRL"
18
  }
19
  }
configuration_mr_pong.py CHANGED
@@ -1,12 +1,12 @@
1
  """
2
- Configuration class for Mrs. Paleta Ping Pong RL Agent.
3
  """
4
 
5
  from transformers import PretrainedConfig
6
 
7
 
8
  class MrPongConfig(PretrainedConfig):
9
- model_type = "mrs_paleta"
10
 
11
  def __init__(
12
  self,
 
1
  """
2
+ Configuration class for MrPong Ping Pong RL Agent (fromziro/MrPong).
3
  """
4
 
5
  from transformers import PretrainedConfig
6
 
7
 
8
  class MrPongConfig(PretrainedConfig):
9
+ model_type = "mr_pong"
10
 
11
  def __init__(
12
  self,
modeling_mr_pong.py CHANGED
@@ -1,5 +1,5 @@
1
  """
2
- PyTorch Modeling class for Mrs. Paleta Ping Pong RL Agent.
3
  Compatible with Hugging Face AutoModel via trust_remote_code=True.
4
  """
5
 
@@ -14,13 +14,16 @@ from transformers.utils import ModelOutput
14
  try:
15
  from .configuration_mr_pong import MrPongConfig
16
  except ImportError:
17
- from configuration_mr_pong import MrPongConfig
 
 
 
18
 
19
 
20
  @dataclass
21
  class MrPongOutput(ModelOutput):
22
  """
23
- Model output for Mr Pong.
24
  """
25
  logits: torch.FloatTensor = None
26
  value_estimate: Optional[torch.FloatTensor] = None
 
1
  """
2
+ PyTorch Modeling class for MrPong Ping Pong RL Agent (fromziro/MrPong).
3
  Compatible with Hugging Face AutoModel via trust_remote_code=True.
4
  """
5
 
 
14
  try:
15
  from .configuration_mr_pong import MrPongConfig
16
  except ImportError:
17
+ try:
18
+ from configuration_mr_pong import MrPongConfig
19
+ except ImportError:
20
+ from configuration_mrpong import MrPongConfig
21
 
22
 
23
  @dataclass
24
  class MrPongOutput(ModelOutput):
25
  """
26
+ Model output for MrPong.
27
  """
28
  logits: torch.FloatTensor = None
29
  value_estimate: Optional[torch.FloatTensor] = None