Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]add other devices supported model list #2259

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

zhangyubo0722
Copy link
Collaborator

No description provided.

Copy link

paddle-bot bot commented Oct 16, 2024

Thanks for your contribution!

@zhangyubo0722 zhangyubo0722 force-pushed the add_other_devices_model_list branch 4 times, most recently from 4430b50 to ca9d659 Compare October 18, 2024 06:53
@@ -159,6 +163,15 @@ def serve(pipeline, *, device, use_hpip, serial_number, update_license, host, po
run_server(app, host=host, port=port, debug=False)


def clear_cache():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clear_cache 函数移到.utils.cache中,同时clear_cache()可以接受参数控制删除CACHE下的什么内容

@@ -65,6 +68,7 @@ def parse_str(s):

################# install pdx #################
parser.add_argument("--install", action="store_true", default=False, help="")
parser.add_argument("--clear_cache", action="store_true", default=False, help="")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改为可接受参数,参数值可以对应CACHE_DIR下的目录名(或者是相应的),默认是删除全部

# See the License for the specific language governing permissions and
# limitations under the License.

OTHER_DEVICES_MODEL_LIST = {
Copy link
Collaborator

@TingquanGao TingquanGao Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OTHER_DEVICES_MODEL_LIST这个命名不太好,可以改成:XPU_MODEL_WHITE_LIST这样多个list,再定义个device_support_model_dict = {"xpu": XPU_MODEL_WHITE_LIST}

@cuicheng01 cuicheng01 changed the title add other devices supported model list [WIP]add other devices supported model list Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants