Skip to content

Commit

Permalink
Test on macOS 15
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Dec 7, 2024
1 parent 08034f0 commit 8b3717a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
build:
runs-on: macos-14
runs-on: macos-15

steps:
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ async function talk(rl: readline.Interface,
}
process.stdout.write('\n');

if (false) { // used for debugging leaks
console.log(`MLX RAM ${(mx.metal.getActiveMemory() / 1024 ** 2).toFixed(1)}M,`,
`Cache ${(mx.metal.getCacheMemory() / 1024 ** 2).toFixed(1)}M,`,
`JS Objects ${mx.getWrappersCount()}.`);
if (process.env.LLM_DEBUG) {
console.log(`Peak memory ${(mx.metal.getPeakMemory() / 1024 ** 2).toFixed(1)}M,`,
`Cache memory ${(mx.metal.getCacheMemory() / 1024 ** 2).toFixed(1)}M,`,
`Native JS objects ${mx.getWrappersCount()}.`);
}

// Cleanup.
Expand Down

0 comments on commit 8b3717a

Please sign in to comment.