gen
Given a path to a pre-trained (.pt) MODEL, it writes an OUTPUT file with sequential data generated by the model autoregressivelyโi.e., feeding the output back as input.
The generated data can be written in any of the following formats: .txt, .llll, .json, or .csv.
Usageโ
hxmx gen <MODEL> [OUTPUT] [-n <INTEGER>] [-s <INTEGER>] [-d <CHOICE>] [--debug] [--help]
Argumentsโ
| Name | Type | Required | Default |
|---|---|---|---|
MODEL | path โ must exist, file | โ | โ |
OUTPUT | path โ file | out.csv |
Optionsโ
| Name | Type | Default | Description |
|---|---|---|---|
--tokens, -n | integer | 100 | Number of tokens to generate. |
--seed, -s | integer | 0 | Random seed. Use 0 for non-deterministic results. |
--device, -d | choice (auto|cpu| ...) | cpu | Computing device. To list all available devices, run hxmx devices. |
--debug | boolean | False | Debug mode. Includes traceback when an error is raised. |
-h, --help | boolean | False | Open web documentation in browser. |