Duc Haba
commited on
Commit
·
7c557a7
1
Parent(s):
ff30d46
add in learner info
Browse files
app.py
CHANGED
@@ -512,6 +512,48 @@ class Pluto_Happy(object):
|
|
512 |
except ImportError:
|
513 |
self._pp("huggingface_hub", "*Warning* library not found.")
|
514 |
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
515 |
#
|
516 |
# add module/method
|
517 |
#
|
|
|
512 |
except ImportError:
|
513 |
self._pp("huggingface_hub", "*Warning* library not found.")
|
514 |
return
|
515 |
+
#
|
516 |
+
def print_learner_meta_info(self, learner):
|
517 |
+
"""
|
518 |
+
Print all the leaner meta data and more.
|
519 |
+
|
520 |
+
Args: None
|
521 |
+
|
522 |
+
Return: None
|
523 |
+
"""
|
524 |
+
self._ph()
|
525 |
+
self._pp("Name", learner._meta_project_name)
|
526 |
+
self._ph()
|
527 |
+
self._pp("Error_rate", learner._meta_error_rate)
|
528 |
+
self._pp("Base Model", learner._meta_base_model_name)
|
529 |
+
self._pp("Data Source", learner._meta_data_source)
|
530 |
+
self._pp("Data Info", learner._meta_data_info)
|
531 |
+
try:
|
532 |
+
t = time.strftime('%Y-%b-%d %H:%M:%S %p', time.gmtime(learner._meta_training_unix_time))
|
533 |
+
except Exception as e:
|
534 |
+
t = learner._meta_training_unix_time
|
535 |
+
self._pp("Time Stamp", t)
|
536 |
+
# self._pp("Time Stamp", learner._meta_training_unix_time)
|
537 |
+
self._pp("Learning Rate", learner.lr)
|
538 |
+
self._pp("Base Learning Rate", learner._meta_base_lr)
|
539 |
+
self._pp("Batch Size", learner.dls.bs)
|
540 |
+
self._pp("Momentum", learner.moms)
|
541 |
+
self._pp("AI Dev Stack", learner._meta_ai_dev_stack)
|
542 |
+
self._pp("Learner Vocab", learner.dls.vocab)
|
543 |
+
self._pp("Learner Vocab Size", len(learner.dls.vocab))
|
544 |
+
#
|
545 |
+
self._ph()
|
546 |
+
self._pp("Author", learner._meta_author)
|
547 |
+
self._pp("AI Assistant", learner._meta_ai_assistant)
|
548 |
+
self._pp("GenAI Coder", learner._meta_genai)
|
549 |
+
self._pp("[Friends] Human Coder", learner._meta_human_coder)
|
550 |
+
self._pp("License", learner._meta_license)
|
551 |
+
#
|
552 |
+
self._ph()
|
553 |
+
self._pp("Conclusion", learner._meta_notes)
|
554 |
+
self._ph()
|
555 |
+
return
|
556 |
+
#
|
557 |
#
|
558 |
# add module/method
|
559 |
#
|