agentsclimarketplace

Fast mlx

Skill unsanitary-bek/mlx-skills/mlx_skills/skills/fast-mlx

🚀 Enhance your machine learning workflow with essential MLX skills from this ready-to-use repository.

Install
npx -y skills add unsanitary-bek/mlx-skills --skill fast-mlx

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Optimize MLX code for performance and memory. Use when asked to implement or speed up MLX models or algorithms, reduce latency/throughput bottlenecks, tune lazy evaluation, type promotion, fast ops, compilation, memory use, or profiling.

SKILL.md

1.2 KB, as published. Nobody here has run it

Fast MLX

Workflow

  • Looks for opportunities to compile functions of mostly elementwise operations.
  • For models with fixed shape inputs or where the shapes don't change much, compile the entire graph
  • Replace slow implementations with MLX fast ops
  • Identify evaluation boundaries and unintended sync points (mx.eval, item(), NumPy conversions).
  • Check dtype promotion and scalar usage; keep precision consistent with intent.
  • Review compilation strategy; avoid unnecessary recompiles and closure captures.
  • Reduce peak memory via lazy loading order and releasing temporaries before mx.eval.
  • Suggest profiling steps if the bottleneck is unclear.

References

  • Read references/fast-mlx-guide.md for detailed tips and examples. Use it as the source of truth.

Output expectations

  • Provide concrete code changes with brief rationale
  • Call out changes that need user confirmation (e.g., enabling async eval or shapeless compile).

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.