Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3c143b

Browse files
yurekamiclaude
andcommitted
Remove hardcoded DEBUG logging level in gpt_oss.py (#15116)
The HFGPTOSSImporter.apply() method had a leftover debug statement `logging.setLevel(logging.DEBUG)` that forced verbose logging globally whenever importing GPT-OSS models from HuggingFace. This caused: - Excessive logs in production environments - Performance degradation from logging overhead - Loss of control over logging configuration The fix removes this hardcoded statement, allowing the logging level to be determined by the application's configuration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]> Signed-off-by: yurekami <[email protected]>
1 parent 1a3c291 commit c3c143b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

nemo/collections/llm/gpt/model/gpt_oss.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ class HFGPTOSSImporter(_BaseGPTOSSImporter):
230230

231231
# pylint: disable=C0115,C0116
232232
def apply(self, output_path: Path, trust_remote_code: bool | None = None) -> Path:
233-
logging.setLevel(logging.DEBUG)
234233
self.trust_remote_code = trust_remote_code
235234
source_state = self.hf_ckpt_load()
236235
source = _ModelState(source_state)

0 commit comments

Comments
 (0)