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

Accept mx.array type for prompt argument for stream_generate #1125

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

neilmehta24
Copy link
Contributor

@neilmehta24 neilmehta24 commented Nov 26, 2024

This change allows mlx_lm.utils.stream_generate to accept an mx.array for its prompt argument

Copy link
Member

@awni awni left a comment

Choose a reason for hiding this comment

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

Thanks!!

@awni awni merged commit cefe793 into ml-explore:main Nov 27, 2024
4 checks passed
mokeddembillel pushed a commit to mokeddembillel/mlx-examples that referenced this pull request Dec 16, 2024
…ore#1125)

* Accept mx.array type for prompt argument for stream_generate

* Fix formatting
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