-
Notifications
You must be signed in to change notification settings - Fork 37
fix(swiftbuddy): add MLXVLM and ModelArchitectureProbe to xcodeproj generator #62
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -43,6 +43,7 @@ def uid(): | |||||||||||||||||||||||||
| PROD_MLX = uid() | ||||||||||||||||||||||||||
| PROD_MLXLLM = uid() | ||||||||||||||||||||||||||
| PROD_MLXLMC = uid() | ||||||||||||||||||||||||||
| PROD_MLXVLM = uid() | ||||||||||||||||||||||||||
| PROD_HUB = uid() | ||||||||||||||||||||||||||
| PROD_TOKENIZERS = uid() | ||||||||||||||||||||||||||
| PROD_HUMMINGBIRD = uid() | ||||||||||||||||||||||||||
|
|
@@ -52,6 +53,7 @@ def uid(): | |||||||||||||||||||||||||
| BF_MLX_FWK = uid() | ||||||||||||||||||||||||||
| BF_MLXLLM_FWK = uid() | ||||||||||||||||||||||||||
| BF_MLXLMC_FWK = uid() | ||||||||||||||||||||||||||
| BF_MLXVLM_FWK = uid() | ||||||||||||||||||||||||||
| BF_HUB_FWK = uid() | ||||||||||||||||||||||||||
| BF_TOKENIZERS_FWK = uid() | ||||||||||||||||||||||||||
| BF_HUMMINGBIRD_FWK = uid() | ||||||||||||||||||||||||||
|
|
@@ -74,6 +76,7 @@ def uid(): | |||||||||||||||||||||||||
| ("../Sources/MLXInferenceCore/ModelDownloader.swift", uid(), uid()), | ||||||||||||||||||||||||||
| ("../Sources/MLXInferenceCore/ModelDownloadManager.swift", uid(), uid()), | ||||||||||||||||||||||||||
| ("../Sources/MLXInferenceCore/HFModelSearch.swift", uid(), uid()), | ||||||||||||||||||||||||||
| ("../Sources/MLXInferenceCore/ModelArchitectureProbe.swift", uid(), uid()), | ||||||||||||||||||||||||||
| ("../Sources/MLXInferenceCore/InferenceEngine.swift", uid(), uid()), | ||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
|
@@ -89,6 +92,7 @@ def pbxproj(): | |||||||||||||||||||||||||
| build_files += f"\t\t{BF_MLX_FWK} /* MLX in Frameworks */ = {{isa = PBXBuildFile; productRef = {PROD_MLX} /* MLX */; }};\n" | ||||||||||||||||||||||||||
| build_files += f"\t\t{BF_MLXLLM_FWK} /* MLXLLM in Frameworks */ = {{isa = PBXBuildFile; productRef = {PROD_MLXLLM} /* MLXLLM */; }};\n" | ||||||||||||||||||||||||||
| build_files += f"\t\t{BF_MLXLMC_FWK} /* MLXLMCommon in Frameworks */ = {{isa = PBXBuildFile; productRef = {PROD_MLXLMC} /* MLXLMCommon */; }};\n" | ||||||||||||||||||||||||||
| build_files += f"\t\t{BF_MLXVLM_FWK} /* MLXVLM in Frameworks */ = {{isa = PBXBuildFile; productRef = {PROD_MLXVLM} /* MLXVLM */; }};\n" | ||||||||||||||||||||||||||
| build_files += f"\t\t{BF_HUB_FWK} /* Hub in Frameworks */ = {{isa = PBXBuildFile; productRef = {PROD_HUB} /* Hub */; }};\n" | ||||||||||||||||||||||||||
| build_files += f"\t\t{BF_TOKENIZERS_FWK} /* Tokenizers in Frameworks */ = {{isa = PBXBuildFile; productRef = {PROD_TOKENIZERS} /* Tokenizers */; }};\n" | ||||||||||||||||||||||||||
| build_files += f"\t\t{BF_HUMMINGBIRD_FWK} /* Hummingbird in Frameworks */ = {{isa = PBXBuildFile; productRef = {PROD_HUMMINGBIRD} /* Hummingbird */; }};\n" | ||||||||||||||||||||||||||
|
|
@@ -153,6 +157,7 @@ def pbxproj(): | |||||||||||||||||||||||||
| \t\t\t\t{BF_MLX_FWK} /* MLX in Frameworks */, | ||||||||||||||||||||||||||
| \t\t\t\t{BF_MLXLLM_FWK} /* MLXLLM in Frameworks */, | ||||||||||||||||||||||||||
| \t\t\t\t{BF_MLXLMC_FWK} /* MLXLMCommon in Frameworks */, | ||||||||||||||||||||||||||
| {BF_MLXVLM_FWK} /* MLXVLM in Frameworks */, | ||||||||||||||||||||||||||
| \t\t\t\t{BF_HUB_FWK} /* Hub in Frameworks */, | ||||||||||||||||||||||||||
| \t\t\t\t{BF_TOKENIZERS_FWK} /* Tokenizers in Frameworks */, | ||||||||||||||||||||||||||
| \t\t\t\t{BF_HUMMINGBIRD_FWK} /* Hummingbird in Frameworks */, | ||||||||||||||||||||||||||
|
|
@@ -233,6 +238,7 @@ def pbxproj(): | |||||||||||||||||||||||||
| \t\t\t\t{PROD_MLX} /* MLX */, | ||||||||||||||||||||||||||
| \t\t\t\t{PROD_MLXLLM} /* MLXLLM */, | ||||||||||||||||||||||||||
| \t\t\t\t{PROD_MLXLMC} /* MLXLMCommon */, | ||||||||||||||||||||||||||
| {PROD_MLXVLM} /* MLXVLM */, | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| {PROD_MLXVLM} /* MLXVLM */, | |
| \t\t\t\t{PROD_MLXVLM} /* MLXVLM */, |
Copilot
AI
Apr 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the XCSwiftPackageProductDependency section, the newly added MLXVLM block (and the preceding MLXLMCommon block terminator) use different indentation than the rest of the section. Aligning these lines with the established \t\t... indentation keeps the generator output consistent and easier to maintain.
| }}; | |
| {PROD_MLXVLM} /* MLXVLM */ = {{ | |
| isa = XCSwiftPackageProductDependency; | |
| package = {PKG_MLXLM}; | |
| productName = MLXVLM; | |
| \t\t}}; | |
| \t\t}}; | |
| \t\t{PROD_MLXVLM} /* MLXVLM */ = {{ | |
| \t\t\tisa = XCSwiftPackageProductDependency; | |
| \t\t\tpackage = {PKG_MLXLM}; | |
| \t\t\tproductName = MLXVLM; | |
| \t\t}}; |
Copilot
AI
Apr 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "MLXInferenceCore sources included directly" output is maintained as a hard-coded list, which has already drifted from core_sources and required a manual update for ModelArchitectureProbe. Consider deriving this list from core_sources (e.g., printing Path(path).stem for each entry) so future file additions don’t require updating two places and the output stays accurate.
Uh oh!
There was an error while loading. Please reload this page.