Class DeepJLoop
java.lang.Object
io.github.kirstenali.deepj.nn.transformer.DecoderOnlyModel
io.github.kirstenali.deepj.nn.transformer.loop.DeepJLoop
- All Implemented Interfaces:
CausalLM,Persistable,Trainable
A looped causal decoder reusing grouped-query attention and SwiGLU blocks across passes.
-
Field Summary
Fields inherited from class io.github.kirstenali.deepj.nn.transformer.DecoderOnlyModel
lmHead, normF, stack, tokEmb -
Constructor Summary
ConstructorsConstructorDescriptionDeepJLoop(DeepJLoopConfig config, long seed) DeepJLoop(DeepJLoopConfig config, long seed, ParameterFactory parameters) DeepJLoop(DeepJLoopConfig config, long seed, DType dtype) -
Method Summary
Methods inherited from class io.github.kirstenali.deepj.nn.transformer.DecoderOnlyModel
applyInitScale, embed, embed, embedBatch, embeddingParameters, forward, forwardBatch, load, metadata, openGeneration, openGeneration, promptFormat, save, setMetadata, setPromptFormat, supportsBatchedForward
-
Constructor Details
-
DeepJLoop
-
DeepJLoop
-
DeepJLoop
-
-
Method Details
-
config
- Specified by:
configin classDecoderOnlyModel
-
gradClipNorm
public float gradClipNorm() -
supportsCachedGeneration
protected boolean supportsCachedGeneration()- Overrides:
supportsCachedGenerationin classDecoderOnlyModel
-
supportsRollingGeneration
protected boolean supportsRollingGeneration()- Overrides:
supportsRollingGenerationin classDecoderOnlyModel
-
parameters
- Specified by:
parametersin interfacePersistable- Specified by:
parametersin interfaceTrainable- Overrides:
parametersin classDecoderOnlyModel
-