Skip to content

FLE Link 0.1.7

Choose a tag to compare

@github-actions github-actions released this 06 Nov 17:20
1bc173c
  • A model with some parts already on the disk is no longer turned down for the disk space of all of them. The fit check counted the whole
    model once as soon as one part was missing (a recipe gave only a total size), so flelink run of Rin said "does not fit this machine" with
    147 GiB free although only the 6 MB of part 1 were missing. Recipes can now list the bytes per file ([model.sizes]); then only the missing
    parts count. The Rin recipe has them.
  • The terminal interface lists the recipes too. Besides the catalog models, the model list of flelink now shows the built-in recipes that
    are not in the catalog (DeepSeek V4.1 Flash with and without the draft model, Rin) with the same verdict (fits, tight, too big) and
    [downloaded] mark; the fit check runs before anything is downloaded, and the search row stays last.
  • The GPU is read only while a page is open. An answer through the proxy (Claude Code, an agent, a script, flelink bench) used to wake the
    whole live sampler, including the nvidia-smi stream, which took about 16 % of a core with spikes to 67 % from a 16-thread engine: the same
    DeepSeek V4.1 Flash recipe measured 47.1 against 49.7 tokens per second directly (5 %, same answer, same accepted drafts). Now an answer only
    keeps the engine's /metrics and /slots going; the GPU stream starts when a Studio page asks for the live data and ends when it stops.
  • Rin, the 2-bit DeepSeek V4.1 Flash, is a recipe. "Rin - Deepseek V4.1 Flash 1017 + DSpark" starts the split model (a hot half
    resident on the GPU, a cold half served from RAM) with FLE's DSpark draft: about 53 tokens per second on one 32 GB GPU with 120 GB
    RAM, measured with FLE v1.2.6. It needs FLE v1.2.6 or newer and sets no GPU cache budget, because the hot half is already on the
    card and a cache on top would run out of memory. Leave a few seconds between two starts: the GPU memory has to be free first. A recipe can now name a usage profile
    (run.profile_file) that is one of the model repo's files: it is fetched with the model and copied to the recipe's profile the
    first time, so Rin's store starts warm (without the profile Rin ran at 30.9 instead of 53 tokens per second).
  • A split model (Rin) keeps the RAM expert store. The plan did not count the _exps_hot and _exps_cold tensors of the split
    layout as experts, took the model for small and pinned all of it in RAM (--load-mode none); the engine then logged "store off" and
    never reached its ready line. Both halves now count as experts.
  • FLE's own status is available at GET /api/engine/fle-status. It passes through /fle/status (schema 1) of FLE v1.2.6 and
    newer: what the engine decided at start (usage profile, GPU cache, RAM store, warnings) and its live counters. Another engine, or an
    older FLE, answers {"available": false}. The engine page of the Studio shows it as a card "FLE engine": decode and prefill speed,
    draft acceptance, usage profile, GPU cache, RAM store, CUDA version and the engine's warnings; with another engine the card stays hidden.
  • A start that fails for lack of memory says so. FLE v1.2.6 reports ram_too_small (how much the RAM expert store needs and how
    much this process may use); the engine log of a failed start now names both numbers and what to change.
  • The live sampler no longer slows the engine down. Through FLE Link, FLE v1.2.5 decoded 35.6 tokens per second where the
    same engine started by hand did 37.6. The first answer through the proxy wakes the live sampler, and it started a new
    nvidia-smi process every two seconds; an engine that keeps all its CPU threads busy loses a core for a moment with every
    started process, and the other threads wait for it. Now one long-lived nvidia-smi -l 3 serves the GPU readings (it ends when
    nobody watches), and while a response runs the engine is asked for /metrics every second tick and for /slots every sixth.
    With this change, three runs through FLE Link gave 37.2, 37.4 and 35.3 tokens per second (median 37.2); one run in three is
    still slow, the cause of that is being looked at.
  • The repeat check also catches a loop whose sentences differ only in their numbers. The first measurement of ISTA IQ2_XXS
    found no exact loop in 23 runs, but one greedy answer thinking a Pagoda in three.js fell into "Need maybe add
    rocks.push(createRockCluster(1, -21.0, 1, 0.00005)); etc." (48 of the last 50 sentences, only the numbers changing) and used
    all 16000 tokens. Chat now also turns every number into # and stops when one sentence shape fills at least 40 % of the recent
    sentences (14 times or more). In the answers that did not loop, the most frequent shape came 5 times in 44 at most.
    tests/loop-guard.test.mjs runs it on the real answer tails.
  • A failed start says why, with a number: FLE v1.2.5 and later print [fle-status-error] with a code before they stop.
    FLE Link shows it in plain words, for example "The GPU cache budget is too large for this card and context: at most 14200 MiB
    fit" with the setting to change, instead of "The engine exited (code 1)".