Skip to content

Commit

Permalink
Merge pull request #148 from georgian-io/better-logging
Browse files Browse the repository at this point in the history
Better Handling of Logs and Warnings for UI
  • Loading branch information
benjaminye authored Apr 10, 2024
2 parents a57022b + 0ea4ea5 commit 98e1ad4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llmtune/cli/toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from pathlib import Path

import torch
import transformers
import typer
import yaml
from pydantic import ValidationError
from transformers import utils as hf_utils
from typing_extensions import Annotated

import llmtune
Expand All @@ -20,8 +20,9 @@
from llmtune.utils.save_utils import DirectoryHelper


hf_utils.logging.set_verbosity_error()
transformers.logging.set_verbosity(transformers.logging.CRITICAL)
torch._logging.set_logs(all=logging.CRITICAL)
logging.captureWarnings(True)


app = typer.Typer()
Expand Down

0 comments on commit 98e1ad4

Please sign in to comment.