trainfabric 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/dist/index.cjs +9468 -0
- package/package.json +37 -0
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Trainfabric CLI
|
|
2
|
+
|
|
3
|
+
Launch and monitor GPU training jobs on Trainfabric.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g trainfabric
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Authenticate
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
train login
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
For service-account flows:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
train config:set-api-key <api-key>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Secrets are stored in macOS Keychain when available. Other platforms use an encrypted file under `~/.trainfabric` with restricted permissions.
|
|
24
|
+
|
|
25
|
+
## Run A Job
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
train projects:list
|
|
29
|
+
train datasets:upload ./train.jsonl --project <projectId>
|
|
30
|
+
train runs:quote --summary --project <projectId> --dataset <datasetId> --model llama-3-8b
|
|
31
|
+
train runs:create --yes --project <projectId> --dataset <datasetId> --model llama-3-8b
|
|
32
|
+
train runs:watch <runId>
|
|
33
|
+
train runs:cost-breakdown <runId> --summary
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The CLI defaults to `https://api.trainfabric.com`. Override with:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
train config:set-base-url https://your-api.example.com
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Pricing, supplier costs, and profitability are estimates unless invoice-grade supplier reconciliation is explicitly configured.
|