-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
38 lines (32 loc) · 1.04 KB
/
Program.cs
File metadata and controls
38 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using ukazure.llm;
using ukazure.llm.Lesson1;
using ukazure.llm.Lesson2;
using ukazure.llm.Lesson3;
using ukazure.llm.Lesson4;
using ukazure.llm.Lesson5;
using ukazure.llm.Lesson6;
using ukazure.llm.Lesson7;
using ukazure.llm.NanoGpt;
var commands = new Dictionary<string, ILesson>(StringComparer.OrdinalIgnoreCase)
{
["lesson1"] = new Lesson1Course(),
["lesson2"] = new Lesson2Course(),
["lesson3"] = new Lesson3Course(),
["lesson4"] = new Lesson4Course(),
["lesson5"] = new Lesson5Course(),
["lesson6"] = new Lesson6Course(),
["lesson7"] = new Lesson7Course(),
["nanogpt"] = new NanoGptCourse()
};
if (args.Length != 1 || !commands.TryGetValue(args[0], out var command))
{
Console.WriteLine("Usage: dotnet run lesson1|lesson2|lesson3|lesson4|lesson5|lesson6|lesson7|nanogpt");
Console.WriteLine();
Console.WriteLine("Available commands:");
foreach (var entry in commands.OrderBy(entry => entry.Key))
{
Console.WriteLine($" {entry.Key,-8} {entry.Value.Title}");
}
return;
}
command.Run();