Skip to content

fix: update benchmark script for current vllm_mlx API - #81

Merged
ethenotethan merged 1 commit into
Layr-Labs:masterfrom
ethenotethan:fix/benchmark-vllm-mlx-api
Apr 23, 2026
Merged

ethenotethan merged 1 commit into
Layr-Labs:masterfrom
ethenotethan:fix/benchmark-vllm-mlx-api

Conversation

@ethenotethan

@ethenotethan ethenotethan commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

MLXEngine was replaced by SimpleEngine, generate_stream by async stream_generate. Also fix cfg-gated type for inprocess_engine when building without the python feature.

darkbloom benchmark

  Darkbloom Benchmark
  ─────────────────────────────────────
  Apple M3 Ultra · 256 GB RAM · 80 GPU cores · 819 GB/s

  Select a model to benchmark:

    [1] Qwen3.5 27B Claude Opus Distilled (31.9 GB)

  Enter number [1-1] (or press Enter for [1]): 1

  Benchmarking: Qwen3.5 27B Claude Opus Distilled (31.9 GB)

  Loading model...

  Warming up...
  Run 1: 23.3 tok/s | TTFT 336ms | 200 tokens in 8.93s
  Run 2: 23.2 tok/s | TTFT 338ms | 200 tokens in 8.94s
  Run 3: 22.9 tok/s | TTFT 332ms | 200 tokens in 9.05s

  Average: 23.2 tok/s | TTFT 335ms
  ─────────────────────────────────────
  Result: 23.2 tok/s decode | 335ms TTFT
  Theoretical bandwidth utilization: 90%
  ``

## Components touched

<!-- Tick all that apply so reviewers know what to look at. -->

- [ ] coordinator (Go)
- [ ] provider (Rust)
- [ ] console-ui (Next.js)
- [ ] image-bridge (Python)
- [ ] app (macOS Swift)
- [ ] enclave (Swift)
- [ ] infra / CI / release
- [ ] docs

## Protocol / interface changes

<!--
If you changed a WebSocket message, an HTTP endpoint, a config key, or a CLI flag:
- Did you update the matching side? (provider/src/protocol.rs ↔ coordinator/internal/protocol/messages.go)
- Are bundle scripts (build-bundle.sh, install.sh, the Swift app launcher, LatestProviderVersion) still consistent?
- Does this need a version bump or a migration note?
-->

- [ ] No protocol/interface changes
- [ ] Yes — described above and matching side updated

## Notes for reviewers

<!-- Anything non-obvious: tradeoffs taken, edge cases not covered, follow-ups planned. -->

@Gajesh2007 Gajesh2007 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

MLXEngine was replaced by SimpleEngine, generate_stream by async
stream_generate. Also fix cfg-gated type for inprocess_engine when
building without the python feature.
@ethenotethan
ethenotethan force-pushed the fix/benchmark-vllm-mlx-api branch from 15c8a65 to 6278bd4 Compare April 23, 2026 09:18
@ethenotethan
ethenotethan merged commit 3059da4 into Layr-Labs:master Apr 23, 2026
0 of 4 checks passed
cursor Bot pushed a commit that referenced this pull request Jul 10, 2026
Quiescence reports needs_adopt/reserved/held counts. Concurrent clear-orphans
conserves money; outbox ack required for ready after drain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants