remote-ollama-herd-bridge 0.1.10.post1.dev0__tar.gz
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.
- remote_ollama_herd_bridge-0.1.10.post1.dev0/.python-version +1 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/PKG-INFO +306 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/README.md +296 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/instance.json +129 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/pyproject.toml +29 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/setup.cfg +4 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/remote_ollama_herd_bridge.egg-info/PKG-INFO +306 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/remote_ollama_herd_bridge.egg-info/SOURCES.txt +19 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/remote_ollama_herd_bridge.egg-info/dependency_links.txt +1 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/remote_ollama_herd_bridge.egg-info/entry_points.txt +2 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/remote_ollama_herd_bridge.egg-info/requires.txt +2 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/remote_ollama_herd_bridge.egg-info/scm_file_list.json +23 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/remote_ollama_herd_bridge.egg-info/scm_version.json +8 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/remote_ollama_herd_bridge.egg-info/top_level.txt +1 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/rohb/__init__.py +0 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/rohb/cli.py +328 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/rohb/herd.py +16 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/rohb/identify.py +169 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/rohb/models.py +154 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/src/rohb/tunnel.py +144 -0
- remote_ollama_herd_bridge-0.1.10.post1.dev0/uv.lock +2551 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: remote-ollama-herd-bridge
|
|
3
|
+
Version: 0.1.10.post1.dev0
|
|
4
|
+
Summary: Bridge remote Ollama nodes into a local Ollama Herd deployment
|
|
5
|
+
Author-email: Dyllan Macias <Dyllan.Macias@Cataclysma.com>
|
|
6
|
+
Requires-Python: >=3.12
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Requires-Dist: ollama-herd>=0.12.12
|
|
9
|
+
Requires-Dist: vastai>=1.11.2
|
|
10
|
+
|
|
11
|
+
# ROHB
|
|
12
|
+
|
|
13
|
+
**Remote Ollama Herd Bridge**
|
|
14
|
+
|
|
15
|
+
ROHB is a lightweight bridge between **Vast.ai** and **Ollama Herd**.
|
|
16
|
+
|
|
17
|
+
It discovers Vast.ai instances, establishes secure SSH tunnels to remote Ollama nodes, waits for connectivity, and then launches `herd-node` using the tunneled endpoint.
|
|
18
|
+
|
|
19
|
+
The goal is to allow cloud-hosted Ollama instances to participate in a local Ollama Herd deployment without requiring direct network exposure.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
|
|
25
|
+
- Vast.ai instance discovery
|
|
26
|
+
- Instance selection by ID
|
|
27
|
+
- Instance selection by label
|
|
28
|
+
- Automatic discovery of running instances
|
|
29
|
+
- SSH tunnel management
|
|
30
|
+
- Readiness checks
|
|
31
|
+
- Ollama Herd integration
|
|
32
|
+
- Environment variable support
|
|
33
|
+
- CLI argument overrides
|
|
34
|
+
- Local development friendly
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
### Using uv
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
uv add remote-ollama-herd-bridge
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Development
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
git clone https://github.com/DellanX/remote-ollama-herd-bridge.git
|
|
50
|
+
cd rohb
|
|
51
|
+
|
|
52
|
+
uv sync
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Run the CLI:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
uv run rohb run
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Concepts
|
|
64
|
+
|
|
65
|
+
ROHB manages three stages:
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
identify
|
|
69
|
+
↓
|
|
70
|
+
tunnel
|
|
71
|
+
↓
|
|
72
|
+
herd-node
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Identify
|
|
76
|
+
|
|
77
|
+
Resolve a target Vast.ai instance.
|
|
78
|
+
|
|
79
|
+
Sources are checked in the following order:
|
|
80
|
+
|
|
81
|
+
```text
|
|
82
|
+
1. Manual host/port
|
|
83
|
+
2. Instance ID
|
|
84
|
+
3. Instance label
|
|
85
|
+
4. First running instance
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Tunnel
|
|
89
|
+
|
|
90
|
+
Create an SSH tunnel from a local port to the remote Ollama instance.
|
|
91
|
+
|
|
92
|
+
Example:
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
localhost:11434
|
|
96
|
+
↓
|
|
97
|
+
vast.ai instance
|
|
98
|
+
↓
|
|
99
|
+
localhost:11434
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Herd
|
|
103
|
+
|
|
104
|
+
Launches `herd-node` using the local side of the tunnel.
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Commands
|
|
109
|
+
|
|
110
|
+
### Run
|
|
111
|
+
|
|
112
|
+
Default Command:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
rohb run
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Startup flow:
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
identify
|
|
122
|
+
↓
|
|
123
|
+
tunnel
|
|
124
|
+
↓
|
|
125
|
+
wait
|
|
126
|
+
↓
|
|
127
|
+
herd-node
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
### Identify
|
|
133
|
+
|
|
134
|
+
Discover the target instance.
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
rohb identify
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Example output:
|
|
141
|
+
|
|
142
|
+
```json
|
|
143
|
+
{
|
|
144
|
+
"id": 123456,
|
|
145
|
+
"host": "1.2.3.4",
|
|
146
|
+
"port": 40222,
|
|
147
|
+
"label": "router",
|
|
148
|
+
"status": "running"
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
### Tunnel
|
|
155
|
+
|
|
156
|
+
Create and validate an SSH tunnel.
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
rohb tunnel
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Or manually specify a target:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
rohb tunnel \
|
|
166
|
+
--host 1.2.3.4 \
|
|
167
|
+
--port 40222
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
### Herd
|
|
173
|
+
|
|
174
|
+
Launch Herd directly.
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
rohb herd
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Useful for testing an existing tunnel.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Configuration
|
|
185
|
+
|
|
186
|
+
### Vast.ai Discovery
|
|
187
|
+
|
|
188
|
+
| Variable | Description |
|
|
189
|
+
|-----------|-------------|
|
|
190
|
+
| `VASTAI_API_KEY` | Vast.ai API key |
|
|
191
|
+
| `VASTAI_INSTANCE_ID` | Direct instance selection |
|
|
192
|
+
| `VASTAI_INSTANCE_LABEL` | Instance label |
|
|
193
|
+
| `VASTAI_INSTANCE_INDEX` | Index within matching labels |
|
|
194
|
+
| `VASTAI_HOST` | Manual host override |
|
|
195
|
+
| `VASTAI_PORT` | Manual port override |
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
### Tunnel
|
|
200
|
+
|
|
201
|
+
| Variable | Description |
|
|
202
|
+
|-----------|-------------|
|
|
203
|
+
| `SSH_USER` | SSH username |
|
|
204
|
+
| `SSH_IDENTITY_FILE` | SSH private key path |
|
|
205
|
+
| `LOCAL_HOST` | Local bind address |
|
|
206
|
+
| `LOCAL_PORT` | Local bind port |
|
|
207
|
+
| `REMOTE_HOST` | Remote host |
|
|
208
|
+
| `REMOTE_PORT` | Remote port |
|
|
209
|
+
| `WAIT_INTERVAL` | Seconds between readiness checks |
|
|
210
|
+
| `WAIT_MAX_RETRIES` | Maximum readiness attempts |
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
### Herd
|
|
215
|
+
|
|
216
|
+
| Variable | Description |
|
|
217
|
+
|-----------|-------------|
|
|
218
|
+
| `NODE_ID` | Herd node identifier |
|
|
219
|
+
| `ROUTER_URL` | Herd router URL |
|
|
220
|
+
| `LEARN_CAPACITY` | Enable adaptive capacity learning |
|
|
221
|
+
| `LOG_LEVEL` | Logging level |
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Examples
|
|
226
|
+
|
|
227
|
+
### Connect to a Specific Vast.ai Instance
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
rohb run \
|
|
231
|
+
--instance-id 12345678
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Connect by Label
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
rohb run \
|
|
238
|
+
--instance-label inference
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Skip Discovery Completely
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
rohb run \
|
|
245
|
+
--host 1.2.3.4 \
|
|
246
|
+
--port 40222
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Use a Specific SSH Identity
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
rohb run \
|
|
253
|
+
--ssh-identity-file ~/.ssh/id_ed25519
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Custom Tunnel Port
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
rohb run \
|
|
260
|
+
--local-port 11435
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Architecture
|
|
266
|
+
|
|
267
|
+
```text
|
|
268
|
+
+-------------+
|
|
269
|
+
| Ollama Herd |
|
|
270
|
+
| Router |
|
|
271
|
+
+------+------+
|
|
272
|
+
^
|
|
273
|
+
|
|
|
274
|
+
|
|
|
275
|
+
+------+------+
|
|
276
|
+
| ROHB |
|
|
277
|
+
| SSH Tunnel |
|
|
278
|
+
+------+------+
|
|
279
|
+
|
|
|
280
|
+
|
|
|
281
|
+
v
|
|
282
|
+
+------+------+
|
|
283
|
+
| Vast.ai |
|
|
284
|
+
| Ollama Node |
|
|
285
|
+
+-------------+
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## Security
|
|
291
|
+
|
|
292
|
+
ROHB does not store credentials.
|
|
293
|
+
|
|
294
|
+
Recommended authentication:
|
|
295
|
+
|
|
296
|
+
```text
|
|
297
|
+
SSH public/private keys
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Avoid password-based authentication whenever possible.
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## License
|
|
305
|
+
|
|
306
|
+
MIT
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
# ROHB
|
|
2
|
+
|
|
3
|
+
**Remote Ollama Herd Bridge**
|
|
4
|
+
|
|
5
|
+
ROHB is a lightweight bridge between **Vast.ai** and **Ollama Herd**.
|
|
6
|
+
|
|
7
|
+
It discovers Vast.ai instances, establishes secure SSH tunnels to remote Ollama nodes, waits for connectivity, and then launches `herd-node` using the tunneled endpoint.
|
|
8
|
+
|
|
9
|
+
The goal is to allow cloud-hosted Ollama instances to participate in a local Ollama Herd deployment without requiring direct network exposure.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- Vast.ai instance discovery
|
|
16
|
+
- Instance selection by ID
|
|
17
|
+
- Instance selection by label
|
|
18
|
+
- Automatic discovery of running instances
|
|
19
|
+
- SSH tunnel management
|
|
20
|
+
- Readiness checks
|
|
21
|
+
- Ollama Herd integration
|
|
22
|
+
- Environment variable support
|
|
23
|
+
- CLI argument overrides
|
|
24
|
+
- Local development friendly
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
### Using uv
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
uv add remote-ollama-herd-bridge
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Development
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
git clone https://github.com/DellanX/remote-ollama-herd-bridge.git
|
|
40
|
+
cd rohb
|
|
41
|
+
|
|
42
|
+
uv sync
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Run the CLI:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
uv run rohb run
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Concepts
|
|
54
|
+
|
|
55
|
+
ROHB manages three stages:
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
identify
|
|
59
|
+
↓
|
|
60
|
+
tunnel
|
|
61
|
+
↓
|
|
62
|
+
herd-node
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Identify
|
|
66
|
+
|
|
67
|
+
Resolve a target Vast.ai instance.
|
|
68
|
+
|
|
69
|
+
Sources are checked in the following order:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
1. Manual host/port
|
|
73
|
+
2. Instance ID
|
|
74
|
+
3. Instance label
|
|
75
|
+
4. First running instance
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Tunnel
|
|
79
|
+
|
|
80
|
+
Create an SSH tunnel from a local port to the remote Ollama instance.
|
|
81
|
+
|
|
82
|
+
Example:
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
localhost:11434
|
|
86
|
+
↓
|
|
87
|
+
vast.ai instance
|
|
88
|
+
↓
|
|
89
|
+
localhost:11434
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Herd
|
|
93
|
+
|
|
94
|
+
Launches `herd-node` using the local side of the tunnel.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Commands
|
|
99
|
+
|
|
100
|
+
### Run
|
|
101
|
+
|
|
102
|
+
Default Command:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
rohb run
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Startup flow:
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
identify
|
|
112
|
+
↓
|
|
113
|
+
tunnel
|
|
114
|
+
↓
|
|
115
|
+
wait
|
|
116
|
+
↓
|
|
117
|
+
herd-node
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
### Identify
|
|
123
|
+
|
|
124
|
+
Discover the target instance.
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
rohb identify
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Example output:
|
|
131
|
+
|
|
132
|
+
```json
|
|
133
|
+
{
|
|
134
|
+
"id": 123456,
|
|
135
|
+
"host": "1.2.3.4",
|
|
136
|
+
"port": 40222,
|
|
137
|
+
"label": "router",
|
|
138
|
+
"status": "running"
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
### Tunnel
|
|
145
|
+
|
|
146
|
+
Create and validate an SSH tunnel.
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
rohb tunnel
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Or manually specify a target:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
rohb tunnel \
|
|
156
|
+
--host 1.2.3.4 \
|
|
157
|
+
--port 40222
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
### Herd
|
|
163
|
+
|
|
164
|
+
Launch Herd directly.
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
rohb herd
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Useful for testing an existing tunnel.
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## Configuration
|
|
175
|
+
|
|
176
|
+
### Vast.ai Discovery
|
|
177
|
+
|
|
178
|
+
| Variable | Description |
|
|
179
|
+
|-----------|-------------|
|
|
180
|
+
| `VASTAI_API_KEY` | Vast.ai API key |
|
|
181
|
+
| `VASTAI_INSTANCE_ID` | Direct instance selection |
|
|
182
|
+
| `VASTAI_INSTANCE_LABEL` | Instance label |
|
|
183
|
+
| `VASTAI_INSTANCE_INDEX` | Index within matching labels |
|
|
184
|
+
| `VASTAI_HOST` | Manual host override |
|
|
185
|
+
| `VASTAI_PORT` | Manual port override |
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
### Tunnel
|
|
190
|
+
|
|
191
|
+
| Variable | Description |
|
|
192
|
+
|-----------|-------------|
|
|
193
|
+
| `SSH_USER` | SSH username |
|
|
194
|
+
| `SSH_IDENTITY_FILE` | SSH private key path |
|
|
195
|
+
| `LOCAL_HOST` | Local bind address |
|
|
196
|
+
| `LOCAL_PORT` | Local bind port |
|
|
197
|
+
| `REMOTE_HOST` | Remote host |
|
|
198
|
+
| `REMOTE_PORT` | Remote port |
|
|
199
|
+
| `WAIT_INTERVAL` | Seconds between readiness checks |
|
|
200
|
+
| `WAIT_MAX_RETRIES` | Maximum readiness attempts |
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
### Herd
|
|
205
|
+
|
|
206
|
+
| Variable | Description |
|
|
207
|
+
|-----------|-------------|
|
|
208
|
+
| `NODE_ID` | Herd node identifier |
|
|
209
|
+
| `ROUTER_URL` | Herd router URL |
|
|
210
|
+
| `LEARN_CAPACITY` | Enable adaptive capacity learning |
|
|
211
|
+
| `LOG_LEVEL` | Logging level |
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## Examples
|
|
216
|
+
|
|
217
|
+
### Connect to a Specific Vast.ai Instance
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
rohb run \
|
|
221
|
+
--instance-id 12345678
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Connect by Label
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
rohb run \
|
|
228
|
+
--instance-label inference
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Skip Discovery Completely
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
rohb run \
|
|
235
|
+
--host 1.2.3.4 \
|
|
236
|
+
--port 40222
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Use a Specific SSH Identity
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
rohb run \
|
|
243
|
+
--ssh-identity-file ~/.ssh/id_ed25519
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Custom Tunnel Port
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
rohb run \
|
|
250
|
+
--local-port 11435
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## Architecture
|
|
256
|
+
|
|
257
|
+
```text
|
|
258
|
+
+-------------+
|
|
259
|
+
| Ollama Herd |
|
|
260
|
+
| Router |
|
|
261
|
+
+------+------+
|
|
262
|
+
^
|
|
263
|
+
|
|
|
264
|
+
|
|
|
265
|
+
+------+------+
|
|
266
|
+
| ROHB |
|
|
267
|
+
| SSH Tunnel |
|
|
268
|
+
+------+------+
|
|
269
|
+
|
|
|
270
|
+
|
|
|
271
|
+
v
|
|
272
|
+
+------+------+
|
|
273
|
+
| Vast.ai |
|
|
274
|
+
| Ollama Node |
|
|
275
|
+
+-------------+
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## Security
|
|
281
|
+
|
|
282
|
+
ROHB does not store credentials.
|
|
283
|
+
|
|
284
|
+
Recommended authentication:
|
|
285
|
+
|
|
286
|
+
```text
|
|
287
|
+
SSH public/private keys
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
Avoid password-based authentication whenever possible.
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## License
|
|
295
|
+
|
|
296
|
+
MIT
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actual_status": "exited",
|
|
3
|
+
"bundle_id": null,
|
|
4
|
+
"bw_nvlink": 0.0,
|
|
5
|
+
"client_run_time": 100000000.0,
|
|
6
|
+
"compute_cap": 750,
|
|
7
|
+
"cpu_arch": "amd64",
|
|
8
|
+
"cpu_cores": 2,
|
|
9
|
+
"cpu_cores_effective": null,
|
|
10
|
+
"cpu_name": "QEMU Virtual version 2.5+",
|
|
11
|
+
"cpu_ram": 7942,
|
|
12
|
+
"cpu_util": 0.0,
|
|
13
|
+
"credit_balance": null,
|
|
14
|
+
"credit_discount": null,
|
|
15
|
+
"credit_discount_max": null,
|
|
16
|
+
"cuda_max_good": 13.0,
|
|
17
|
+
"cur_state": "stopped",
|
|
18
|
+
"direct_port_count": 0,
|
|
19
|
+
"direct_port_end": 50938,
|
|
20
|
+
"direct_port_start": 50938,
|
|
21
|
+
"disk_bw": 779.0,
|
|
22
|
+
"disk_name": "QEMU HARDDISK",
|
|
23
|
+
"disk_space": null,
|
|
24
|
+
"disk_usage": 0.0007360000163316727,
|
|
25
|
+
"disk_util": 0.0007360000163316727,
|
|
26
|
+
"dlperf": null,
|
|
27
|
+
"dlperf_per_dphtotal": null,
|
|
28
|
+
"dph_base": 0.05466666666666667,
|
|
29
|
+
"dph_total": 0.05466666666666667,
|
|
30
|
+
"driver_version": "580.178.04",
|
|
31
|
+
"duration": 523365.0346932411,
|
|
32
|
+
"end_date": null,
|
|
33
|
+
"external": false,
|
|
34
|
+
"extra_env": {},
|
|
35
|
+
"flops_per_dphtotal": 191.28819512195122,
|
|
36
|
+
"geolocation": "Colorado, US",
|
|
37
|
+
"gpu_arch": "nvidia",
|
|
38
|
+
"gpu_display_active": false,
|
|
39
|
+
"gpu_frac": null,
|
|
40
|
+
"gpu_lanes": 16,
|
|
41
|
+
"gpu_mem_bw": 366.4,
|
|
42
|
+
"gpu_name": "RTX 2080",
|
|
43
|
+
"gpu_ram": 8192,
|
|
44
|
+
"gpu_temp": 54.999947,
|
|
45
|
+
"gpu_totalram": 8192,
|
|
46
|
+
"gpu_util": 99.999908,
|
|
47
|
+
"has_avx": 0,
|
|
48
|
+
"host_id": 527274,
|
|
49
|
+
"host_run_time": 1.0,
|
|
50
|
+
"hosting_type": null,
|
|
51
|
+
"id": 60843434,
|
|
52
|
+
"image_args": [
|
|
53
|
+
"--router-url http://192.168.0.79:11435",
|
|
54
|
+
"-e",
|
|
55
|
+
"HERD_ROUTER_URL=http://192.168.0.79:11435"
|
|
56
|
+
],
|
|
57
|
+
"image_runtype": "args",
|
|
58
|
+
"image_uuid": "ghcr.io/dellanx/vast-herd-node:latest",
|
|
59
|
+
"inet_down": 320.2,
|
|
60
|
+
"inet_down_billed": null,
|
|
61
|
+
"inet_down_cost": null,
|
|
62
|
+
"inet_up": 12.6,
|
|
63
|
+
"inet_up_billed": null,
|
|
64
|
+
"inet_up_cost": null,
|
|
65
|
+
"instance": {
|
|
66
|
+
"gpuCostPerHour": 0,
|
|
67
|
+
"diskHour": 0.0,
|
|
68
|
+
"slaPremiumPerHour": 0,
|
|
69
|
+
"totalHour": 0.0,
|
|
70
|
+
"discountTotalHour": 0,
|
|
71
|
+
"discountedTotalPerHour": 0.0
|
|
72
|
+
},
|
|
73
|
+
"intended_status": "stopped",
|
|
74
|
+
"internet_down_cost_per_tb": 0.0,
|
|
75
|
+
"internet_up_cost_per_tb": 0.0,
|
|
76
|
+
"is_bid": true,
|
|
77
|
+
"jupyter_token": null,
|
|
78
|
+
"label": null,
|
|
79
|
+
"local_ipaddrs": "192.168.0.26 172.17.0.1 fd48:a8d5:ccaf:8312:be24:11ff:fe4a:719c",
|
|
80
|
+
"logo": "/static/logos/vastai_small2.png",
|
|
81
|
+
"machine_dir_ssh_port": 50999,
|
|
82
|
+
"machine_id": 149439,
|
|
83
|
+
"mem_limit": 7.805599744,
|
|
84
|
+
"mem_usage": 0.918528,
|
|
85
|
+
"min_bid": 0.06422222,
|
|
86
|
+
"mobo_name": null,
|
|
87
|
+
"next_state": "stopped",
|
|
88
|
+
"num_gpus": 1,
|
|
89
|
+
"onstart": null,
|
|
90
|
+
"os_version": "24.04",
|
|
91
|
+
"pci_gen": 3.0,
|
|
92
|
+
"pcie_bw": 12.5,
|
|
93
|
+
"public_ipaddr": "24.52.20.38",
|
|
94
|
+
"reliability2": 0.9912832,
|
|
95
|
+
"rentable": true,
|
|
96
|
+
"score": null,
|
|
97
|
+
"search": {
|
|
98
|
+
"gpuCostPerHour": 0.05466666666666667,
|
|
99
|
+
"diskHour": 0.0,
|
|
100
|
+
"slaPremiumPerHour": 0.0,
|
|
101
|
+
"totalHour": 0.05466666666666667,
|
|
102
|
+
"discountTotalHour": 0,
|
|
103
|
+
"discountedTotalPerHour": 0.05466666666666667
|
|
104
|
+
},
|
|
105
|
+
"sla_r_claim": null,
|
|
106
|
+
"sla_sigma_x": null,
|
|
107
|
+
"ssh_host": null,
|
|
108
|
+
"ssh_idx": null,
|
|
109
|
+
"ssh_port": null,
|
|
110
|
+
"start_date": 1794780364.3835378,
|
|
111
|
+
"static_ip": true,
|
|
112
|
+
"status_msg": "success, running ghcr.io/dellanx/vast-herd-node:latest",
|
|
113
|
+
"storage_cost": null,
|
|
114
|
+
"storage_total_cost": 0.0,
|
|
115
|
+
"target_reliability": null,
|
|
116
|
+
"template_hash_id": null,
|
|
117
|
+
"template_id": null,
|
|
118
|
+
"time_remaining": "Unlimited",
|
|
119
|
+
"time_remaining_isbid": "Unlimited",
|
|
120
|
+
"total_flops": 10.457088,
|
|
121
|
+
"uptime_mins": 4633.00298640728,
|
|
122
|
+
"verification": "unverified",
|
|
123
|
+
"vmem_usage": 4.687496,
|
|
124
|
+
"vram_costperhour": 6.673177083333334e-06,
|
|
125
|
+
"webpage": null,
|
|
126
|
+
"country_code": "US",
|
|
127
|
+
"volume_info": [],
|
|
128
|
+
"template_name": null
|
|
129
|
+
}
|