Skip to content

Commit

Permalink
Use MorpheusRelativePath for locating the model_vocab_hash_file
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Jan 10, 2024
1 parent 0a297c6 commit eb36baa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/log_parsing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ python run.py \
--num_threads 1 \
--input_file ${MORPHEUS_ROOT}/models/datasets/validation-data/log-parsing-validation-data-input.csv \
--output_file ./log-parsing-output.jsonlines \
--model_vocab_hash_file=${MORPHEUS_ROOT}/morpheus/data/bert-base-cased-hash.txt \
--model_vocab_hash_file=data/bert-base-cased-hash.txt \
--model_vocab_file=${MORPHEUS_ROOT}/models/training-tuning-scripts/sid-models/resources/bert-base-cased-vocab.txt \
--model_seq_length=256 \
--model_name log-parsing-onnx \
Expand Down
3 changes: 2 additions & 1 deletion examples/log_parsing/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from inference import LogParsingInferenceStage
from postprocessing import LogParsingPostProcessingStage

from morpheus.cli.utils import MorpheusRelativePath
from morpheus.config import Config
from morpheus.config import PipelineModes
from morpheus.pipeline import LinearPipeline
Expand Down Expand Up @@ -61,7 +62,7 @@
)
@click.option('--model_vocab_hash_file',
required=True,
type=click.Path(exists=True, dir_okay=False),
type=MorpheusRelativePath(exists=True, dir_okay=False),
help="Model vocab hash file to use for pre-processing.")
@click.option('--model_vocab_file',
required=True,
Expand Down

0 comments on commit eb36baa

Please sign in to comment.