Skip to content

fix: remove hardcoded API_KEYS - #39

Closed
vinaykulk621 wants to merge 1 commit into
Layr-Labs:masterfrom
vinaykulk621:api-keys-hehe
Closed

vinaykulk621 wants to merge 1 commit into
Layr-Labs:masterfrom
vinaykulk621:api-keys-hehe

Conversation

@vinaykulk621

Copy link
Copy Markdown

Hehe, you guys hardcoded API_KEYS????

Hehe, you guys hardcoded API_KEYS????
@vercel

vercel Bot commented Apr 16, 2026

Copy link
Copy Markdown

@vinaykulk621 is attempting to deploy a commit to the EigenLabs Team on Vercel.

A member of the Team first needs to authorize it.

@Gajesh2007

Copy link
Copy Markdown
Member

^ these keys were revoked earlier. thank you for the PR though.

@Gajesh2007 Gajesh2007 closed this Apr 19, 2026
anupsv added a commit that referenced this pull request Jun 15, 2026
Point the submodules at the merged commits carrying the Metal resource-COUNT
crash fix:
  - libs/mlx-swift    -> ac67822 (merged #4 Swift surface + #5 .gitmodules
    repoint to the Layr-Labs mlx/mlx-c forks + Cmlx pointer bump, i.e. the
    count-aware cache trim in MetalAllocator::malloc and the
    Memory.numResources / Memory.resourceLimit getters)
  - libs/mlx-swift-lm -> 404afee (merged #39 env-gated [rsrc] telemetry)

This makes MLX.Memory.resourceLimit / .numResources resolve, so the live
resource-count probes in ContinuousBatchingLiveTests compile. Verified
locally: provider `swift build` and `swift build --build-tests` both complete
clean (ContinuousBatchingLiveTests.swift compiles), with the nested Cmlx
submodules resolving from the forks at the fix commits.
anupsv added a commit that referenced this pull request Jun 15, 2026
Point the submodules at the merged commits carrying the Metal resource-COUNT
crash fix:
  - libs/mlx-swift    -> ac67822 (merged #4 Swift surface + #5 .gitmodules
    repoint to the Layr-Labs mlx/mlx-c forks + Cmlx pointer bump, i.e. the
    count-aware cache trim in MetalAllocator::malloc and the
    Memory.numResources / Memory.resourceLimit getters)
  - libs/mlx-swift-lm -> 404afee (merged #39 env-gated [rsrc] telemetry)

This makes MLX.Memory.resourceLimit / .numResources resolve, so the live
resource-count probes in ContinuousBatchingLiveTests compile. Verified
locally: provider `swift build` and `swift build --build-tests` both complete
clean (ContinuousBatchingLiveTests.swift compiles), with the nested Cmlx
submodules resolving from the forks at the fix commits.
Gajesh2007 added a commit that referenced this pull request Jun 15, 2026
* Add live resource-count probes for the Metal resource-limit crash

Two env-gated live tests characterise the `[metal::malloc] Resource limit
(499000) exceeded` crash by driving batched decode and watching the Metal
buffer COUNT (via the engine's [rsrc] telemetry): a small Qwen3-0.6B churn
probe (varied prompt lengths across waves) and a sustained Gemma-4-26B
high-concurrency probe. Both set a huge cacheLimit to mimic the big-RAM
prod box where the byte-driven cache trim never fires, isolating pure
count growth. Gated behind DARKBLOOM_LIVE_MLX_TESTS / _GEMMA /
_MLX_RESOURCE_DEBUG so they never run in normal CI.

* Add Metal resource-count fix handoff doc (fork-vs-vendor + merge order)

* Bump mlx-swift + mlx-swift-lm to the resource-count fix

Point the submodules at the merged commits carrying the Metal resource-COUNT
crash fix:
  - libs/mlx-swift    -> ac67822 (merged #4 Swift surface + #5 .gitmodules
    repoint to the Layr-Labs mlx/mlx-c forks + Cmlx pointer bump, i.e. the
    count-aware cache trim in MetalAllocator::malloc and the
    Memory.numResources / Memory.resourceLimit getters)
  - libs/mlx-swift-lm -> 404afee (merged #39 env-gated [rsrc] telemetry)

This makes MLX.Memory.resourceLimit / .numResources resolve, so the live
resource-count probes in ContinuousBatchingLiveTests compile. Verified
locally: provider `swift build` and `swift build --build-tests` both complete
clean (ContinuousBatchingLiveTests.swift compiles), with the nested Cmlx
submodules resolving from the forks at the fix commits.

* Address review: restore cacheLimit in probes; refresh handoff doc

- Resource-count probes now snapshot MLX.Memory.cacheLimit and restore it in a
  defer (cacheLimit is process-global and Swift Testing shares the process, so
  the 80GB byte-trim-off setting would otherwise leak into other suites). Also
  switch to the non-deprecated Memory.cacheLimit property setter.
- Handoff doc: the C++ fix is no longer local-only / in /tmp — point at the
  pushed fork commits + the darkbloom-metal-resource-count tags instead.

* Address review: also lift memoryLimit in resource probes

The byte-pressure reclaim in MetalAllocator::malloc fires on gc_limit_, which
is derived from memoryLimit — NOT from cacheLimit. A prior live test can leave
memoryLimit at 12–16GB via LiveInferenceFixtures.applyMemoryBudget (process-
global; Swift Testing shares the process), so raising only cacheLimit still lets
byte pressure free cached buffers and flatten the resource-count trajectory — a
false negative for the count-limit bug. Both probes now raise AND restore
memoryLimit alongside cacheLimit.

---------

Co-authored-by: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com>
cursor Bot pushed a commit that referenced this pull request Jul 10, 2026
Ops HTTP path to clear start_authorized holds with settle_capped_as
force_settled disposition, critical outbox enqueue, and ownership fencing.
Also pins release same-op different-job Conflict race (#34).
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