MCPcopy Create free account

hub / github.com/Jellyfish042/RWKV_Othello / functions

Functions154 in github.com/Jellyfish042/RWKV_Othello

↓ 71 callersFunctionmatmul
(a, b, mx: Optional[torch.Tensor]=None, rx: Optional[torch.Tensor]=None, my: Optional[torch.Tensor]=None, ry:
rwkv_extended.py:127
↓ 8 callersFunctionformat_score
Format an integer score with proper sign and padding. Examples: 5 -> "+05" -3 -> "-03" 21 -> "+21" -15 -> "-1
formatter.py:21
↓ 7 callersMethod_get_flips
(self, row, col)
othello.py:30
↓ 7 callersFunctionformat_board
Format the board to a human-readable string. 0 = empty (·) 1 = black (●) 2 = white (○)
formatter.py:4
↓ 6 callersMethodplay_from_start
(self, moves: str)
othello.py:105
↓ 6 callersMethodupdate_value
(self, variable, delta)
ui.py:556
↓ 5 callersMethodcleanup
(self)
engine.py:44
↓ 5 callersMethodget_legal_moves
(self)
othello.py:59
↓ 5 callersMethodplay
(self, moves: str)
othello.py:67
↓ 5 callersMethodsend_command
(self, command, allow_restart=True)
engine.py:51
↓ 4 callersFunctionformat_color
(color)
formatter.py:82
↓ 4 callersMethodis_game_over
(self)
othello.py:118
↓ 4 callersMethodmake_ai_move
(self)
ui.py:836
↓ 3 callersMethodcreate_spinner
(self, parent, variable, decrease_cmd, increase_cmd)
ui.py:532
↓ 3 callersFunctioncuda_mm8_one
(N: int, M: int, x, w, mx, rx, my, ry)
rwkv_extended.py:76
↓ 3 callersFunctioncuda_mm8_seq
(B: int, N: int, M: int, x, w, mx, rx, my, ry)
rwkv_extended.py:64
↓ 3 callersMethoddraw_piece
(self, canvas, color, is_indicator=False)
ui.py:700
↓ 3 callersFunctionformat_args
(max_width, max_depth)
formatter.py:78
↓ 3 callersFunctionformat_possible_moves
(moves_list, sep=" ")
formatter.py:43
↓ 3 callersFunctionformat_stack
(stack)
formatter.py:86
↓ 3 callersMethodget_best_move
(self, moves: str)
engine.py:110
↓ 3 callersMethodget_moves
(self)
othello.py:110
↓ 3 callersMethodreset
(self)
othello.py:14
↓ 3 callersMethodupdate_board
(self)
ui.py:749
↓ 2 callersMethod_calculate_value_range
(self, all_values)
ui.py:231
↓ 2 callersMethod_start_engine
(self)
engine.py:15
↓ 2 callersMethoddraw_evaluation_graph
(self, event=None)
ui.py:220
↓ 2 callersFunctionformat_possible_moves_no_sort
(moves_list, sep=" ")
formatter.py:64
↓ 2 callersMethodforward_one
(self, idx:int, state:List[torch.Tensor])
rwkv_extended.py:287
↓ 2 callersMethodget_avg_tokens
(self)
rwkv_engine.py:45
↓ 2 callersMethodget_moves
(self, moves: str)
engine.py:97
↓ 2 callersFunctionmm8_one
(x, w, mx, rx, my, ry)
rwkv_extended.py:108
↓ 2 callersFunctionmm8_seq
(x, w, mx, rx, my, ry)
rwkv_extended.py:101
↓ 2 callersMethodon_player_change
(self)
ui.py:827
↓ 2 callersMethodplay_one
(self, player1_color, opening=None)
arena.py:27
↓ 2 callersMethodshow_game_result
(self, info)
ui.py:788
↓ 2 callersFunctionsort_positions
(positions, ascending=True)
formatter.py:127
↓ 2 callersFunctiontorch_mm8_one
(x, w, mx, rx, my, ry)
rwkv_extended.py:96
↓ 2 callersFunctiontorch_mm8_seq
(x, w, mx, rx, my, ry)
rwkv_extended.py:92
↓ 2 callersMethodv5_2_after
(self, t_decay, out, s, x, xxx, g, lx_w, lx_b, ow, omx, orx, omy, ory)
rwkv_extended.py:1234
↓ 1 callersMethodRUN_RWKV_5
(self, B, T, C, H, state, r, k, v, w, u)
rwkv_extended.py:830
↓ 1 callersMethodRUN_RWKV_6
(self, B, T, C, H, state, r, k, v, w, u)
rwkv_extended.py:833
↓ 1 callersFunctionRWKV7_OP
(state, r, w, k, v, a, b)
rwkv_extended.py:218
↓ 1 callersFunctionRWKV_x070_CMix_one
(x, x_prev, x_k, K_, V_)
rwkv_extended.py:452
↓ 1 callersFunctionRWKV_x070_CMix_seq
(x, x_prev, x_k, K_, V_)
rwkv_extended.py:459
↓ 1 callersFunctionRWKV_x070_TMix_one
(layer_id: int, H:int, N:int, x, x_prev, v_first, state, x_r, x_w, x_k, x_v, x_a, x_g, w0, w1, w2, a0, a1, a2,
rwkv_extended.py:354
↓ 1 callersFunctionRWKV_x070_TMix_seq
(layer_id: int, H:int, N:int, x, x_prev, v_first, state, x_r, x_w, x_k, x_v, x_a, x_g, w0, w1, w2, a0, a1, a2,
rwkv_extended.py:388
↓ 1 callersMethod__init__
(self, model, strategy, verbose = True, convert_and_save_and_exit = None)
rwkv_extended.py:468
↓ 1 callersMethod_convert_position
(self, pos)
othello.py:21
↓ 1 callersMethod_stream_save_result
(self, result)
generate_data.py:26
↓ 1 callersMethodcallback
(self, x)
rwkv_engine.py:36
↓ 1 callersMethodclear
(self)
logger.py:20
↓ 1 callersMethodcreate_board
(self, parent)
ui.py:567
↓ 1 callersMethodcreate_board_area
(self, parent)
ui.py:617
↓ 1 callersMethodcreate_evaluation_graph
(self, parent)
ui.py:149
↓ 1 callersMethodcreate_info_area
(self, parent)
ui.py:89
↓ 1 callersMethodcreate_model_settings
(self, parent)
ui.py:454
↓ 1 callersMethodcreate_player_settings
(self, parent)
ui.py:160
↓ 1 callersMethodcreate_reasoning_area
(self, parent)
ui.py:401
↓ 1 callersMethodcreate_status_display
(self, parent)
ui.py:641
↓ 1 callersFunctioncuda_wkv
(T: int, C: int, w, u, k, v, aa, bb, pp)
rwkv_extended.py:52
↓ 1 callersMethoddraw_graph_grid
(self, width, height)
ui.py:255
↓ 1 callersMethoddraw_graph_lines
(self, width, height)
ui.py:337
↓ 1 callersMethoddraw_valid_move
(self, canvas)
ui.py:772
↓ 1 callersMethodevaluate
(self)
arena.py:76
↓ 1 callersFunctionformat_input_moves
(input_str)
formatter.py:147
↓ 1 callersMethodforward_seq
(self, idx:List[int], state:List[torch.Tensor], full_output:bool=False)
rwkv_extended.py:320
↓ 1 callersMethodgen_one_sample
(self, input_moves, max_width, max_depth)
generate_data.py:59
↓ 1 callersMethodgenerate_samples_parallel
(self, inputs: List[tuple[str, int, int]], timeout: int = 120, batch_size: int = 1000)
generate_data.py:40
↓ 1 callersMethodget_best_move
(self, input_moves, max_token_count=1000000)
rwkv_engine.py:51
↓ 1 callersMethodget_best_move
Get the best move given the previous moves. Use Alpha-Beta pruning algorithm to search the game tree.
alphabeta_engine.py:12
↓ 1 callersMethodget_board_format
(self)
othello.py:113
↓ 1 callersMethodget_move_from_player
(self, player, prev_moves)
arena.py:19
↓ 1 callersFunctionget_position_value
(pos)
formatter.py:130
↓ 1 callersMethodhighlight_cell
(self, canvas)
ui.py:798
↓ 1 callersMethodmake_move
(self, row, col)
ui.py:807
↓ 1 callersFunctionmatmul_float
(a, b, output_dtype: Optional[torch.dtype]=None)
rwkv_extended.py:144
↓ 1 callersFunctionmm8
(x: torch.Tensor, w: torch.Tensor, mx: torch.Tensor, rx: torch.Tensor, my: torch.Tensor, ry: torch.Tensor)
rwkv_extended.py:122
↓ 1 callersMethodnew_game
(self)
ui.py:917
↓ 1 callersFunctionparallel_generate
( engine_path, engine_level, engine_threads, game_path, sample_per_game, output_file,
generate_data.py:117
↓ 1 callersMethodplay
(self, moves: str)
engine.py:82
↓ 1 callersFunctionposition_to_value
(pos)
formatter.py:50
↓ 1 callersFunctionpower_pairs
(limit, max_x=10, max_y=10)
generate_data.py:152
↓ 1 callersFunctionread_all_txt_files
(folder_path)
generate_data.py:65
↓ 1 callersMethodreset
(self)
engine.py:78
↓ 1 callersMethodrestart
Restart the engine by cleaning up existing process and starting a new one.
engine.py:38
↓ 1 callersFunctionsample_game_states
(games, sample_per_game, length_weight=0, min_prob=0.01)
generate_data.py:88
↓ 1 callersMethodset_state_by_moves
(self, moves)
engine.py:89
↓ 1 callersMethodsetup_ui
(self)
ui.py:71
↓ 1 callersMethodthink
(self, board_state, current_player, move_count, callback, search_config)
rwkv_for_ui.py:36
↓ 1 callersMethodunhighlight_cell
(self, canvas)
ui.py:804
↓ 1 callersMethodupdate_current_indicator
(self)
ui.py:784
↓ 1 callersMethodv5_2_before
(self, x, sx, s, ln_w, ln_b, lx_w, lx_b, k_mix, v_mix, r_mix, g_mix, t_decay, t_first, kw, vw, rw, gw, ow, kmx
rwkv_extended.py:1218
↓ 1 callersMethodv6_0_before
(self, x, sx, s, ln_w, ln_b, lx_w, lx_b, x_maa, w_maa, k_maa, v_maa, r_maa, g_maa, tm_w1, tm_w2, td_w1, td_w2,
rwkv_extended.py:1259
FunctionPYBIND11_MODULE
cuda/wrapper.cpp:125
FunctionTORCH_LIBRARY
cuda/wrapper.cpp:134
FunctionTORCH_LIBRARY
cuda/rwkv7_op.cpp:22
Method__del__
(self)
generate_data.py:50
Method__init__
(self, path, print_output=False, max_width=1, max_depth=1, rwkv_version=None)
rwkv_engine.py:14
Method__init__
(self, model, strategy)
rwkv_extended.py:224
next →1–100 of 154, ranked by callers