Skip to content

Update MLX model patterns and reduce max_tokens in eval script #205

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

Merged
merged 2 commits into from
Jun 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion optillm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os

# Version information
__version__ = "0.1.17"
__version__ = "0.1.18"

# Get the path to the root optillm.py
spec = util.spec_from_file_location(
Expand Down
3 changes: 2 additions & 1 deletion optillm/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def should_use_mlx(model_id: str) -> bool:
# Models that should use MLX
mlx_patterns = [
"mlx-community/",
"mlx-"
"mlx-",
"-mlx-"
]

# Known problematic models that should prefer MLX on Apple Silicon
Expand Down
2 changes: 1 addition & 1 deletion scripts/eval_math500_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def get_llm_response(problem: str, model: str) -> str:
messages=[
{"role": "user", "content": SYSTEM_PROMPT + "\n" + problem}
],
max_tokens=32768, # for thinking models, we need to use a lot more tokens
max_tokens=8192, # for thinking models, we need to use a lot more tokens
# extra_body = {
# "decoding" : "thinkdeeper",
# }
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="optillm",
version="0.1.17",
version="0.1.18",
packages=find_packages(include=['optillm', 'optillm.*']), # This ensures all subpackages are included
py_modules=['optillm'],
package_data={
Expand Down