gen
Given a path to a pre-trained (.pt) MODEL, it writes an OUTPUT file with sequential data generated by the model auto-regressively—i.e., feeding the output back as input.
The generated data can be written in any of the following formats: .txt, .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 documentation in browser. |