Class DeepJPrism
java.lang.Object
io.github.kirstenali.deepj.nn.transformer.DecoderOnlyModel
io.github.kirstenali.deepj.nn.transformer.prism.DeepJPrism
- All Implemented Interfaces:
CausalLM,Persistable,Trainable
-
Field Summary
Fields inherited from class io.github.kirstenali.deepj.nn.transformer.DecoderOnlyModel
lmHead, normF, stack, tokEmb -
Constructor Summary
ConstructorsConstructorDescriptionDeepJPrism(DeepJPrismConfig cfg, long seed) DeepJPrism(DeepJPrismConfig cfg, long seed, ParameterFactory parameters) DeepJPrism(DeepJPrismConfig cfg, 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, parameters, promptFormat, save, setMetadata, setPromptFormat, supportsBatchedForward
-
Constructor Details
-
DeepJPrism
-
DeepJPrism
-
DeepJPrism
-
-
Method Details
-
supportsCachedGeneration
protected boolean supportsCachedGeneration()- Overrides:
supportsCachedGenerationin classDecoderOnlyModel
-
supportsRollingGeneration
protected boolean supportsRollingGeneration()- Overrides:
supportsRollingGenerationin classDecoderOnlyModel
-
gradClipNorm
public float gradClipNorm() -
config
- Specified by:
configin classDecoderOnlyModel
-