npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@qvac/bci-whispercpp

v0.17.1

Published

Brain-Computer Interface (BCI) neural signal transcription addon for qvac, powered by whisper.cpp

Readme

@qvac/bci-whispercpp

Brain-Computer Interface (BCI) neural signal transcription addon for qvac, powered by the tetherto/qvac-fabric-speech.cpp fork of whisper.cpp.

Transcribes multi-channel neural signals (e.g., 512-channel microelectrode array recordings) into text using a BCI-trained whisper model running natively via GGML. Output matches the Python BrainWhisperer reference model exactly.

Table of Contents

Architecture

Neural Signal (512ch, 20ms bins)
    │
    ▼
┌──────────────────────────────┐
│   NeuralProcessor (C++)      │
│   - Gaussian smoothing       │  std=2, kernel=100
│   - Day-specific projection  │  low-rank (A·B) + month + softsign
│   - Pad to 3000 frames       │  mel-major layout for whisper.cpp
└──────────────┬───────────────┘
               │  mel features (512 × 3000)
               ▼
┌──────────────────────────────┐
│   whisper.cpp (patched)      │
│   - conv1 (k=7, 512→384)    │  BCI-trained embedder weights
│   - conv2 (k=3, stride=2)   │
│   - Positional encoding      │  learned time PE + sinusoidal day PE
│   - 6-layer encoder          │  windowed attention (w=57) on layers 0–3
│   - 4-layer decoder (LoRA)   │  beam search, length_penalty=0.14
└──────────────┬───────────────┘
               │
               ▼
          Text output

Results

Native GGML inference matches the Python BrainWhisperer reference on all test samples:

| Sample | Ground Truth | GGML Native Output | WER | |--------|-------------|-------------------|-----| | 0 | "You can see the code at this point as well." | "You can see the good at this point as well." | 10.0% | | 1 | "How does it keep the cost down?" | "How does it keep the cost down?" | 0.0% | | 2 | "Not too controversial." | "Not too controversial." | 0.0% | | 3 | "The jury and a judge work together on it." | "The jury and a judge work together on it." | 0.0% | | 4 | "Were quite vocal about it." | "We're quite vocal about it." | 20.0% | | Average | | | 6.0% |

Neural Signal Format

Binary files with the following layout:

| Offset | Type | Description | |--------|-----------|------------------------------------------------------| | 0 | uint32 | Number of timesteps | | 4 | uint32 | Number of channels | | 8 | float32[] | Feature data (row-major: features[t * channels + c]) |

Each timestep represents a 20ms bin of neural activity. Channels correspond to individual electrodes in a microelectrode array (typically 512 channels).

Installation

cd packages/bci-whispercpp
npm install
VCPKG_ROOT=/path/to/vcpkg npm run build

The ggml runtime is the shared @qvac/fabric prebuild, a dependency of this package: the addon links it dynamically (DT_NEEDED qvac__fabric-<host>@0.bare), ships no ggml of its own, and shares one runtime in memory with every other fabric addon in the process. Speech engines are compiled into each addon from the checksum-pinned source in speech-source.json, using only the headers shipped by @qvac/fabric. No speech or ggml vcpkg port is built. See packages/fabric/INTEGRATION.md.

The runtime ships Metal inside itself on macOS and iOS, and per-platform runtime-loaded modules elsewhere (CPU variants, Vulkan, CUDA on linux-x64, linux-arm64 and win32-x64, OpenCL on Android), so no backend is chosen at this package's build time and there is no CUDA build of the addon. Engaging CUDA needs the NVIDIA driver plus the CUDA 13 runtime libraries (cudart and cuBLAS) resolvable at load time; hosts that cannot resolve them skip the module and fall back to Vulkan or CPU. ggml registers CUDA ahead of Vulkan, so use_gpu: true prefers CUDA when a supported device is present. The CUDA module's device coverage (compute capability 7.5 and newer, Volta and Pascal excluded) is the runtime's; see the @qvac/fabric README.

Prerequisites

  • Bare runtime >= 1.24.0
  • CMake >= 3.25
  • vcpkg with VCPKG_ROOT environment variable set

Quickstart

To run an example you need the BCI model files and (for batch mode) the test fixtures. The download script fetches the model files from the QVAC model registry (no GitHub CLI, no auth) and the neural-signal fixtures from the bci-test-assets-v0.1.0 release tarball (the fixtures aren't in the registry yet). The repository is private, so set GITHUB_TOKEN (or GH_TOKEN) for the fixtures download; BCI_FIXTURES_URL overrides the source entirely.

cd packages/bci-whispercpp
npm install   # installs @qvac/registry-client (devDependency)

# Download model files (ggml-bci-windowed.bin + bci-embedder.bin) + test fixtures
npm run download-models
# node scripts/download-models.js --models    # models only (from the registry)
# node scripts/download-models.js --fixtures  # fixtures only
# node scripts/download-models.js --force     # re-download even if present

The models land in models/ and the neural-signal fixtures in test/fixtures/. Then run an example:

# Transcribe all bundled fixture samples and print WER
bare examples/transcribe-neural.js --batch

# Transcribe a single neural signal file
bare examples/transcribe-neural.js test/fixtures/neural_sample_0.bin

# Streaming transcription over a sliding window
bare examples/transcribe-stream-neural.js test/fixtures/neural_sample_0.bin

By default the examples look for models/ggml-bci-windowed.bin (with bci-embedder.bin alongside it). Override with WHISPER_MODEL_PATH=/path/to/ggml-bci-windowed.bin or by passing the model path as the final argument.

The model files come from the qvac model registry (engine @qvac/bci-whispercpp, S3 source qvac_models_compiled/bci-whispercpp/...). If you already have them locally, skip the download step and point WHISPER_MODEL_PATH at your copy. The fixtures URL can be overridden with BCI_FIXTURES_URL.

Model Conversion Prerequisites

  • Python 3 with numpy, torch, and transformers (pip install numpy torch transformers)

Model Conversion

Convert a trained BrainWhisperer checkpoint. This produces two files, both required for inference:

| File | Size | Description | |------|------|-------------| | ggml-bci-windowed.bin | ~84 MB | GGML model: whisper encoder/decoder (LoRA-merged), tokenizer, positional embedding, windowed attention header | | bci-embedder.bin | ~24 MB | Day projection weights: low-rank A·B matrices per recording day, month projections, session-to-day mapping |

python3 scripts/convert-model.py \
  --checkpoint /path/to/epoch=93-val_wer=0.0910.ckpt

Both files are written to models/ by default. All flags are optional:

| Flag | Default | Description | |------|---------|-------------| | --output | models/ggml-bci-windowed.bin | GGML model output path | | --embedder-output | models/bci-embedder.bin | Embedder weights output path | | --day-idx | 1 | Day index for baked positional embedding | | --window-size | 57 | Windowed attention size (0 to disable) | | --last-window-layer | 3 | Last encoder layer with windowed attention | | --f32 | off | Use f32 for all tensors (avoids f16 precision loss, ~2x larger) |

Important: By default both files must be in the same directory at runtime — the addon resolves bci-embedder.bin next to the GGML model file and will fail if it is missing. To store the embedder elsewhere, pass an explicit path via files.embedder (see Usage).

Usage

The package's default export is the high-level BCIWhispercpp class. It owns model lifecycle, an inference queue, and a sliding-window streaming driver on top of the native addon.

const BCIWhispercpp = require('@qvac/bci-whispercpp')

1. Construct an instance

const bci = new BCIWhispercpp({
  files: { model: './models/ggml-bci-windowed.bin' },
  opts: { stats: true }            // optional — surfaces runtime stats on response.stats
}, {
  whisperConfig: { language: 'en', temperature: 0.0 },
  bciConfig:     { day_idx: 1 },   // session day index for day-specific projection
  miscConfig:    { caption_enabled: false }
})

By default the companion bci-embedder.bin must sit next to files.model — the native addon resolves it relative to the model path and will fail to load otherwise. To keep the embedder in a different location, pass its path explicitly via files.embedder:

const bci = new BCIWhispercpp({
  files: {
    model: './models/ggml-bci-windowed.bin',
    embedder: './weights/bci-embedder.bin' // optional override
  }
})

GPU selection

For Whisper GPU selection, set contextParams['main-gpu'] (or the alias contextParams.main_gpu) to a raw ggml registry index, an integer string, 'dedicated', or 'integrated' (class names are case-insensitive). With GPU enabled and no explicit selector, dedicated GPUs are preferred. A class selector is strict: if that class is unavailable, execution falls back to CPU. An in-range numeric selector preserves its registry identity before backend filtering; a CPU, excluded backend, or refused Adreno Vulkan slot falls back to CPU without selecting another GPU. An out-of-range index logs a warning and uses normal selection. The supported local families are Metal, CUDA, Vulkan, and OpenCL; the existing Adreno OpenCL guard still applies.

main-gpu does not enable GPU execution by itself. use_gpu: false always selects CPU. The legacy contextParams.gpu_device retains its existing Whisper GPU/IGPU-ordinal meaning and Adreno guard. Combining it with either new selector spelling, or supplying both new spellings, is rejected.

2. Load the model

await bci.load()

load() is idempotent — calling it again unloads the existing model and re-initialises with the current config. There is no progress callback today.

3. Transcribe (batch mode)

Use this when you have the full neural signal up-front. transcribe() accepts the raw bytes (header + body); transcribeFile() is a convenience wrapper that reads the file for you.

const fs = require('bare-fs')

const response = await bci.transcribeFile('./signal.bin')
// or: const response = await bci.transcribe(new Uint8Array(fs.readFileSync('./signal.bin')))

const segments = await response.await()
const text = segments.map(s => s.text).join('').trim()
console.log(text)

if (response.stats) console.log(response.stats) // when opts.stats: true

Concurrent calls are serialised — a second transcribe() waits for the first to settle.

4. Transcribe (streaming mode)

transcribeStream() consumes a stream of bytes (async iterable, sync iterable, Uint8Array, or array of chunks) and decodes a sliding window over the body as data arrives. The first 8 bytes of the stream must be the standard [T u32 LE, C u32 LE] header (T is ignored in stream mode; C must be non-zero).

const response = await bci.transcribeStream(chunkIterable, {
  windowTimesteps: 1500,   // default
  hopTimesteps:    500,    // default — must be < windowTimesteps
  emit:            'delta' // 'delta' (default) | 'full'
})

response.onUpdate(segments => {
  // emit: 'delta' — newly-discovered tail segments since the last window.
  //                 Each segment carries native fields (text, start, end,
  //                 toAppend, id) plus windowStartTimestep so you can map
  //                 back to the stream timeline.
  // emit: 'full'  — single { text } entry with the full running transcript.
  for (const s of segments) process.stdout.write(s.text)
})

await response.await()     // resolves when the stream ends and the final window decodes

Streaming constraints:

| Option | Constraint | |--------|------------| | windowTimesteps | positive integer, ≤ 2900 (MAX_WINDOW_TIMESTEPS) | | hopTimesteps | positive integer, < windowTimesteps | | emit | 'delta' or 'full' |

Only one stream may be active at a time. response.stats is not populated for streams.

5. Cancel / unload / destroy

await bci.cancel()    // abort an in-flight job or stream; instance remains usable
await bci.unload()    // release native resources; bci.load() can be called again
await bci.destroy()   // permanent — instance cannot be reused

6. Word Error Rate helper

The package re-exports computeWER(hypothesis, reference) for evaluation:

const { computeWER } = require('@qvac/bci-whispercpp')
const wer = computeWER('how does it keep the cost down', 'how does it keep the cost down?')

Output shape

response.await() resolves to an array of segments; response.onUpdate(cb) receives the same shape per emission:

[
  { text: ' How does it keep the cost down?', start: 0, end: 280, toAppend: false, id: 0 }
]

In streaming delta mode each segment is annotated with windowStartTimestep. In full mode the array contains a single { text } entry.

Assessing fit

assessFit projects a load against the memory free right now. It reads model metadata and never weight data. The model and the embedder ship as .bin; for each, the QVAC registry also publishes a weightless description (a GGUF holding the file's settings and array sizes, tens of KB), and passing it projects exactly as passing the file does, so a load can be assessed before it is downloaded. It is a module export, not an instance method — nothing is loaded to call it.

const { assessFit } = require('@qvac/bci-whispercpp')

const fit = await assessFit({
  modelPath: '/models/bci-whisper.bin',
  embedderPath: '/models/bci-embedder.bin',
  audioSeconds: 300,
  decoders: 5
})

fit.status // 'fits' | 'does-not-fit' | 'unknown'
fit.devices // [{ id, name, unified, usedBytes, freeBytes, totalBytes }]
fit.stats // {}

devices holds the device the load resolves to, then the host CPU, which holds the host-side buffers and the embedder. A load on the CPU is one row. id is the PCI bus ID when the backend reports one, so the same GPU matches across addons built on different backends, and the device name otherwise. unified is true for memory the host owns: the CPU, an integrated GPU, a GPU that shares the host's memory, Android's OpenCL GPU, and a device that reports no memory of its own, which takes the host's figures. usedBytes is what the load takes on that device.

On an iOS device every unified row shares the app's own memory limit, os_proc_available_memory(). Each such row's free memory is capped at that limit, and a load whose unified rows together take more than the limit less the margin does not fit. A limit of 0 means the app has none left.

The projection covers the whisper model and the embedder. The embedder's share of the host row is the RAM it keeps: its day and month projections, its session map and the dense projection it caches per day. On a device that shares system RAM it is part of the verdict.

| Option | Description | | --- | --- | | modelPath | Required. Absolute path to the BCI model, or to its weightless description. | | embedderPath | The embedder, or its weightless description. Its host RAM is counted in the host row. Omitted, bci-embedder.bin next to modelPath is read, as a load reads it. | | audioSeconds | Longest single transcribe the projection must cover. | | gpuLayers | Greater than 0 requests the GPU stack, with the fallbacks a real load applies. Omitted, the projection runs on the GPU, matching what the load does. | | gpuDevice | As the load takes it. | | decoders | Worst-case resident decoders, the best_of or beam_size the run will use. The KV cache and decode graph grow with it. | | marginBytes | Free memory that must remain for the projection to count as fitting. Defaults to whisper's own headroom. | | backendsDir | Directory scanned as given for the dynamically-loaded ggml backends. Unset uses the backends the @qvac/fabric runtime ships, as a real load does, since the native side registers backends once per process. |

assessFit returns a Promise. Concurrent calls run one at a time.

status is unknown, with no rows, for a load the fitter cannot measure. A model or embedder the fitter cannot read, or a broken request, rejects with an InvalidArgument error, and a host with no native binding rejects as well.

Tests

The C++ tests run through the CI contract's cpp:build and cpp:tests targets, with the shared vcpkg cache and two build workers. C++ test failures block the merge guard. See the package CI contract. for cache warming and resource settings.

| Script | Purpose | |--------|---------| | npm run test:unit | JS unit tests (brittle-bare test/unit/*.test.js) — no model required | | npm run test:integration | JS integration tests against the native addon — requires WHISPER_MODEL_PATH | | npm run test:integration:smoke | Only the addon suite (test/integration/addon.test.js); the darwin-x64 CI leg runs this instead of the full suite | | npm run test:cpp | C++ unit tests (GoogleTest); builds only the test binary with BUILD_TESTING=ON and leaves prebuilds/ untouched | | npm run test:dts | Type-checks the published index.d.ts | | npm test | Runs test:unit + test:integration |

On CPU the integration suite runs only brief inference, one decode per test. The WER sweep, the multi-window streaming tests and the accuracy regression run on the GPU and are skipped when NO_GPU=true. With NO_GPU=true the remaining addon.test.js tests request use_gpu: false, so a CPU-only runner that still exposes a GPU device (the darwin-x64 VM's Metal "Apple Paravirtual device") decodes on the CPU backend.

# JS unit tests
npm run test:unit

# JS integration tests
WHISPER_MODEL_PATH=./models/ggml-bci-windowed.bin npm run test:integration

# C++ unit tests
VCPKG_ROOT=/path/to/vcpkg npm run test:cpp

# .d.ts typecheck
npm run test:dts

Integration tests require both ggml-bci-windowed.bin and bci-embedder.bin to be present in the same directory, plus the neural-signal fixtures. The quickest way to get them is npm run download-models (see Quickstart); alternatively produce the models yourself via Model Conversion.

Configuration

BCIWhispercpp accepts two arguments:

new BCIWhispercpp(args, config)

args

| Field | Type | Description | |-------|------|-------------| | files.model | string | Required. Path to BCI GGML model file. By default bci-embedder.bin must sit alongside it. | | files.embedder | string | Optional explicit path to the embedder weights file. Overrides the default lookup of bci-embedder.bin next to files.model. | | logger | object | Optional logger; wrapped in @qvac/logging. Defaults to a noop logger. | | opts.stats | boolean | When true, runtime stats are surfaced on response.stats for batch jobs. Default false. |

config.whisperConfig

whisperConfig accepts a fixed whitelist of whisper decoding parameters; unknown keys are rejected (load() throws INVALID_CONFIG). The most common ones are shown below. The full accepted set is language, n_threads, temperature, detect_language, translate, duration_ms, no_timestamps, single_segment, suppress_blank, suppress_nst, print_special, print_progress, print_realtime, print_timestamps, greedy_best_of, and beam_search_beam_size (see index.d.ts and Advanced configuration).

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | language | string | "en" | Language code | | temperature | number | 0.0 | Sampling temperature | | n_threads | number | 0 (auto) | Number of threads |

config.bciConfig

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | day_idx | number | 0 | Session day index for the day-specific low-rank projection at runtime. >= 0 applies the projection (out-of-range values are clamped natively); -1 enables mel-passthrough mode, where the input buffer is treated as pre-computed 512-bin mel features (frame-major) and preprocessing is skipped — intended for parity testing against the Python reference, not production. Distinct from the conversion-time --day-idx flag, which bakes a positional embedding into ggml-bci-windowed.bin. |

config.contextParams

These keys back the whisper_context. Changing any of them between jobs forces a full model reload (unload → re-init → warmup), which can take several seconds.

| Parameter | Type | Description | |-----------|------|-------------| | model | string | Optional override; usually set via args.files.model. | | use_gpu | boolean | Enable GPU acceleration. Enabled by default (whisper.cpp default); set false to force CPU. The GPU backends are the ones the @qvac/fabric runtime ships for the host: Metal on macOS/iOS, Vulkan on Linux/Windows (plus CUDA where the runtime ships it, preferred when an NVIDIA device and the CUDA runtime are present), OpenCL/Vulkan on Android. | | flash_attn | boolean | Enable flash attention. | | gpu_device | number | Legacy index in Whisper’s GPU/IGPU-only list; cannot be combined with main-gpu or main_gpu. | | main-gpu / main_gpu | number or string | Raw registry index (integer number/string), or strict dedicated / integrated class. See GPU selection. |

config.miscConfig

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | caption_enabled | boolean | false | Format segments with <\|start\|>..<\|end\|> markers. |

config.backendsDir

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | backendsDir | string | the @qvac/fabric backends | Directory scanned as given for dynamically-loaded ggml backend modules. Unset, the @qvac/fabric runtime loads the backends it ships: from its platform package in an npm install, or from next to the runtime where bare-link or the SDK worker bundle put them. The first load or assessFit in a process decides; later values are ignored. |

streamOpts (passed to transcribeStream())

| Parameter | Type | Default | Constraint | Description | |-----------|------|---------|------------|-------------| | windowTimesteps | number | 1500 | positive integer, ≤ 2900 (MAX_WINDOW_TIMESTEPS) | Decode window size in 20 ms timesteps. | | hopTimesteps | number | 500 | positive integer, < windowTimesteps | How far the window advances between decodes (~33% overlap by default). | | emit | string | 'delta' | 'delta' or 'full' | 'delta' emits the newly-discovered tail per window with native segment fields plus windowStartTimestep. 'full' emits a single { text } entry with the running transcript. |

The encoder accepts up to ~3000 timesteps per forward pass; MAX_WINDOW_TIMESTEPS = 2900 keeps a safety margin so partial flush windows always fit.

Advanced configuration

whisperConfig maps a curated subset of whisper.cpp's whisper_full_params; only the keys listed above are accepted, and any other key is rejected. To match the Python BrainWhisperer reference, the BCI decode path fixes several parameters natively — beam search with beam_size 4 (override with beam_search_beam_size), length_penalty 0.14 (not configurable), single-segment, and no-timestamps. For the meaning of each accepted parameter refer to the upstream reference:

whisper.cpp Patches

The BCI patches live in the tetherto/qvac-fabric-speech.cpp fork and are consumed via the qvac-registry-vcpkg port (see vcpkg.json for the pinned version):

| Feature | Description | |---------|-------------| | Variable conv1 kernel | Read n_audio_conv1_kernel from model header (k=7 for 512ch BCI vs k=3 for audio) | | Windowed attention | Attention mask with configurable window size/layer params in header | | BCI SOS tokens | BCI-specific start-of-sequence token handling | | Graph placement fix | Correct encoder-graph mask population for the encoder graph refactor |

Error Range

All errors thrown by this package are QvacErrorAddonBCI instances (extending QvacErrorBase from @qvac/error) and use codes in the range 26001–27000.

| Code | Name | When | |------|------|------| | 26001 | FAILED_TO_LOAD_WEIGHTS | Native addon failed to load the GGML model | | 26002 | FAILED_TO_CANCEL | cancel() failed at the addon layer | | 26003 | FAILED_TO_APPEND | Append to processing queue failed | | 26004 | FAILED_TO_DESTROY | destroy() failed at the addon layer | | 26005 | FAILED_TO_ACTIVATE | addon.activate() failed during load() | | 26006 | INVALID_NEURAL_INPUT | Batch input rejected by the addon | | 26007 | JOB_ALREADY_RUNNING | transcribe() called while a job is in flight | | 26008 | MODEL_NOT_LOADED | Inference called before load() or after destroy() | | 26009 | MODEL_FILE_NOT_FOUND | files.model missing/unreadable, or files.embedder provided but missing/invalid | | 26010 | BUFFER_LIMIT_EXCEEDED | Neural signal buffer exceeded the addon limit | | 26011 | FAILED_TO_START_JOB | Addon refused to start the job | | 26012 | INVALID_CONFIG | Constructor / context configuration rejected | | 26013 | EMBEDDER_WEIGHTS_INVALID | bci-embedder.bin failed validation | | 26014 | STREAM_ALREADY_ACTIVE | transcribeStream() called while one is already active | | 26015 | INVALID_STREAM_INPUT | Bad stream input type or streamOpts | | 26016 | INVALID_STREAM_HEADER | Stream [T u32, C u32] header malformed (e.g. C == 0) | | 26017 | WINDOW_TOO_LARGE | windowTimesteps exceeds MAX_WINDOW_TIMESTEPS (2900) |

Every thrown QvacErrorAddonBCI extends QvacErrorBase and carries the numeric .code listed above, so callers can match programmatically on err.code (e.g. err.code === 26008 for MODEL_NOT_LOADED).

Resources

Glossary

  • Bare — small modular JavaScript runtime for desktop and mobile. Learn more.
  • QVAC — Tether's open-source SDK for building decentralized, local-first AI applications.
  • GGML — tensor library / file format used by whisper.cpp for native inference.
  • BCI — Brain-Computer Interface; here, microelectrode-array recordings of neural activity decoded into text.
  • Day index (day_idx) — selects the day-specific low-rank projection (A·B) baked into bci-embedder.bin. Sessions recorded on different days use different projections.
  • Windowed attention — encoder attention mask restricted to a local window (w=57 over layers 0–3 by default), configured at model conversion time.

License

Apache-2.0

Shared ggml logging belongs to Fabric. Speech initialization preserves its callback; Whisper and Parakeet retain their engine-local log forwarding. Explicit backendsDir overrides remain supported; an unset value uses Fabric.