Skip to content

feat(cli): Add real-time progress indicators during large corpus training #4

Description

@umran666

Description

When running python cli.py train --corpus data.txt --vocab-size 32000 on multi-gigabyte files, terminal feedback is currently logged on EM iteration boundaries. Adding a dynamic progress bar will improve the developer experience.

Scope of Work

  1. Integrate rich or tqdm in cli.py and unigram_trainer.py.
  2. Display real-time throughput (MB/s), EM step convergence $\Delta\mathcal{L}$, and current vocabulary pruning candidate count.

Getting Started

  • Files to edit: cli.py, unigram_trainer.py
  • Test command: python cli.py train --corpus tests/sample.txt --vocab-size 500

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions