Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
(cherry picked from commit c5b7716)
  • Loading branch information
plutonium-239 committed Aug 22, 2024
1 parent 51537c6 commit 9ae8507
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions experiments/util/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
AutoModelForSeq2SeqLM,
BartForConditionalGeneration,
)
from transformers import (
logging as tf_logging,
)
from transformers import logging as tf_logging
from transformers import utils as tf_utils

from memsave_torch.nn import (
MemSaveConv2d,
Expand Down Expand Up @@ -349,6 +348,8 @@ def __init__(

tf_logging.disable_progress_bar()
tf_logging.set_verbosity_error()
tf_utils.logging.captureWarnings(True)


hf_transformers_models_map = {
"gpt2": _HF_model("gpt2", {}, lm_head_name="lm_head"),
Expand Down

0 comments on commit 9ae8507

Please sign in to comment.