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

Added an MLX runner for evals #83

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Added an MLX runner for evals #83

merged 2 commits into from
Feb 13, 2024

Conversation

rishsriv
Copy link
Member

This was tested on the amazing port of sqlcoder-7b-2 by @abhishek-ch on mlx-community here

mlx-lm does not support beam search yet – will update this to include beam search once it does (might make a pull request to mlx-lm to support beam search soon)

Additionally, this has verbose=True set up. We can choose to set that to False. Currently takes ~3-4 seconds per query on an M2 Max if your system is not on power saving mode.

Copy link
Collaborator

@wongjingping wongjingping left a comment

Choose a reason for hiding this comment

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

Thanks for porting this!

@rishsriv rishsriv merged commit 89a79f7 into main Feb 13, 2024
2 checks passed
@rishsriv rishsriv deleted the rishabh/mlx branch February 13, 2024 05:51
@rishsriv
Copy link
Member Author

(for anyone that's comes here later) This is how you can run an eval using MLX

python -W ignore main.py \
  -db postgres \
  -o "results/results.csv" \
  -g mlx \
  -f "prompts/prompt.md" \
  -m mlx-community/defog-sqlcoder-7b-2

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