Open pc0303 opened 2 years ago
I am having the same error.
i am having the same error
Hello, is there any update on this one?
Solved it.
I made the following changes: 1, Change the deploy_condition_step to the following deploy_condition_step = ConditionStep( name="HFSECFinBertDeployConditionCheck", conditions=[ sentiment_condition_eq, summary_condition_eq, ], # the equal to conditions defined above if_steps=[ summarize_step_2, sentiment_step_2 ], # if the condition evaluates to true then run the summarization step else_steps=[], # there are no else steps so we will keep it empty )
2, change the condition_step to the following: condition_step = ConditionStep( name="HFSECFinBertConditionCheck", conditions=[condition_eq], # the parameter is Y if_steps=[ create_sentiment_model_step, register_sentiment_model_step, sentiment_deploy_step, create_summary_model_step, register_summary_model_step, summary_deploy_step, ], # if the condition evaluates to true then create model, register, and deploy else_steps=[summarize_step_1,sentiment_step_1], depends_on=["HFSECFinBertCreateDataset"], )
3, change the final pipeline to the following: pipeline_name = "FinbertSECDeploymentPipeline" pipeline = Pipeline( name=pipeline_name, parameters=[ processing_instance_type, processing_instance_count, model_register_deploy, inference_ticker_cik, inference_input_data, ], steps=[ create_dataset_step, condition_step, deploy_condition_step, ], )
After that it should run like a flow!
Link to the notebook https://github.com/aws/amazon-sagemaker-examples/blob/main/end_to_end/nlp_mlops_company_sentiment/nlp_company_earnings_analysis_pipeline.ipynb
Describe the bug Unable to create and start the pipeline, when runing
pipeline.upsert(role_arn=role)
, reportedKeyError: 'HFSECFinBertDeployModel'
, then I tried the following code to Examine the JSON pipeline definition to ensure that it's well-formed:the result appears same key error.
pls help.