Charlie81 commited on
Commit
dc61de6
·
1 Parent(s): 518168c

change name casings

Browse files
Files changed (2) hide show
  1. myolmoe/__init__.py +1 -1
  2. scripts/eval.py +3 -3
myolmoe/__init__.py CHANGED
@@ -1 +1 @@
1
- from .modeling_olmoe import OLMoEForCausalLM
 
1
+ from .modeling_olmoe import MyOlmoeForCausalLM
scripts/eval.py CHANGED
@@ -227,8 +227,8 @@ def load_custom_model(args) -> HFLM:
227
 
228
  try:
229
  # Import custom model class
230
- from modeling_myolmoe import MyOLMoEForCausalLM
231
- logger.info("Successfully imported MyOLMoEForCausalLM")
232
  except ImportError as e:
233
  logger.error(f"Failed to import custom model: {e}")
234
  logger.error("Make sure the custom model code is available in the specified path")
@@ -261,7 +261,7 @@ def load_custom_model(args) -> HFLM:
261
  }[args.dtype]
262
 
263
  # Load the custom model
264
- hf_model = MyOLMoEForCausalLM.from_pretrained(
265
  args.model_path,
266
  config=config,
267
  torch_dtype=torch_dtype,
 
227
 
228
  try:
229
  # Import custom model class
230
+ from modeling_myolmoe import MyOlmoeForCausalLM
231
+ logger.info("Successfully imported MyOlmoeForCausalLM")
232
  except ImportError as e:
233
  logger.error(f"Failed to import custom model: {e}")
234
  logger.error("Make sure the custom model code is available in the specified path")
 
261
  }[args.dtype]
262
 
263
  # Load the custom model
264
+ hf_model = MyOlmoeForCausalLM.from_pretrained(
265
  args.model_path,
266
  config=config,
267
  torch_dtype=torch_dtype,