Skip to content

fix: fix OpenAI server on windows - #16

Merged
davide221 merged 2 commits into
Luce-Org:mainfrom
aminya:windows-server
Apr 23, 2026
Merged

davide221 merged 2 commits into
Luce-Org:mainfrom
aminya:windows-server

Conversation

@aminya

@aminya aminya commented Apr 23, 2026 •

Copy link
Copy Markdown
Contributor

This fixes the OpenAI server on Windows so that it works

@davide221
davide221 merged commit f7fe0dc into Luce-Org:main Apr 23, 2026
oliveagle pushed a commit to oliveagle/lucebox-hub that referenced this pull request May 22, 2026
fix: fix OpenAI server on windows
easel added a commit to easel/lucebox-hub that referenced this pull request May 29, 2026
- lucebox/README.md: fix the relative link to `cli.py`; resolves to
  `src/lucebox/cli.py` (the actual location), not the nonexistent
  `lucebox/cli.py` (Luce-Org#15).
- luce-bench/NOTICE: the bundled forge_eval LICENSE says
  "Copyright (c) 2025-2026 Antoine Zambelli", not 2024 — sync NOTICE
  with the actual upstream LICENSE (Luce-Org#16).
- luce-bench/src/lucebench/areas/__init__.py: `__all__` was missing
  agent / agent_recorded / forge / longctx / smoke. Add the imports +
  list entries so `from lucebench.areas import *` matches the actual
  area surface (Luce-Org#17).

Addresses cubic Luce-Org#15–Luce-Org#17 (P3) on PR Luce-Org#285.
davide221 referenced this pull request Nov 11, 2026
* perf(ds4): keep owner arenas across pipelined prefill parts

Pipelined layer-major prefill runs each caller band as
max(LUCE_DS4_PREFILL_PIPELINE, 2) parts. With the band capped to 640
rows by primary memory, every part fell under the 512-row gate for the
persistent routing and owner arenas, so each (layer, part) allocated and
freed three arenas. Each free synchronizes its device, and the cold
arena's free (about 4 ms) sat between one part's cold owner and the
next, which drive the cold device in turn. A pipelined part now keeps
the arenas, the path parts of 512 rows and more already take.

The persistent cold arena also selects eager execution for the deferred
cold owner (heterogeneous_prefill_eager_enabled), as for parts of 512
rows and more: the same kernels, so the same bits. HIP builds compile
graph replay out by default (GGML_HIP_GRAPHS=OFF, as measured), so
there the gain comes from the dropped allocations, frees and their
syncs alone.

Same bits: generated text identical to main at 1K, 4K, 16K and 60K
prompts.

Co-Authored-By: Claude <[email protected]>

* perf(ds4): split layer-major passes so the residual stays on the device

A layer-major pass keeps its rows' residual on the device only when it
fits beside 1.5 GiB of free memory. Otherwise the residual moves to the
host and the pipeline turns off, much slower per row. Later passes of a
long prompt find less free memory than the first, so their 16K-row
spans fell back to the host.

The prompt loop still groups bands into passes as before. A pass now
runs its leading bands that fit on the device and leaves the rest as the
next pass. The replay tail counts only for the part that reaches it.
At least two bands run together, and a pass whose first two bands do
not fit stays whole: its residual is on the host either way, and fewer
passes cost less. A split never changes which bands run layer-major or
how they are cut into pipeline parts: a lone band split off a
layer-major pass runs layer-major too, so the output does not depend
on free memory. Cluster ranks keep whole passes, since every rank must
plan the same chunks.

One fit rule (deepseek4_layer_major_residual_rows) now serves both the
planner and the placement, with a CPU unit test, and each pass that
falls back to the host residual is logged.

Same bits: first-token logits and every tensor of the post-prefill state
hash identical to main at 16K and 60K prompts.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
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