Skip to content

Cortex Models Get

This command returns a model detail defined by a model_id.

Usage

Terminal window
cortex models get <model_id>

For example, it returns the following:

Terminal window
{
name: 'tinyllama',
model: 'tinyllama',
version: 1,
files: [ 'C:\\Users\\ACER\\cortex\\models\\tinyllama\\model.gguf' ],
stop: [ '</s>' ],
top_p: 0.95,
temperature: 0.7,
frequency_penalty: 0,
presence_penalty: 0,
max_tokens: 4096,
stream: true,
ngl: 33,
ctx_len: 4096,
engine: 'llamacpp',
prompt_template: '<|system|>\n{system_message}<|user|>\n{prompt}<|assistant|>',
id: 'tinyllama',
created: 1720659351720,
object: 'model',
owned_by: ''
}

This command uses a model_id from the model that you have downloaded or available in your file system.

Options

OptionDescriptionRequiredDefault valueExample
model_idThe identifier of the model you want to retrieve.Yes-mistral
-h, --helpDisplay help information for the command.No--h