Text Generation
Transformers
PyTorch
mpt
Composer
MosaicML
llm-foundry
custom_code
text-generation-inference
File size: 321 Bytes
ab2b3bb
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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