diff --git a/.dev_scripts/dockerci.sh b/.dev_scripts/dockerci.sh index 4f66073c..2774c580 100644 --- a/.dev_scripts/dockerci.sh +++ b/.dev_scripts/dockerci.sh @@ -60,13 +60,13 @@ do -v $MODELSCOPE_HOME_CACHE/$idx:/root \ -v /home/admin/pre-commit:/home/admin/pre-commit \ -e CI_TEST=True \ - -e TEST_LEVEL=$TEST_LEVEL \ + -e TEST_LEVEL=1 \ -e MODELSCOPE_CACHE=$MODELSCOPE_CACHE_DIR_IN_CONTAINER \ -e MODELSCOPE_DOMAIN=$MODELSCOPE_DOMAIN \ -e HUB_DATASET_ENDPOINT=$HUB_DATASET_ENDPOINT \ -e TEST_ACCESS_TOKEN_CITEST=$TEST_ACCESS_TOKEN_CITEST \ -e TEST_ACCESS_TOKEN_SDKDEV=$TEST_ACCESS_TOKEN_SDKDEV \ - -e TEST_LEVEL=$TEST_LEVEL \ + -e TEST_LEVEL=1 \ -e MODELSCOPE_ENVIRONMENT='ci' \ -e TEST_UPLOAD_MS_TOKEN=$TEST_UPLOAD_MS_TOKEN \ -e MODEL_TAG_URL=$MODEL_TAG_URL \ diff --git a/modelscope/pipelines/builder.py b/modelscope/pipelines/builder.py index 5fb66178..0f32b845 100644 --- a/modelscope/pipelines/builder.py +++ b/modelscope/pipelines/builder.py @@ -112,6 +112,11 @@ def pipeline(task: str = None, if task is None and pipeline_name is None: raise ValueError('task or pipeline_name is required') + if model: + pass + else: + pass + pipeline_props = None if pipeline_name is None: # get default pipeline for this task diff --git a/tests/run_config.yaml b/tests/run_config.yaml index d9768a57..9b926228 100644 --- a/tests/run_config.yaml +++ b/tests/run_config.yaml @@ -65,7 +65,8 @@ isolated: # test cases that may require excessive anmount of GPU memory or run - test_controllable_image_generation.py - test_image_colorization_trainer.py - test_text_to_360panorama_image.py - + - test_llm_pipeline.py + - test_hf_util.py envs: default: # default env, case not in other env will in default, pytorch.