get-ml-model-llama2
Automatically generated README for this automation recipe: get-ml-model-llama2
Category: AI/ML models
License: Apache 2.0
- CM meta description for this script: _cm.json
- Output cached? True
Reuse this script in your project
Install MLCommons CM automation meta-framework
Pull CM repository with this automation recipe (CM script)
cm pull repo mlcommons@cm4mlops
Print CM help from the command line
cmr "get raw ml-model language-processing llama2 llama2-70b text-summarization" --help
Run this script
Run this script via CLI
cm run script --tags=get,raw,ml-model,language-processing,llama2,llama2-70b,text-summarization[,variations] [--input_flags]
Run this script via CLI (alternative)
cmr "get raw ml-model language-processing llama2 llama2-70b text-summarization [variations]" [--input_flags]
Run this script from Python
import cmind
r = cmind.access({'action':'run'
'automation':'script',
'tags':'get,raw,ml-model,language-processing,llama2,llama2-70b,text-summarization'
'out':'con',
...
(other input keys for this script)
...
})
if r['return']>0:
print (r['error'])
Run this script via Docker (beta)
cm docker script "get raw ml-model language-processing llama2 llama2-70b text-summarization[variations]" [--input_flags]
Variations
-
No group (any combination of variations can be selected)
Click here to expand this section.
_batch_size.#
- ENV variables:
- CM_ML_MODEL_BATCH_SIZE:
#
- CM_ML_MODEL_BATCH_SIZE:
- ENV variables:
-
Group "framework"
Click here to expand this section.
_pytorch
(default)- ENV variables:
- CM_ML_MODEL_FRAMEWORK:
pytorch
- CM_ML_MODEL_FRAMEWORK:
- ENV variables:
-
Group "huggingface-stub"
Click here to expand this section.
_meta-llama/Llama-2-70b-chat-hf
(default)- ENV variables:
- CM_GIT_CHECKOUT_FOLDER:
Llama-2-70b-chat-hf
- CM_MODEL_ZOO_ENV_KEY:
LLAMA2
- CM_GIT_CHECKOUT_FOLDER:
- ENV variables:
_meta-llama/Llama-2-7b-chat-hf
- ENV variables:
- CM_GIT_CHECKOUT_FOLDER:
Llama-2-7b-chat-hf
- CM_MODEL_ZOO_ENV_KEY:
LLAMA2
- CM_GIT_CHECKOUT_FOLDER:
- ENV variables:
_stub.#
- ENV variables:
- CM_MODEL_ZOO_ENV_KEY:
LLAMA2
- CM_MODEL_ZOO_ENV_KEY:
- ENV variables:
-
Group "precision"
Click here to expand this section.
_fp32
(default)- ENV variables:
- CM_ML_MODEL_INPUT_DATA_TYPES:
fp32
- CM_ML_MODEL_PRECISION:
fp32
- CM_ML_MODEL_WEIGHT_DATA_TYPES:
fp32
- CM_ML_MODEL_INPUT_DATA_TYPES:
- ENV variables:
_int8
- ENV variables:
- CM_ML_MODEL_INPUT_DATA_TYPES:
int8
- CM_ML_MODEL_PRECISION:
int8
- CM_ML_MODEL_WEIGHT_DATA_TYPES:
int8
- CM_ML_MODEL_INPUT_DATA_TYPES:
- ENV variables:
_uint8
- ENV variables:
- CM_ML_MODEL_INPUT_DATA_TYPES:
uint8
- CM_ML_MODEL_PRECISION:
uint8
- CM_ML_MODEL_WEIGHT_DATA_TYPES:
uint8
- CM_ML_MODEL_INPUT_DATA_TYPES:
- ENV variables:
Default variations
_fp32,_meta-llama/Llama-2-70b-chat-hf,_pytorch
Script flags mapped to environment
--checkpoint=value
→LLAMA2_CHECKPOINT_PATH=value
Script output
cmr "get raw ml-model language-processing llama2 llama2-70b text-summarization [variations]" [--input_flags] -j