tuningengines-cli 0.2.0 → 0.2.1
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 +206 -0
- package/package.json +13 -4
package/README.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# Tuning Engines CLI & MCP Server
|
|
2
|
+
|
|
3
|
+
Fine-tune large language models from your terminal or AI assistant. Train custom models on your code repositories with a single command.
|
|
4
|
+
|
|
5
|
+
**[Tuning Engines](https://tuningengines.com)** is a managed fine-tuning platform that handles GPU infrastructure, training orchestration, billing, and model storage — so you can focus on building better models.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- **Browser-based auth** — `te auth login` opens your browser to sign up or log in (like `gh auth login`)
|
|
10
|
+
- **Full training lifecycle** — create, monitor, cancel, and retry fine-tuning jobs
|
|
11
|
+
- **Model management** — list, import, export, and delete your trained models
|
|
12
|
+
- **Cost estimation** — get estimates before committing to a training run
|
|
13
|
+
- **S3 integration** — validate credentials and export models to your own S3 buckets
|
|
14
|
+
- **MCP server** — 18 tools for AI assistants (Claude, ChatGPT, Cursor, VS Code Copilot, etc.)
|
|
15
|
+
- **Billing** — check balance, open browser to add credits
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install -g tuningengines-cli
|
|
21
|
+
|
|
22
|
+
# Sign up or log in (opens browser)
|
|
23
|
+
te auth login
|
|
24
|
+
|
|
25
|
+
# Check your balance
|
|
26
|
+
te billing show
|
|
27
|
+
|
|
28
|
+
# Estimate cost for a training job
|
|
29
|
+
te jobs estimate --base-model meta-llama/Llama-3.1-8B --repo-url https://github.com/you/repo
|
|
30
|
+
|
|
31
|
+
# Create a training job
|
|
32
|
+
te jobs create --base-model meta-llama/Llama-3.1-8B \
|
|
33
|
+
--repo-url https://github.com/you/repo \
|
|
34
|
+
--output-name my-model
|
|
35
|
+
|
|
36
|
+
# Watch training progress
|
|
37
|
+
te jobs status <job-id> --watch
|
|
38
|
+
|
|
39
|
+
# List your trained models
|
|
40
|
+
te models list
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## MCP Server Setup
|
|
44
|
+
|
|
45
|
+
The CLI includes a built-in MCP server with 18 tools for AI-powered fine-tuning workflows.
|
|
46
|
+
|
|
47
|
+
### Claude Desktop
|
|
48
|
+
|
|
49
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"mcpServers": {
|
|
54
|
+
"tuning-engines": {
|
|
55
|
+
"command": "npx",
|
|
56
|
+
"args": ["-y", "tuningengines-cli", "mcp", "serve"],
|
|
57
|
+
"env": {
|
|
58
|
+
"TE_API_KEY": "te_your_key_here"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Claude Code
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
claude mcp add tuning-engines -- npx -y tuningengines-cli mcp serve
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### VS Code / Cursor / Windsurf
|
|
72
|
+
|
|
73
|
+
Add to your MCP settings (`.vscode/mcp.json` or equivalent):
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"servers": {
|
|
78
|
+
"tuning-engines": {
|
|
79
|
+
"command": "npx",
|
|
80
|
+
"args": ["-y", "tuningengines-cli", "mcp", "serve"],
|
|
81
|
+
"env": {
|
|
82
|
+
"TE_API_KEY": "te_your_key_here"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### ChatGPT
|
|
90
|
+
|
|
91
|
+
ChatGPT supports remote MCP servers. Add via Settings > Connectors with the Tuning Engines MCP URL.
|
|
92
|
+
|
|
93
|
+
## CLI Commands
|
|
94
|
+
|
|
95
|
+
### Authentication
|
|
96
|
+
|
|
97
|
+
| Command | Description |
|
|
98
|
+
|---------|-------------|
|
|
99
|
+
| `te auth login` | Sign up or log in via browser |
|
|
100
|
+
| `te auth logout` | Clear saved credentials |
|
|
101
|
+
| `te auth status` | Show current auth status |
|
|
102
|
+
|
|
103
|
+
### Training Jobs
|
|
104
|
+
|
|
105
|
+
| Command | Description |
|
|
106
|
+
|---------|-------------|
|
|
107
|
+
| `te jobs list` | List all training jobs |
|
|
108
|
+
| `te jobs show <id>` | Show job details |
|
|
109
|
+
| `te jobs create` | Submit a new training job |
|
|
110
|
+
| `te jobs status <id>` | Live job status (supports `--watch`) |
|
|
111
|
+
| `te jobs cancel <id>` | Cancel a running job |
|
|
112
|
+
| `te jobs retry <id>` | Retry from last checkpoint |
|
|
113
|
+
| `te jobs estimate` | Get cost estimate |
|
|
114
|
+
| `te jobs validate-s3` | Pre-validate S3 credentials |
|
|
115
|
+
|
|
116
|
+
### Models
|
|
117
|
+
|
|
118
|
+
| Command | Description |
|
|
119
|
+
|---------|-------------|
|
|
120
|
+
| `te models list` | List your trained models |
|
|
121
|
+
| `te models show <id>` | Show model details |
|
|
122
|
+
| `te models base` | List supported base models |
|
|
123
|
+
| `te models import` | Import a model from S3 |
|
|
124
|
+
| `te models export <id>` | Export a model to S3 |
|
|
125
|
+
| `te models delete <id>` | Delete a model |
|
|
126
|
+
| `te models status <id>` | Check import/export status |
|
|
127
|
+
|
|
128
|
+
### Billing & Account
|
|
129
|
+
|
|
130
|
+
| Command | Description |
|
|
131
|
+
|---------|-------------|
|
|
132
|
+
| `te billing show` | Show balance and transactions |
|
|
133
|
+
| `te billing add-credits` | Open browser to add credits |
|
|
134
|
+
| `te account` | Show account info |
|
|
135
|
+
|
|
136
|
+
### Configuration
|
|
137
|
+
|
|
138
|
+
| Command | Description |
|
|
139
|
+
|---------|-------------|
|
|
140
|
+
| `te config set-token <key>` | Set API key manually |
|
|
141
|
+
| `te config set-url <url>` | Override API URL |
|
|
142
|
+
| `te config show` | Show current config |
|
|
143
|
+
|
|
144
|
+
All commands support `--json` for machine-readable output.
|
|
145
|
+
|
|
146
|
+
## MCP Tools
|
|
147
|
+
|
|
148
|
+
The MCP server exposes these tools for AI assistants:
|
|
149
|
+
|
|
150
|
+
| Tool | Description |
|
|
151
|
+
|------|-------------|
|
|
152
|
+
| `list_jobs` | List training jobs with optional status filter |
|
|
153
|
+
| `show_job` | Get details of a specific training job |
|
|
154
|
+
| `create_job` | Submit a new fine-tuning job (supports `agent`, `quality_tier`) |
|
|
155
|
+
| `cancel_job` | Cancel a running or queued job |
|
|
156
|
+
| `job_status` | Get live status with GPU usage and charges |
|
|
157
|
+
| `retry_job` | Retry a failed job from its last checkpoint |
|
|
158
|
+
| `estimate_job` | Get cost estimate before submitting |
|
|
159
|
+
| `validate_s3` | Validate S3 credentials before job submission |
|
|
160
|
+
| `list_models` | List your trained and imported models |
|
|
161
|
+
| `show_model` | Get details of a specific model |
|
|
162
|
+
| `delete_model` | Delete a model from cloud storage |
|
|
163
|
+
| `import_model` | Import a model from S3 |
|
|
164
|
+
| `export_model` | Export a model to S3 |
|
|
165
|
+
| `model_status` | Check model import/export status |
|
|
166
|
+
| `list_supported_models` | List available base models for fine-tuning |
|
|
167
|
+
| `get_balance` | Check account balance and transactions |
|
|
168
|
+
| `get_account` | Get account information |
|
|
169
|
+
|
|
170
|
+
### Example Prompts
|
|
171
|
+
|
|
172
|
+
- "Fine-tune Llama 3.1 8B on my-org/my-repo and name it custom-model"
|
|
173
|
+
- "How much would 3 epochs of training cost for an 8B model?"
|
|
174
|
+
- "What's the status of my latest training job?"
|
|
175
|
+
- "Show my account balance"
|
|
176
|
+
- "List all my trained models"
|
|
177
|
+
- "Export my model to s3://my-bucket/models/"
|
|
178
|
+
|
|
179
|
+
## Environment Variables
|
|
180
|
+
|
|
181
|
+
| Variable | Description |
|
|
182
|
+
|----------|-------------|
|
|
183
|
+
| `TE_API_KEY` | API key (overrides config file) |
|
|
184
|
+
| `TE_API_URL` | API URL (default: `https://app.tuningengines.com`) |
|
|
185
|
+
|
|
186
|
+
## Authentication
|
|
187
|
+
|
|
188
|
+
`te auth login` uses a secure device authorization flow:
|
|
189
|
+
|
|
190
|
+
1. CLI generates a device code and opens your browser
|
|
191
|
+
2. You sign up or log in (email, Google, or GitHub)
|
|
192
|
+
3. Click "Authorize" to grant CLI access
|
|
193
|
+
4. Token flows back to CLI automatically — no copy-paste needed
|
|
194
|
+
|
|
195
|
+
Token is saved to `~/.tuningengines/config.json` with `0600` permissions.
|
|
196
|
+
|
|
197
|
+
## Links
|
|
198
|
+
|
|
199
|
+
- [Website](https://tuningengines.com)
|
|
200
|
+
- [Documentation](https://tuningengines.com)
|
|
201
|
+
- [GitHub](https://github.com/ockhamlabs/tuning-engines-cli)
|
|
202
|
+
- [npm](https://www.npmjs.com/package/tuningengines-cli)
|
|
203
|
+
|
|
204
|
+
## License
|
|
205
|
+
|
|
206
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tuningengines-cli",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "CLI for Tuning Engines — fine-tune LLMs from your terminal",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "CLI and MCP server for Tuning Engines — fine-tune LLMs from your terminal or AI assistant. Train custom models on code repos with browser-based auth, cost estimation, model management, and 18 MCP tools for Claude, ChatGPT, Cursor, and more.",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"te": "dist/cli.js"
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"node": ">=18.0.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
|
-
"dist"
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md"
|
|
27
28
|
],
|
|
28
29
|
"license": "MIT",
|
|
29
30
|
"mcpName": "io.github.cerebrixos/tuning-engines",
|
|
@@ -33,12 +34,20 @@
|
|
|
33
34
|
},
|
|
34
35
|
"keywords": [
|
|
35
36
|
"mcp",
|
|
37
|
+
"mcp-server",
|
|
38
|
+
"model-context-protocol",
|
|
36
39
|
"llm",
|
|
37
40
|
"fine-tuning",
|
|
41
|
+
"fine-tune",
|
|
38
42
|
"training",
|
|
39
43
|
"ai",
|
|
44
|
+
"claude",
|
|
45
|
+
"chatgpt",
|
|
46
|
+
"cursor",
|
|
40
47
|
"tuning-engines",
|
|
41
|
-
"
|
|
48
|
+
"machine-learning",
|
|
49
|
+
"lora",
|
|
50
|
+
"llama"
|
|
42
51
|
],
|
|
43
52
|
"homepage": "https://tuningengines.com"
|
|
44
53
|
}
|