- Notifications
You must be signed in to change notification settings - Fork 8
Add --platform CLI option for model upload #857
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
Conversation
Co-authored-by: wemoveon2 <86081107+wemoveon2@users.noreply.github.com>
Co-authored-by: wemoveon2 <86081107+wemoveon2@users.noreply.github.com>
…ents Co-authored-by: wemoveon2 <86081107+wemoveon2@users.noreply.github.com>
| @copilot remove test |
Co-authored-by: wemoveon2 <86081107+wemoveon2@users.noreply.github.com>
| @copilot =========================== short test summary info ============================
|
This test failure in |
| @copilot skip these tests FAILED tests/test_app.py::TestApp::test_list_workflows - assert 8 == 10
|
Co-authored-by: wemoveon2 <86081107+wemoveon2@users.noreply.github.com>
| @copilot also skip test_setup_correct test_from_existing_workflow test_predict_client_manage_state test_upload_docs_filepath test_upload_docs_from_url |
Co-authored-by: wemoveon2 <86081107+wemoveon2@users.noreply.github.com>
Skipped |
| @copilot skip |
Co-authored-by: wemoveon2 <86081107+wemoveon2@users.noreply.github.com>
Minimum allowed line rate is |
Why
Platform specification was already supported in
config.yamlviabuild_info.platform, but users had to edit the config file for each platform change. CLI override enables dynamic platform specification without file modifications.How
--platformoption toclarifai model uploadcommand accepting single or comma-separated platform strings (e.g., "linux/amd64,linux/arm64")ModelBuilder.__init__()andupload_model()with optionalplatform: Optional[str]parameterget_model_version_proto()to prioritize CLI platform over config.yaml platform with explicit logging_cli_platformattribute, checked before falling back to configPriority order: CLI flag → config.yaml → no platform
Tests
test_list_workflowsintests/test_app.pytest_setup_correct,test_from_existing_workflow,test_predict_client_manage_state,test_upload_docs_filepath,test_upload_docs_from_urlintests/test_rag.pytest_text_embed_predict_with_raw_text,test_model_load_infointests/test_model_predict.pyNotes
NonedefaultsOptional[str]annotations throughoutUsage:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.