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

[BUG]: Production DFP inference error when using local file path for MLflow tracking_uri #1574

Closed
2 tasks done
efajardo-nv opened this issue Mar 22, 2024 · 0 comments · Fixed by #1578
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@efajardo-nv
Copy link
Contributor

Version

23.11

Which installation method(s) does this occur on?

Conda

Describe the bug.

  • My data resides in local Parquet files.
  • I'm using a JSON control message as input and have mlflow_tracking_uri set to a local path.
  • After adjusting input parameters and configuring the Schema Builder, I receive a TypeError: object of type 'NoneType' has no len() error in model_cache.py during pipeline building phase while fetching existing models.

Minimum reproducible example

python dfp_duo_pipeline.py --log_level DEBUG --train_users none --start_time "2022-08-30" --input_file="../../../data/dfp/duo-inference-data/*.json" --tracking_uri=file:/workspace/mlflow

Relevant log output

Click here to see error details

Running training pipeline with the following options:
Train generic_user: False
Skipping users: []
Start Time: 2022-08-30 00:00:00+00:00
Duration: 60 days, 0:00:00
Cache Dir: ./.cache/dfp
Tracking URI: file:/workspace/mlflow
Updating list of available models...
Exception occurred when querying the list of available models
Traceback (most recent call last):
File "/workspace/examples/digital_fingerprinting/production/morpheus/dfp/utils/model_cache.py", line 228, in _model_exists
if (len(results.token) == 0):
TypeError: object of type 'NoneType' has no len()
Traceback (most recent call last):
File "/workspace/examples/digital_fingerprinting/production/morpheus/dfp_duo_pipeline.py", line 380, in
run_pipeline(obj={}, auto_envvar_prefix='DFP', show_default=True, prog_name="dfp")
File "/opt/conda/envs/morpheus/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/opt/conda/envs/morpheus/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/opt/conda/envs/morpheus/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/conda/envs/morpheus/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/workspace/examples/digital_fingerprinting/production/morpheus/dfp_duo_pipeline.py", line 358, in run_pipeline
pipeline.add_stage(DFPInferenceStage(config, model_name_formatter=model_name_formatter))
File "/workspace/morpheus/pipeline/stage_base.py", line 45, in inner
func(self, *args, **kwargs)
File "/workspace/examples/digital_fingerprinting/production/morpheus/dfp/stages/dfp_inference_stage.py", line 60, in init
self._model_manager = ModelManager(model_name_formatter=model_name_formatter)
File "/workspace/examples/digital_fingerprinting/production/morpheus/dfp/utils/model_cache.py", line 198, in init
self._model_exists("")
File "/workspace/examples/digital_fingerprinting/production/morpheus/dfp/utils/model_cache.py", line 228, in _model_exists
if (len(results.token) == 0):
TypeError: object of type 'NoneType' has no len()

Full env printout

Click here to see environment details

[Paste the results of print_env.sh here, it will be hidden by default]

Other/Misc.

No response

Code of Conduct

  • I agree to follow Morpheus' Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report
@efajardo-nv efajardo-nv added the bug Something isn't working label Mar 22, 2024
@jarmak-nv jarmak-nv moved this from Todo to Review - Ready for Review in Morpheus Boards Mar 22, 2024
rapids-bot bot pushed a commit that referenced this issue Mar 26, 2024
…RI (#1578)

- Small update to handle MLflow `search_registered_models` results using file URI.

Closes #1574

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md).
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Eli Fajardo (https://github.com/efajardo-nv)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: #1578
@github-project-automation github-project-automation bot moved this from Review - Ready for Review to Done in Morpheus Boards Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant