DocsFine-tuning

Integrations

Connect external services once under Studio → Connections, then enable them per job in the training workflow. Secrets live server-side and are returned masked.

Available connections

ServicePer-job behaviour
Weights & BiasesLoss, reward and eval curves stream to your W&B project live; the run URL lands in the job report. Placeholder e2e keys are not sent outbound.
Hugging Face HubThe finished adapter folder is uploaded as a model repo (private by default) under your namespace.
S3-compatible storageSigned GetObject for s3:// imports when access keys are saved. Public buckets still work without keys.
WebhookSigned JSON POST on completion or failure with final metrics and artifact URLs.
SlackA summary message to an incoming-webhook channel when the job finishes or fails.
MCP / agentsStreamable HTTP at /mcp with the same sk-ft- key. See MCP for agents.
GitHub Actions.github/workflows/tune.yml runs scripts/ci_gate.py and fails if eval scores are below EVAL_MIN_SCORE. Needs secret STUDIO_API_URL.
Prometheus / Grafanadocker compose --profile obs up -d — Prometheus :9090, Grafana :3001 (admin / GRAFANA_ADMIN_PASSWORD), dashboard Ragnarok AI.
SkyPilot / Terraformpython scripts/sky_burst.py or terraform -chdir=infra/terraform apply. Studio → Compute uses Docker when --profile compute is up.

Configure and use

Save credentials (once)
curl -X PUT https://ragnarok-ai.com/api/connections \
  -H "Content-Type: application/json" \
  -d '{
    "wandb":   {"api_key": "…", "project": "acme-tuning"},
    "hf_hub":  {"token": "hf_…", "namespace": "acme-ai"},
    "object_storage": {"access_key": "AKIA…", "secret_key": "…", "region": "us-east-1"},
    "webhook": {"url": "https://api.acme.com/hooks/tuning", "secret": "whsec_…"},
    "slack":   {"webhook_url": "https://hooks.slack.com/services/…"}
  }'
Enable per job
{ "integrations": {
    "wandb": true,
    "hf_hub": {"push": true, "repo": "acme-ai/support-bot-v1", "private": true},
    "webhook": true,
    "slack": true
  }, … }

Verifying webhook signatures

If a webhook secret is set, each delivery includes an X-FineTune-Signature header of the form sha256=<hex> — the HMAC-SHA256 of the raw body keyed by your secret.

Python
import hashlib, hmac

def verify(body: bytes, header: str, secret: str) -> bool:
    digest = hmac.new(secret.encode(), body, hashlib.sha256).hexdigest()
    return hmac.compare_digest("sha256=" + digest, header)