masa-finance / roadmap

The protocol
0 stars 0 forks source link

Akash template deployment for Validator #40

Open teslashibe opened 2 months ago

teslashibe commented 2 months ago

Problem

It is hard for a non-technical user to deploy a subnet validator, Akash offer an open source template service to do this: https://console.akash.network/templates?search=flock

Context

An example of an akash template can be:

---
version: "2.0"

services:
  flock-validater:
    image: ghcr.io/flock-io/llm-loss-validator:v0.0.6
    env:
      - FLOCK_API_KEY=
      # support multi_task, such as 1,2,3
      - TASK_ID=
      - HF_TOKEN=
    expose:
      - port: 3000
        as: 80
        to:
          - global: true

profiles:
  compute:
    flock-validater:
      resources:
        cpu:
          units: 8
        memory:
          size: 24Gi
        storage:
          size: 100Gi
        gpu:
          units: 1
          attributes:
            vendor:
              nvidia:
                - model: h100
                - model: a100
                - model: rtx3090
                - model: rtx4090
                - model: rtx8000
                - model: rtxa6000
                - model: a40
                - model: p40
  placement:
    akash:
      pricing:
        flock-validater:
          denom: uakt
          amount: 10000

deployment:
  flock-validater:
    akash:
      profile: flock-validater
      count: 1

Acceptance criteria

mudler commented 2 months ago

blocked by https://github.com/masa-finance/masa-bittensor/issues/109 as it requires container images to run the oracle

mudler commented 2 months ago

ask @teslashibe for cash in the akash platform to test this

juanmanso commented 1 month ago

Cannot edit task to show it's blocked and mark it as triage to show it needs further info to be moved to ready column