Skip to content

Commit

Permalink
fix: build Metal by default for Apple silicone devices (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
giladgd authored Jan 24, 2024
1 parent cab617a commit 187627e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ jobs:
if (process.env.ARTIFACT_NAME === "win" && arch === "arm64") {
buildNodeVersion = windowsOnArmNodeVersion;
} else if (process.env.ARTIFACT_NAME === "mac" && arch === "arm64") {
additionalFlags.push("--metal");
} else if (process.env.ARTIFACT_NAME === "mac" && arch === "x64") {
additionalFlags.push("--no-metal");
}
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
"grammar",
"json-grammar",
"json-schema-grammar",
"functions",
"function-calling",
"embedding",
"temperature",
"topK",
"topP",
Expand Down

0 comments on commit 187627e

Please sign in to comment.