Deploy MEGAMIND CYBERTRON with updated binary
Browse files- .gitattributes +1 -0
- Dockerfile +26 -0
- README.md +12 -9
- config.json +12 -0
- megamind +3 -0
- startup.sh +17 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
megamind filter=lfs diff=lfs merge=lfs -text
|
Dockerfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM alpine:3.19
|
| 2 |
+
|
| 3 |
+
# Install dependencies
|
| 4 |
+
RUN apk add --no-cache ca-certificates curl iptables ip6tables iproute2 bash
|
| 5 |
+
|
| 6 |
+
# Install Tailscale
|
| 7 |
+
RUN curl -fsSL https://pkgs.tailscale.com/stable/tailscale_1.56.1_amd64.tgz | tar xz -C /usr/local/bin --strip-components=1
|
| 8 |
+
|
| 9 |
+
# Create user
|
| 10 |
+
RUN adduser -D -u 1000 megamind
|
| 11 |
+
RUN mkdir -p /app/data /var/run/tailscale /var/lib/tailscale
|
| 12 |
+
RUN chown -R megamind:megamind /app /var/run/tailscale /var/lib/tailscale
|
| 13 |
+
|
| 14 |
+
WORKDIR /app
|
| 15 |
+
|
| 16 |
+
# Copy binary and config
|
| 17 |
+
COPY megamind /app/megamind
|
| 18 |
+
COPY config.json /app/config.json
|
| 19 |
+
COPY startup.sh /app/startup.sh
|
| 20 |
+
|
| 21 |
+
RUN chmod +x /app/megamind /app/startup.sh
|
| 22 |
+
|
| 23 |
+
# HF Spaces uses port 7860
|
| 24 |
+
EXPOSE 7860
|
| 25 |
+
|
| 26 |
+
CMD ["/app/startup.sh"]
|
README.md
CHANGED
|
@@ -1,13 +1,16 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
-
sdk:
|
| 7 |
-
sdk_version: 5.44.1
|
| 8 |
-
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
-
short_description: ai hosting
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: MEGAMIND CYBERTRON
|
| 3 |
+
emoji: 🧠
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: blue
|
| 6 |
+
sdk: docker
|
|
|
|
|
|
|
| 7 |
pinned: false
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# MEGAMIND CYBERTRON
|
| 11 |
+
|
| 12 |
+
Part of the MEGAMIND distributed AGI federation.
|
| 13 |
+
|
| 14 |
+
**Specialty:** robotics and automation
|
| 15 |
+
|
| 16 |
+
This mind connects to the federation via NATS and contributes to collective intelligence queries.
|
config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "CYBERTRON",
|
| 3 |
+
"goal": "MEGAMIND federation node specializing in robotics and automation",
|
| 4 |
+
"neurons": 50000,
|
| 5 |
+
"federation": {
|
| 6 |
+
"enabled": true,
|
| 7 |
+
"relay": "wss://josephs-mac-mini.taildf8f6b.ts.net",
|
| 8 |
+
"nats_url": "nats://100.115.192.101:4222"
|
| 9 |
+
},
|
| 10 |
+
"seed_urls": [],
|
| 11 |
+
"specialty": "robotics and automation"
|
| 12 |
+
}
|
megamind
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3628d79fe13422aa131980600dd67202a17f633debcfd487940a166cf3b1384f
|
| 3 |
+
size 19126031
|
startup.sh
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
|
| 4 |
+
echo "=== MEGAMIND CYBERTRON Starting ==="
|
| 5 |
+
|
| 6 |
+
# Start Tailscale daemon in background
|
| 7 |
+
if [ -n "$TS_AUTHKEY" ]; then
|
| 8 |
+
echo "Starting Tailscale..."
|
| 9 |
+
tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/var/run/tailscale/tailscaled.sock &
|
| 10 |
+
sleep 3
|
| 11 |
+
tailscale up --authkey=$TS_AUTHKEY --hostname=megamind-cybertron || true
|
| 12 |
+
echo "Tailscale connected"
|
| 13 |
+
fi
|
| 14 |
+
|
| 15 |
+
# Run megamind
|
| 16 |
+
echo "Starting MEGAMIND brain..."
|
| 17 |
+
exec /app/megamind -config /app/config.json -port 7860
|