mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-04-30 10:13:57 -05:00
Improve CLI command output formatting and messaging
This commit is contained in:
@@ -89,7 +89,7 @@ class LogoCommand(BaseCommand):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# The philosophy
|
# The philosophy
|
||||||
explanation.append("The Philosophy 💡\n", style="bold green")
|
explanation.append("The Philosophy 💡\n", style="bold yellow")
|
||||||
explanation.append(
|
explanation.append(
|
||||||
"TinyTorch embodies the belief that anyone can understand ML systems by building them. "
|
"TinyTorch embodies the belief that anyone can understand ML systems by building them. "
|
||||||
"Start small, understand deeply, build everything. What begins as a tiny flame of "
|
"Start small, understand deeply, build everything. What begins as a tiny flame of "
|
||||||
@@ -102,24 +102,23 @@ class LogoCommand(BaseCommand):
|
|||||||
explanation.append("Professor Vijay Janapa Reddi\n", style="bold cyan")
|
explanation.append("Professor Vijay Janapa Reddi\n", style="bold cyan")
|
||||||
explanation.append(" Harvard University • CS 249R: Tiny Machine Learning\n\n", style="dim")
|
explanation.append(" Harvard University • CS 249R: Tiny Machine Learning\n\n", style="dim")
|
||||||
|
|
||||||
# Make the entire message italic for a more personal, conversational feel
|
# Personal message - flows naturally, only the tagline pops
|
||||||
explanation.append(
|
explanation.append(
|
||||||
"TinyTorch grew from the TinyML movement that started at Harvard in CS 249R. As I taught "
|
"TinyTorch grew from the TinyML movement that started at Harvard in CS 249R. As I taught "
|
||||||
"thousands of students, both online and in person, I realized something was missing: there "
|
"thousands of students, both online and in person, I realized something was missing: there "
|
||||||
"was no way to truly ",
|
"was no way to truly engineer ML systems from the ground up. So that's why I built "
|
||||||
|
"TinyTorch—a hands-on companion to ",
|
||||||
style="italic dim"
|
style="italic dim"
|
||||||
)
|
)
|
||||||
explanation.append("engineer", style="italic yellow")
|
explanation.append("www.mlsysbook.ai", style="italic magenta")
|
||||||
explanation.append(
|
explanation.append(
|
||||||
" ML systems from the ground up. So that's why I built TinyTorch—a framework where you "
|
", where you don't just import libraries, you engineer every component yourself. "
|
||||||
"don't just import libraries, you engineer every component yourself. Think of it as "
|
"Think of it as building the Lego blocks for your favorite Star Wars set.\n\n",
|
||||||
"building the Lego blocks for your favorite Star Wars set.\n\n",
|
|
||||||
style="italic dim"
|
style="italic dim"
|
||||||
)
|
)
|
||||||
|
explanation.append("So don't just ", style="bold cyan")
|
||||||
# Single powerful statement combining both catchphrases
|
explanation.append("\"import torch\"", style="white")
|
||||||
explanation.append("The future of ML is tiny and bright—", style="bold yellow")
|
explanation.append(", build it.", style="bold cyan")
|
||||||
explanation.append("don't just \"import torch\", build it.", style="bold cyan")
|
|
||||||
explanation.append("\n\n", style="dim")
|
explanation.append("\n\n", style="dim")
|
||||||
|
|
||||||
# Display in a nice panel
|
# Display in a nice panel
|
||||||
|
|||||||
@@ -941,15 +941,12 @@ class MilestoneCommand(BaseCommand):
|
|||||||
console.print(f"\n[bold cyan]🔍 Checking prerequisites for Milestone {milestone_id}...[/bold cyan]\n")
|
console.print(f"\n[bold cyan]🔍 Checking prerequisites for Milestone {milestone_id}...[/bold cyan]\n")
|
||||||
|
|
||||||
# Check module completion status using module workflow
|
# Check module completion status using module workflow
|
||||||
from .module_workflow import ModuleWorkflowCommand
|
from .module.workflow import ModuleWorkflowCommand
|
||||||
from .source import SourceCommand
|
from .src import SrcCommand
|
||||||
from .test import TestCommand
|
from .test import TestCommand
|
||||||
|
|
||||||
module_workflow = ModuleWorkflowCommand(self.config)
|
module_workflow = ModuleWorkflowCommand(self.config)
|
||||||
progress_data = module_workflow.get_progress_data()
|
progress_data = module_workflow.get_progress_data()
|
||||||
# Use module workflow for checking completion status
|
|
||||||
from .src import SrcCommand
|
|
||||||
from .test import TestCommand
|
|
||||||
|
|
||||||
source_cmd = SrcCommand(self.config)
|
source_cmd = SrcCommand(self.config)
|
||||||
test_cmd = TestCommand(self.config)
|
test_cmd = TestCommand(self.config)
|
||||||
|
|||||||
Reference in New Issue
Block a user