mlx-swift-examples icon indicating copy to clipboard operation
mlx-swift-examples copied to clipboard

Codable macro

Open davidkoski opened this issue 7 months ago • 5 comments

use ReerCodable macro to allow for default values

  • make all configuration Sendable and public var as well

davidkoski avatar May 14 '25 22:05 davidkoski

@DePasqualeOrg since you implement a lot of models what do you think about this change? It makes it much easier to add defaults in configuration at the cost of using a macro.

Note: I think it requires a bit of work to be back in building shape after a recent merge up from main but you can see what the changes look like.

davidkoski avatar Jun 27 '25 17:06 davidkoski

That looks nice! This has always been difficult for me to get right.

DePasqualeOrg avatar Jun 27 '25 17:06 DePasqualeOrg

@awni I think this is ready for review when you have time.

This makes it much easier to write the code to read configs and in particular have default values.

davidkoski avatar Sep 26 '25 17:09 davidkoski

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复,或登录https://www.koudaiui.com,提交您得问题留言,或加微信gpbox7070

codingkey avatar Sep 26 '25 17:09 codingkey

Saw this after the Qwen 3 VL port; this will be pretty cool to have!

rudrankriyam avatar Oct 16 '25 23:10 rudrankriyam