Riko0/messenger_logger_callback
messenger-logger-callback — Send ML training logs to Telegram. Standalone logger and Hugging Face Trainer callback. pip install messenger-logger-callback
What's novel
messenger-logger-callback — Send ML training logs to Telegram. Standalone logger and Hugging Face Trainer callback. pip install messenger-logger-callback
Code Analysis
8 files read · 3 roundsA Python library that sends ML training logs (metrics, lifecycle events, custom data) to a remote server via HTTP POST, with a background heartbeat thread for stalled-run detection, supporting both standalone use and Hugging Face Trainer callback integration.
Strengths
Clean three-layer architecture (engine → logger/callback → user) with a guaranteed-never-crash design via the _safe decorator and no-op fallbacks; tests are meaningful, covering payload structure, env var resolution, rank gating, heartbeat threading, and edge cases.
Weaknesses
The core logic is essentially HTTP POST with JSON payloads — no retry logic, no queuing, no batching; uses print() instead of the logging module; the transformers dependency is required even for standalone use despite the README suggesting otherwise.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
30
Contributors
1
Files
15
Active weeks
4
Repository
Language
Python
Stars
2
Forks
0
License
—