CoreModelFactory
Methods
capabilities
async capabilities(options) =>
CoreModelCapabilities
Get the capabilities of the on-device language model.
Options (optional) |
---|
model |
Returns a new capabilities object
create
async create(options) =>
LanguageModel
Creates a new language model session
Options (optional) |
---|
model |
gpuEngine: |
topK |
topP o |
maxTokens |
grammar |
temperature |
repeatPenality |
flashAttention |
contextSize |
signal |
monitor |
Returns a new CoreModel session that can be prompted with the pre-provided configuration
Last updated