Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Oct 2, 2023
1 parent c715832 commit 5b5f039
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
from composer.loggers.remote_uploader_downloader import RemoteUploaderDownloader
from composer.models import HuggingFaceModel
from composer.utils import dist, format_name_with_dist_and_time, parse_uri
from transformers import (PreTrainedModel,
PreTrainedTokenizerBase)
from transformers import PreTrainedModel, PreTrainedTokenizerBase

from llmfoundry.models.mpt import MPTConfig, MPTForCausalLM
from llmfoundry.utils.huggingface_hub_utils import \
Expand Down Expand Up @@ -73,7 +72,9 @@ def __init__(
if mlflow_logging_config is None:
mlflow_logging_config = {}
if 'metadata' not in mlflow_logging_config:
mlflow_logging_config['metadata'] = {'task': 'llm/v1/completions'}
mlflow_logging_config['metadata'] = {
'task': 'llm/v1/completions'
}
if 'task' not in mlflow_logging_config:
mlflow_logging_config['task'] = 'text-generation'
self.mlflow_logging_config = mlflow_logging_config
Expand Down

0 comments on commit 5b5f039

Please sign in to comment.