PooledExecutor class final
One shard per worker isolate.
- Implemented types
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stats → ExecutorStats
-
Timing of mixer, FFN and LM-head calls since the last clear.
final
Methods
-
close(
) → Future< void> -
override
-
ffn(
int layer, Float32List a, int n) → Future< Float32List> -
Layer
layer's FFN fornnormalized inputs; returnsn, H.override -
lmHead(
Float32List normed, Float32List logits) → Future< void> -
The LM head for one normalized vector; writes
logits.override -
mixer(
int layer, Float32List a, int n, int position) → Future< Float32List> -
Layer
layer's mixer fornnormalized inputsa(n, H) at positionsposition,position+ 1, ...; returnsn, H.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → Future< void> -
Starts a new sequence.
override
-
restoreState(
Object state) → Future< void> -
Returns to a state from saveState.
override
-
saveState(
) → Future< Object?> -
The recurrent state at the current position (see
LayerShard.saveState), or null if this executor cannot save it.
override
-
stateBlocks(
int position) → List< Float32List> ? -
Views of the state the first
positiontokens left behind (see LayerShard.stateBlocks), or null if it lives elsewhere.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
spawn(
String modelDir, {required int workers, required int maxSeq, required int maxChunk, WeightFormat format = WeightFormat.f32, List< String> keepF32 = const []}) → Future<PooledExecutor>