mflux-model-porting

Port ML models into mflux/MLX with deterministic parity tests.

2.3k|169|Updated Aug 10, 2024
One-click install
npx skills add https://github.com/filipstrand/mflux --skill mflux-model-porting
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mflux-model-porting
Source: https://github.com/filipstrand/mflux/tree/main/.cursor/skills/mflux-model-porting
Command: npx skills add https://github.com/filipstrand/mflux --skill mflux-model-porting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Port ML models into mflux/MLX with correctness-first validation, then refactor toward mflux style for maintainable, robust integrations.

Core Features & Use Cases

  • Deterministic porting workflow: establish a skeleton port, wire weight mappings, and implement a minimal runner to verify outputs against a reference.
  • Incremental validation: run deterministic tests and milestones to guide refactors into shared components.
  • Adaptable to model families: suitable for porting diffusion and other ML models into mflux while preserving behavior.

Quick Start

Create a port plan that mirrors a reference model structure in an mflux port directory, implement a minimal port skeleton, and run deterministic tests to validate parity.

Frequently Asked Questions about mflux-model-porting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I port ML models to MLX and ensure output parity?▼

To port ML models to MLX with correctness, establish a skeleton port, wire weight mappings, implement a minimal runner, and run deterministic tests to validate outputs against a reference implementation.

What is a deterministic testing workflow for ML model porting?▼

Deterministic testing for ML model porting involves creating a skeleton package and running milestone tests that validate output parity against reference implementations before refactoring toward shared components.

Can I use this approach to port diffusion models into mflux?▼

Yes, the porting workflow is adaptable to model families including diffusion models, allowing you to port them into mflux while preserving behavior through incremental validation and deterministic tests.

How do I map weights when porting a model to MLX?▼

When porting a model to MLX, you wire weight mappings within a skeleton port directory that mirrors the reference model structure, enabling minimal runners to verify outputs against the reference.

What is the best way to refactor ported ML models for maintainability?▼

The best way to refactor ported ML models for maintainability is to use incremental validation with deterministic tests and commit milestones, guiding refactors into shared components across model families.