ml-explore / ml-explore/mlx-examples

Python environment not easy to set up with requirements for Llama examples

Open
#46 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Hello,

First: thanks for creating this repo and initiative to show concrete examples of MLX at work!

Running the Llama examples, and following the doc to install Python packages, I ran into issues of missing packages (especially if using HuggingFace and skipping the step of model weight conversions).

Would you be interested if I shared a Poetry Python env that I created?

Pros:

  • have a Python virtual env setup in a one-liner with poetry install
  • accessible to everyone, without the cost of having to install and fix Python environment issues -> it can help democratize MLX by lower the installation cost
  • setting up Python env with Pyenv, or Poetry, is now considered a better practice than pip + requirements.txt

Cons

  • poetry would be an added dependency to the project, but it can be as simple as brew install poetry

I'd be happy to collaborate by starting with a dedicated env for the Llama example if you believe it's a good idea.

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the documentation for running the Llama examples and the requirements used by those examples, especially the HuggingFace and model-conversion paths. Evaluate the proposed Poetry environment and its added dependency; done means the documented setup installs the packages needed for the Llama examples in one command.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.