mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-06 19:40:28 +00:00
[hotfix] fix testcase in test_fx/test_tracer (#5779)
* [fix] branch for fix testcase; * [fix] fix test_analyzer & test_auto_parallel; * [fix] remove local change about moe; * [fix] rm local change moe; * [fix] fix test_deepfm_model & test_dlrf_model; * [fix] fix test_hf_albert & test_hf_gpt;
This commit is contained in:
@@ -52,7 +52,7 @@ def trace_and_compare(model_cls, data, output_transform_fn, meta_args=None):
|
||||
|
||||
@clear_cache_before_run()
|
||||
def test_torchrec_deepfm_models():
|
||||
deepfm_models = model_zoo.get_sub_registry("deepfm")
|
||||
deepfm_models = model_zoo.get_sub_registry(keyword="deepfm", allow_empty=True)
|
||||
torch.backends.cudnn.deterministic = True
|
||||
|
||||
for name, (model_fn, data_gen_fn, output_transform_fn, _, attribute) in deepfm_models.items():
|
||||
|
@@ -53,7 +53,7 @@ def trace_and_compare(model_cls, data, output_transform_fn, meta_args=None):
|
||||
@clear_cache_before_run()
|
||||
def test_torchrec_dlrm_models():
|
||||
torch.backends.cudnn.deterministic = True
|
||||
dlrm_models = model_zoo.get_sub_registry("dlrm")
|
||||
dlrm_models = model_zoo.get_sub_registry(keyword="deepfm", allow_empty=True)
|
||||
|
||||
for name, (model_fn, data_gen_fn, output_transform_fn, _, attribute) in dlrm_models.items():
|
||||
data = data_gen_fn()
|
||||
|
Reference in New Issue
Block a user