You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tool/src/main.rs
+115-14
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ struct Cli {
31
31
enumCommands{
32
32
/// Train a VW model file. Currently only single pass and DSJSON input format is supported.
33
33
Train(Train),
34
+
/// Train a VW model file without any parallelization. Currently only single pass and DSJSON input format is supported.
35
+
TrainOneThread(TrainOneThread),
34
36
}
35
37
36
38
#[derive(Parser,Debug)]
@@ -89,6 +91,41 @@ struct Train {
89
91
parse_threads:usize,
90
92
}
91
93
94
+
#[derive(Parser,Debug)]
95
+
structTrainOneThread{
96
+
#[clap(
97
+
short,
98
+
long,
99
+
parse(from_os_str),
100
+
help = "List of input files to process"
101
+
)]
102
+
input:Vec<PathBuf>,
103
+
104
+
#[clap(long, value_enum, default_value_t = InputFormat::Dsjson, help="Input format to interpret input files as")]
105
+
input_format:InputFormat,
106
+
107
+
#[clap(
108
+
short,
109
+
long,
110
+
parse(from_os_str),
111
+
help = "If provided, writes the final trained model to this file"
112
+
)]
113
+
output_model:Option<PathBuf>,
114
+
115
+
#[clap(
116
+
long,
117
+
parse(from_os_str),
118
+
help = "If provided, writes the final trained model as a readable model to this file. This is the same format as VW's --readable_model ..."
119
+
)]
120
+
readable_model:Option<PathBuf>,
121
+
122
+
#[clap(
123
+
long,
124
+
help = "VW arguments to use for model training. Some arguments are not permitted as they are for driver configuration in VW or managed by this tool. For example you cannot supply --data yourself."
0 commit comments