Load a Model Checkpoint
Load a model checkpoint to perform inference with it. Only model that were trained with Artifex can be loaded.
Arguments
- model_path str
The local path to the model checkpoint to load. This should be a directory containing all the model files generated by Artifex, such asconfig.json
andmodel.safetensors
.
- Python
from artifex import Artifex
intent_classifier = Artifex().intent_classifier
# NOTE: you must have a model checkpoint to load. Only
# models that were trained with Artifex can be loaded.
intent_classifier.load("/path/to/model/checkpoint")
- Response
None