generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
9,023 additions
and
9,637 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/99e_text-examples-causal-lm-gpt2.ipynb. | ||
# AUTOGENERATED! DO NOT EDIT! File to edit: ../../../nbs/99e_text-examples-causal-lm-gpt2.ipynb. | ||
|
||
# %% auto 0 | ||
__all__ = [] | ||
|
||
# %% ../nbs/99e_text-examples-causal-lm-gpt2.ipynb 4 | ||
# %% ../../../nbs/99e_text-examples-causal-lm-gpt2.ipynb 5 | ||
import warnings | ||
from transformers import * | ||
from transformers.utils import logging as hf_logging | ||
from fastai.text.all import * | ||
|
||
|
||
from ...text.data.core import * | ||
from ...text.data.language_modeling import * | ||
from ...text.modeling.core import * | ||
from ...text.modeling.language_modeling import * | ||
from ...text.utils import * | ||
from ...utils import * | ||
|
||
logging.set_verbosity_error() | ||
# %% ../../../nbs/99e_text-examples-causal-lm-gpt2.ipynb 7 | ||
# silence all the HF warnings | ||
warnings.simplefilter("ignore") | ||
hf_logging.set_verbosity_error() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/99b_text-examples-glue.ipynb. | ||
# AUTOGENERATED! DO NOT EDIT! File to edit: ../../../nbs/99b_text-examples-glue.ipynb. | ||
|
||
# %% auto 0 | ||
__all__ = [] | ||
|
||
# %% ../nbs/99b_text-examples-glue.ipynb 4 | ||
import torch | ||
# %% ../../../nbs/99b_text-examples-glue.ipynb 5 | ||
import torch, warnings | ||
from fastai.text.all import * | ||
|
||
from datasets import load_dataset, concatenate_datasets | ||
from transformers import * | ||
from transformers.utils import logging as hf_logging | ||
|
||
from ...text.data.core import * | ||
from ...text.modeling.core import * | ||
from ...text.utils import * | ||
from ...utils import * | ||
|
||
logging.set_verbosity_error() | ||
|
||
# %% ../../../nbs/99b_text-examples-glue.ipynb 7 | ||
# silence all the HF warnings | ||
warnings.simplefilter("ignore") | ||
hf_logging.set_verbosity_error() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/99c_text-examples-glue-plain-pytorch.ipynb. | ||
# AUTOGENERATED! DO NOT EDIT! File to edit: ../../../nbs/99c_text-examples-glue-plain-pytorch.ipynb. | ||
|
||
# %% auto 0 | ||
__all__ = [] | ||
|
||
# %% ../nbs/99c_text-examples-glue-plain-pytorch.ipynb 4 | ||
# %% ../../../nbs/99c_text-examples-glue-plain-pytorch.ipynb 5 | ||
import warnings | ||
from dataclasses import dataclass | ||
|
||
import torch | ||
from fastai.text.all import * | ||
from transformers import * | ||
from transformers.utils import logging as hf_logging | ||
from datasets import load_dataset | ||
|
||
from ...text.data.core import * | ||
from ...text.modeling.core import * | ||
from ...text.utils import * | ||
from ...utils import * | ||
|
||
logging.set_verbosity_error() | ||
# %% ../../../nbs/99c_text-examples-glue-plain-pytorch.ipynb 7 | ||
# silence all the HF warnings | ||
warnings.simplefilter("ignore") | ||
hf_logging.set_verbosity_error() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.