Nol00 commited on
Commit
79f754c
·
verified ·
1 Parent(s): 3561fa3

Update crs_arena/battle_manager.py

Browse files
Files changed (1) hide show
  1. crs_arena/battle_manager.py +12 -8
crs_arena/battle_manager.py CHANGED
@@ -36,13 +36,13 @@ CONVERSATION_COUNTS.update(
36
  {
37
  "kbrd_redial": 7,
38
  "kbrd_opendialkg": 7,
39
- "unicrs_redial": 4,
40
- "unicrs_opendialkg": 3,
41
- "barcor_redial": 4,
42
- "barcor_opendialkg": 10,
43
- "crbcrs_redial": 10,
44
- "chatgpt_opendialkg": 11,
45
- "chatgpt_redial": 16,
46
  }
47
  )
48
 
@@ -105,6 +105,10 @@ def cache_fighters(n: Optional[int] = None) -> None:
105
  """
106
  logging.info(f"Caching {n} CRS fighters.")
107
  for i, (model_name, config_path) in enumerate(CRS_MODELS.items()):
108
- get_crs_model(model_name, config_path)
 
 
 
 
109
  if n is not None and i == n:
110
  break
 
36
  {
37
  "kbrd_redial": 7,
38
  "kbrd_opendialkg": 7,
39
+ "unicrs_redial": 10,
40
+ "unicrs_opendialkg": 10,
41
+ "barcor_redial": 20,
42
+ "barcor_opendialkg": 20,
43
+ "crbcrs_redial": 20,
44
+ "chatgpt_opendialkg": 20,
45
+ "chatgpt_redial": 20,
46
  }
47
  )
48
 
 
105
  """
106
  logging.info(f"Caching {n} CRS fighters.")
107
  for i, (model_name, config_path) in enumerate(CRS_MODELS.items()):
108
+ try:
109
+ get_crs_model(model_name, config_path)
110
+ except Exception as e:
111
+ logging.error(f"Caching CRS fighters: {e}")
112
+ get_crs_model.clear(model_name, config_path)
113
  if n is not None and i == n:
114
  break