change name casings
Browse files- myolmoe/__init__.py +1 -1
- scripts/eval.py +3 -3
myolmoe/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
from .modeling_olmoe import
|
|
|
|
| 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
|
| 231 |
-
logger.info("Successfully imported
|
| 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 =
|
| 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,
|