Skip to content

Commit

Permalink
fix: transformers logging suppressed definitely
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Dec 5, 2024
1 parent f8a3514 commit f379d0f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 135 deletions.
4 changes: 4 additions & 0 deletions libertai_agents/libertai_agents/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import logging

# Disables the error about frameworks not installed
logging.getLogger("transformers").disabled = True
4 changes: 0 additions & 4 deletions libertai_agents/libertai_agents/models/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
from abc import ABC, abstractmethod
from typing import Literal

Expand All @@ -9,9 +8,6 @@
)
from libertai_agents.interfaces.tools import Tool

# Disables the error about models not available
logging.getLogger("transformers").disabled = True

ModelId = Literal[
"NousResearch/Hermes-3-Llama-3.1-8B", "mistralai/Mistral-Nemo-Instruct-2407"
]
Expand Down
Loading

0 comments on commit f379d0f

Please sign in to comment.