Instructions to use iamthe66epitaph/BabyAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iamthe66epitaph/BabyAI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="iamthe66epitaph/BabyAI")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("iamthe66epitaph/BabyAI", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| import abc | |
| from collections.abc import Iterable, Mapping, MutableMapping | |
| from typing import TYPE_CHECKING, Protocol, TypeVar, Union, overload | |
| if TYPE_CHECKING: | |
| from ._multidict_py import istr | |
| else: | |
| istr = str | |
| _V = TypeVar("_V") | |
| _V_co = TypeVar("_V_co", covariant=True) | |
| _T = TypeVar("_T") | |
| class SupportsKeys(Protocol[_V_co]): | |
| def keys(self) -> Iterable[str]: ... | |
| def __getitem__(self, key: str, /) -> _V_co: ... | |
| class SupportsIKeys(Protocol[_V_co]): | |
| def keys(self) -> Iterable[istr]: ... | |
| def __getitem__(self, key: istr, /) -> _V_co: ... | |
| MDArg = Union[SupportsKeys[_V], SupportsIKeys[_V], Iterable[tuple[str, _V]], None] | |
| class MultiMapping(Mapping[str, _V_co]): | |
| def getall(self, key: str) -> list[_V_co]: ... | |
| def getall(self, key: str, default: _T) -> Union[list[_V_co], _T]: ... | |
| def getall(self, key: str, default: _T = ...) -> Union[list[_V_co], _T]: | |
| """Return all values for key.""" | |
| def getone(self, key: str) -> _V_co: ... | |
| def getone(self, key: str, default: _T) -> Union[_V_co, _T]: ... | |
| def getone(self, key: str, default: _T = ...) -> Union[_V_co, _T]: | |
| """Return first value for key.""" | |
| class MutableMultiMapping(MultiMapping[_V], MutableMapping[str, _V]): | |
| def add(self, key: str, value: _V) -> None: | |
| """Add value to list.""" | |
| def extend(self, arg: MDArg[_V] = None, /, **kwargs: _V) -> None: | |
| """Add everything from arg and kwargs to the mapping.""" | |
| def merge(self, arg: MDArg[_V] = None, /, **kwargs: _V) -> None: | |
| """Merge into the mapping, adding non-existing keys.""" | |
| def popone(self, key: str) -> _V: ... | |
| def popone(self, key: str, default: _T) -> Union[_V, _T]: ... | |
| def popone(self, key: str, default: _T = ...) -> Union[_V, _T]: | |
| """Remove specified key and return the corresponding value.""" | |
| def popall(self, key: str) -> list[_V]: ... | |
| def popall(self, key: str, default: _T) -> Union[list[_V], _T]: ... | |
| def popall(self, key: str, default: _T = ...) -> Union[list[_V], _T]: | |
| """Remove all occurrences of key and return the list of corresponding values.""" | |