yobx.torch.in_transformers.models.configs#
- yobx.torch.in_transformers.models.configs.get_cached_configuration(name: str, exc: bool = False, **kwargs) PreTrainedConfig | None[source]#
Returns cached configuration to avoid having to many accesses to internet. It returns None if not Cache. The list of cached models follows. If exc is True or if environment variable
NOHTTPis defined, the function raises an exception if name is not found.<<<
import pprint from yobx.torch.in_transformers.models.configs import _retrieve_cached_configurations configs = _retrieve_cached_configurations() pprint.pprint(sorted(configs))
>>>
[runpythonerror] Traceback (most recent call last): File "<stdin>", line 9, in <module> ImportError: cannot import name '_retrieve_cached_configurations' from 'yobx.torch.in_transformers.models.configs' (~/github/yet-another-onnx-builder/yobx/torch/in_transformers/models/configs.py). Did you mean: 'get_cached_configuration'?