welvet library
Welvet — Loom M-POLY-VTD engine bindings for Flutter/Dart.
FFI to prebuilt libwelvet natives (macOS, Windows, Linux x86/ARM,
iOS, Android). See loomLib and LoomLib.
Classes
- LayerSuite
- LlmPollEvent
-
Parsed LoomLib.llmPollToken JSON (
{"s":…}). - LlmPollStatus
-
Status codes from LoomLib.llmPollToken (
sfield). - LoomLib
- Singleton wrapper around the loom_cabi shared library.
- SevenLayerRunResult
- Result summary from a full or partial seven-layer run.
Constants
-
allDtypes
→ const List<
DTypeRow> -
cnn3Grids
→ const List<
Grid> -
convGrids
→ const List<
Grid> - layersPerCell → const int
-
standardGrids
→ const List<
Grid> - trainingModeCpuMc → const int
- trainingModeCpuSc → const int
- welvetVersion → const String
- Package version (matches loom/welvet/python PyPI release).
Properties
-
layerSuites
→ List<
LayerSuite> -
final
- loomAvailable → bool
-
Returns true if the loom native library can be loaded.
no setter
- loomLib → LoomLib
-
The global LoomLib instance. Loaded lazily on first access.
Throws if the native library cannot be found.
no setter
- loomLibLastError → String?
-
Text from the most recent failed FFI init; null after a successful loomLib load.
no setter
Functions
-
benchItersForGrid(
Grid g) → int -
buildCnn1Json(
Grid g, String dt) → String -
buildCnn2Json(
Grid g, String dt) → String -
buildCnn3Json(
Grid g, String dt) → String -
buildDenseJson(
Grid g, String dt) → String -
buildEmbeddingJson(
Grid g, String dt) → String -
buildLstmJson(
Grid g, String dt) → String -
buildMhaJson(
Grid g, String dt) → String -
buildResidualJson(
Grid g, String dt) → String -
buildRnnJson(
Grid g, String dt) → String -
buildSwigluJson(
Grid g, String dt) → String -
cnn3ChannelEndpoints(
Grid g) → List< int> -
cnnChannelEndpoints(
Grid g) → List< int> -
cnnSpatial(
Grid g) → int -
denseEndpoints(
Grid g) → List< int> -
embeddingDims(
Grid g) → List< int> -
embeddingInput(
Grid g) → (List< double> , List<int> ) -
embeddingSeqLen(
Grid g) → int -
embeddingVocab(
Grid g) → int -
gridCells(
Grid g) → int -
loomParseFloatArray(
String json) → List< double> ? - Decode a JSON array result from loom (e.g. sequential forward output).
-
loomParseResult(
String json) → Map< String, dynamic> ? - Decode a JSON result from loom. Returns null if it contains an "error" key.
-
maxAbsDiff(
List< double> a, List<double> b) → double -
mhaShapeFor(
Grid g) → (int, int, int) -
residualDim(
Grid g) → int -
rnnEndpoints(
Grid g) → List< int> -
runSevenLayerSuite(
{String? layerFilter, String? dtypeFilter, bool entityTests = true, void onLog(String line)?}) → SevenLayerRunResult - Run lucy-style seven-layer matrix over C-ABI (forward/backward parity, train, save/reload).
-
sinInput(
int batch, List< int> rest) → (List<double> , List<int> ) -
sinTarget(
List< double> out) → List<double> -
swigluEndpoints(
Grid g) → List< int> -
targetShape(
List< int> inShape, int outLen, {bool isEmbedding = false}) → List<int> -
trainEpochsForGrid(
Grid g) → int -
trainingLr(
int dtype) → double -
trainingOk(
double lossInit, double lossFinal, int dtype) → bool