HaileyStorm commited on
Commit
1dd6f7d
1 Parent(s): 48f62a8

Update chess-gpt-eval-contrastive/mamba_module.py

Browse files
chess-gpt-eval-contrastive/mamba_module.py CHANGED
@@ -6,6 +6,7 @@ from mamba_ssm import MambaLMHeadModel
6
  from contextlib import nullcontext
7
  import numpy as np
8
  from functools import partial
 
9
 
10
  BASE_DIR = "mamba/"
11
 
@@ -176,7 +177,7 @@ class MambaPlayer:
176
  except:
177
  return None
178
 
179
- def get_move(self, board: str, game_state: str, temperature: float) -> str:
180
  self.move_num = game_state.count('.')
181
  completion = self.get_mamba_response(game_state, temperature, 8, self.vocab_size)
182
  return self.get_move_from_response(completion)
 
6
  from contextlib import nullcontext
7
  import numpy as np
8
  from functools import partial
9
+ import chess
10
 
11
  BASE_DIR = "mamba/"
12
 
 
177
  except:
178
  return None
179
 
180
+ def get_move(self, board: chess.Board, game_state: str, temperature: float) -> str:
181
  self.move_num = game_state.count('.')
182
  completion = self.get_mamba_response(game_state, temperature, 8, self.vocab_size)
183
  return self.get_move_from_response(completion)