mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 04:01:10 +01:00
test level 1 case, test pipelines
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user