blob: d6130b0471d5bded9061a82313dd65390df85e7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
[auth]
api_key_file = "~/.hyperstack"
[hyperstack]
base_url = "https://infrahub-api.nexgencloud.com/v1"
[state]
file = ".hyperstack-vm-photo-state.json"
[vm]
name_prefix = "hyperstack-photo"
hostname = "hyperstack-photo"
environment_name = "snonux-ollama"
# L40 (48GB GDDR6, ~$1.00/hr) is the recommended GPU for ComfyUI photo enhancement.
# It provides ample VRAM for SUPIR (FP16 needs ~12-20GB) + Real-ESRGAN with large tile sizes.
# Cheaper than A100 ($2/hr) while offering faster CUDA cores and FP8 support.
flavor_name = "n3-L40x1"
image_name = "Ubuntu Server 24.04 LTS R570 CUDA 12.8 with Docker"
assign_floating_ip = true
create_bootable_volume = false
enable_port_randomization = false
labels = ["comfyui", "photo-enhance", "wireguard"]
[ssh]
username = "ubuntu"
private_key_path = "~/.ssh/id_rsa"
hyperstack_key_name = "earth"
port = 22
connect_timeout_sec = 10
[network]
wireguard_udp_port = 56710
wireguard_subnet = "192.168.3.0/24"
# Photo VM uses .4; VM1=.1, VM2=.3 are the LLM VMs on the same wg1 tunnel.
wireguard_server_ip = "192.168.3.4"
# Reuse the same inference port constant; ComfyUI uses its own port 8188 below.
ollama_port = 11434
allowed_ssh_cidrs = ["auto"]
allowed_wireguard_cidrs = ["auto"]
[bootstrap]
enable_guest_bootstrap = true
install_wireguard = true
configure_ufw = true
configure_ollama_host = false
[ollama]
# Not needed on this VM; photo enhancement uses ComfyUI exclusively.
install = false
[vllm]
# Not needed on this VM; ComfyUI handles all inference.
install = false
[comfyui]
install = true
# ComfyUI REST API port — opened on the WireGuard subnet only.
port = 8188
# Model weights on ephemeral NVMe for fast access; survives reboots on Hyperstack.
models_dir = "/ephemeral/comfyui/models"
output_dir = "/ephemeral/comfyui/output"
container_name = "comfyui_photo"
# Pre-downloaded model weights:
# RealESRGAN_x4plus — fast 4x upscaling + sharpening (~65MB, upscale_models/)
# SUPIR-v0Q — SDXL-based photo restoration, Photolemur-quality results (~8GB, checkpoints/)
# SUPIR-v0F — SUPIR variant tuned for faithful fidelity over generative enhancement (~8GB)
models = ["RealESRGAN_x4plus", "SUPIR-v0Q"]
|