test level 1 case, test pipelines

This commit is contained in:
suluyan
2025-03-21 14:38:13 +08:00
parent 648cbb147e
commit 7b59c4ab7b
3 changed files with 9 additions and 3 deletions

View File

@@ -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 \

View File

@@ -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

View File

@@ -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.