Xpersona
S

Soma

CLAWHUB · Unverified

Expert guide for participating in the SOMA network — a decentralized system that trains a foundation model through competition. Provides data submission work... Skill: Soma Owner: cfuaqz Summary: Expert guide for participating in the SOMA network — a decentralized system that trains a foundation model through competition. Provides data submission work... Tags: latest:1.1.0 Version history: v1.1.0 | 2026-03-24T12:56:58.183Z | user Declare required env vars and security notes, add merge_coins docs, deploy+trigger flow v0.1.1 | 2026-03-09T23:42:29.449Z | user - Updated "Getting

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177h2k5enrr0swpj4b591z5sd83h6qd:soma
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-cfuaqz-soma/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

143,161 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: soma
description: Expert guide for participating in the SOMA network — a decentralized system that trains a foundation model through competition. Provides data submission workflows, model training pipelines, reward claiming, SDK code generation, CLI command guidance, and competitive strategy optimization. Use when user mentions "SOMA", "soma-sdk", "soma-models", "submit data to SOMA", "train a SOMA model", "SOMA targets", "SOMA rewards", "next-byte prediction network", "decentralized model training", or asks about earning SOMA tokens through data or model contributions. Do NOT use for general machine learning, PyTorch, or JAX questions unrelated to the SOMA network.
license: Apache-2.0
compatibility: Requires Python 3.10+ for soma-sdk, Python 3.13+ for quickstart. soma CLI installed via sup. GPU recommended for model training (H100) and scoring (24GB VRAM). Network access to SOMA testnet or localnet. Requires env vars SOMA_SECRET_KEY (sensitive — Ed25519 signing key), HF_TOKEN (sensitive — HuggingFace access), S3_BUCKET, S3_ACCESS_KEY_ID (sensitive), S3_SECRET_ACCESS_KEY (sensitive), S3_ENDPOINT_URL, S3_PUBLIC_URL. All credentials stored in .env (gitignored) and pushed to Modal encrypted secret store. Use testnet keys only.
metadata:
  author: soma-org
  version: 1.1.0
  tags: [blockchain, machine-learning, data-submission, model-training, decentralized-ai]
  documentation: https://docs.soma.org
  repository: https://github.com/soma-org/soma
---

# SOMA Network

> **Security & credentials**: This skill requires sensitive environment variables (`SOMA_SECRET_KEY`, `HF_TOKEN`, `S3_ACCESS_KEY_ID`, `S3_SECRET_ACCESS_KEY`) for on-chain signing, dataset access, and artifact storage. Credentials are stored in a local `.env` file (gitignored) and pushed to Modal's encrypted secret store — never committed to git. Submission data and encrypted model weights are uploaded with public-read ACLs as required by the SOMA protocol for validator audits. **Always use testnet keys** for development and automated pipelines. Scope S3 API tokens to a single bucket with minimal permissions.

SOMA is an open-source network that trains a unified foundation model through decentralized competition. Models independently train on the same byte-level transformer architecture, compete on a universal objective (next-byte prediction), and integrate into one system. The best weights are rewarded with SOMA tokens.

There are three ways to earn SOMA:
1. **Submit data** — find or generate data matching network targets, score it against assigned models, submit valid results (50% of target reward)
2. **Train models** — train weights on the shared architecture, publish them on-chain via commit-reveal, earn commission when your model wins (50% of target reward)
3. **Run a validator** — operate consensus nodes, generate targets, audit submissions (20% of epoch rewards)

## The Game

You're not just submitting data or training models. You're a specialist in a collective brain.

SO

_meta.json

{
  "ownerId": "kn74s707bpkwqskx4cdw96yh9182gekx",
  "slug": "soma",
  "version": "1.1.0",
  "publishedAt": 1774357018183
}

references/architecture.md

# SOMA Network Architecture

> Full documentation: https://docs.soma.org/overview/how-it-works
> Source: https://github.com/soma-org/soma
> Concepts: https://docs.soma.org/concepts/models | [targets](https://docs.soma.org/concepts/targets) | [submitting](https://docs.soma.org/concepts/submitting) | [economics](https://docs.soma.org/concepts/economics) | [network](https://docs.soma.org/concepts/network)
> Model specs: https://docs.soma.org/reference/models/overview

## Universal Objective

SOMA trains a unified foundation model by coordinating specialized models across the internet. Every model shares the same architecture but has unique trained weights and a specialization embedding.

**Objective**: Given any data (raw bytes), predict what comes next — next-byte prediction.

**Loss function**: Cross-entropy loss + SIGReg (Sigmoid Regularization) to prevent embedding collapse by encouraging uniform distribution across embedding space.

## Model Architecture (V1)

| Parameter | Value |
|-----------|-------|
| Type | Pre-norm byte-level transformer |
| Layers | 24 |
| Embedding dimension | 2048 |
| Attention heads | 8 (256 dim per head) |
| FFN hidden dimension | 8192 |
| Max sequence length | 1024 bytes |
| Vocabulary size | 264 (256 byte values + 8 special tokens) |
| Special tokens | PAD=256, EOS=257 |
| Position encoding | RoPE (Rotary Position Embedding) |
| Weight format | Safetensors |
| Frameworks | PyTorch and Flax/JAX (cross-compatible weights) |

**Strategic implications**: This is a byte-level generalist — it reads raw bytes, not tokens. It can learn patterns in ANY byte sequence: source code, natural language, binary protocols, serialized data, even image headers. Models that exploit this universality by specializing in domains that tokenizers handle poorly (binary formats, mixed encodings, structured data with unusual delimiters) have an inherent advantage. The 1024-byte context window means data should be information-dense within each window — a complete function definition is better training material than a random 1024-byte slice of a large file.

**Components**: Model, Encoder, Layer, MultiHeadAttention, PositionWiseFeedForward, SIGReg

**Key configs**:
- `ModelConfig` — architecture hyperparameters
- `EncoderConfig` — encoder-specific settings
- `LayerConfig` — per-layer configuration
- `SIGRegConfig` — regularization parameters

**Installation**:
```bash
pip install soma-models[torch]   # PyTorch
pip install soma-models[flax]    # Flax/JAX
pip install soma-models[all]     # Both
```

**Usage**:
```python
from soma_models.v1.torch.modules.model import Model
from soma_models.v1.torch.modules.sig_reg import SIGReg
from soma_models.v1.torch.loss import compute_loss
from soma_models.v1.configs import ModelConfig, SIGRegConfig
from soma_models.v1.tokenizer import tokenize
```

## Targets

Targets are random points in embedding space generated each epoch. They represent data domains the network wants to learn.

**Generation**: Random poi

references/cli-reference.md

# SOMA CLI Reference

> CLI source: https://github.com/soma-org/soma/tree/main/cli
> CLI docs: https://docs.soma.org/reference/cli/overview
> Installation: https://docs.soma.org/getting-started/install

## Installation

```bash
# Install via sup (version manager)
curl -fsSL https://sup.soma.org | bash
sup install soma

# Verify
soma --version
```

## Configuration

- **Config file**: `~/.soma/soma.yaml`
- **Genesis**: `genesis.blob` (network-specific)
- **Logging**: `RUST_LOG=info` (or `debug`, `warn`, `error`)

## Wallet Management

```bash
soma wallet active                    # Show active address
soma wallet list                      # List all addresses
soma wallet new                       # Create new address
soma wallet new --key-scheme ed25519  # Specify key scheme
soma wallet switch --address <ADDR>   # Switch active address
soma wallet export --address <ADDR>   # Export secret key
soma wallet remove --address <ADDR>   # Remove address
```

## Environment Management

```bash
soma env active              # Show active environment
soma env list                # List environments
soma env new <NAME>          # Create new environment
soma env switch <NAME>       # Switch environment
soma env chain-id            # Show chain ID
```

## Account Operations

```bash
soma balance                          # Check SOMA balance
soma balance --address <ADDR>         # Check specific address
soma send <AMOUNT> --to <ADDR>        # Send SOMA
soma transfer <AMOUNT> --to <ADDR>    # Transfer SOMA
soma pay --amounts <A1,A2> --recipients <R1,R2>  # Multi-pay
soma faucet                           # Request testnet tokens
soma faucet --address <ADDR>          # Faucet to specific address
soma status                           # Network status
```

## Staking

```bash
soma stake <AMOUNT> --validator <ADDR>    # Stake to validator
soma unstake --staked-soma-id <ID>        # Unstake
```

## Model Operations

```bash
# Create model
soma model create \
  --commission-rate <RATE> \         # 0-10000 basis points
  --stake <AMOUNT>                    # Optional initial stake

# Commit weights
soma model commit \
  --model-id <ID> \
  --weights-url <URL> \
  --encrypted-weights <PATH> \
  --decryption-key <KEY> \
  --embedding <EMBEDDING>

# Reveal (after epoch advances)
soma model reveal \
  --model-id <ID> \
  --decryption-key <KEY> \
  --embedding <EMBEDDING>

# Management
soma model deactivate --model-id <ID>
soma model info --model-id <ID>
soma model list
soma model list --owner <ADDR>
soma model set-commission-rate --model-id <ID> --rate <RATE>
soma model download --model-id <ID> --output <PATH>
```

## Target Operations

```bash
# Browse targets
soma target list
soma target list --status open        # Open targets only
soma target info --target-id <ID>

# Submit data
soma target submit \
  --target-id <ID> \
  --data-url <URL> \
  --data <PATH> \
  --model-id <MODEL_ID> \
  --embedding <EMBEDDING> \
  --distance-score <SCORE> \
  --loss-score <SCORE>

# Claim

references/data-strategies.md

# SOMA Data Strategies

> Data strategies: https://docs.soma.org/guides/data-strategies
> Datasets: https://docs.soma.org/concepts/submitting
> Quickstart patterns: `quickstart-patterns.md`

## Think Like a Curator, Not a Pipeline

The default approach — stream The Stack v2, filter, submit — is what everyone does. It works. It's also the fastest way to become indistinguishable from every other submitter on the network.

The network's collective intelligence depends on **diversity**. Every byte of novel, high-quality data you submit teaches the network something new. The submitter who discovers an underserved domain and curates excellent data for it contributes more to the network (and earns more) than 100 submitters running identical Stack v2 pipelines in crowded regions.

Your edge as a data submitter is **what data you choose and how you curate it**, not how fast your pipeline runs.

## Recommended Datasets

Start here, but don't stop here:

| Dataset | Type | Best for | Strategic note |
|---------|------|----------|----------------|
| **The Stack v2** | Source code | General programming targets | Baseline. Filter by language to specialize — don't submit everything |
| **StarCoderData** | Source code | Curated, high-quality code | Higher quality filtering than raw Stack v2. Better signal-to-noise |
| **FineWeb-Edu** | Web text | Educational/textual targets | Natural language grounding. Technical documentation is gold |
| **SWE-bench** | Code patches | Software engineering | Real GitHub issues paired with resolving changes. Unique signal |
| **Custom datasets** | Varies | Niche domain specialization | Your biggest competitive moat. See Novel Data Sources below |

**Key insight**: Data is chunked to 1024 bytes during processing. Documents exceeding the context window are split into independent sequences without cross-sequence visibility. Shorter, self-contained passages — functions, docstrings, paragraphs — are more effective training material than raw file dumps.

## Customizing Your Data Source

The submitter interface requires yielding bytes objects under a 1 MB submission maximum. You can plug in any data source:

```python
def my_data_source():
    """Yield data as UTF-8 bytes from any source."""
    from datasets import load_dataset
    ds = load_dataset(
        "HuggingFaceFW/fineweb-edu",
        split="train",
        streaming=True,
    ).shuffle(buffer_size=100_000)

    for row in ds:
        text = row.get("text", "")
        if not text.strip():
            continue
        data = text.encode("utf-8")
        if len(data) > 10_000:
            continue
        yield data
```

This pattern works with any HuggingFace dataset, local files, API responses, or generated content. The key constraint: yield raw bytes, keep each chunk under ~10KB for best results.

## Smart Filtering with Embedding Models

### The problem

Most files from The Stack v2 aren't relevant to any given target. Without filtering, you waste GPU cycles scoring data t

Sponsored

Ads related to Soma and adjacent AI workflows.