Skip to content

CLI analyze emits MLX deprecation warning in normal output #46

@simonerom

Description

@simonerom

Summary

Running trio analyze on Apple Silicon emits a deprecation warning from MLX in normal CLI output.

Reproduction

trio analyze ~/Downloads/photo.jpg -q "What's here?"

Actual behavior

The command succeeds, but the output includes:

mx.metal.device_info is deprecated and will be removed in a future version. Use mx.device_info instead.

Expected behavior

Normal user-facing CLI output should not emit deprecation warnings. The code should use the supported MLX API.

Impact

The command still works, but the warning makes the CLI output look unstable and distracts from the actual result.

Suggested fix

Replace usage of mx.metal.device_info with mx.device_info where applicable.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions