Text Generation
Transformers
PyTorch
mpt
Composer
MosaicML
llm-foundry
custom_code
text-generation-inference
mpt-7b-chat / callback_with_config.py
irenedea's picture
LLM-foundry update March 26, 2024 23:50:31
ab2b3bb verified
raw
history blame
321 Bytes
import abc
from typing import Any
class CallbackWithConfig(Callback, abc.ABC):
"""A callback that takes a config dictionary as an argument, in addition to.
its other kwargs.
"""
def __init__(self, config: dict[str, Any], *args: Any, **kwargs: Any) -> None:
del config, args, kwargs
pass