Skip to content

Submission Commands

Register, update, and manage models on the network.

Commit a new model (phase 1 of commit-reveal).

soma model commit <MODEL_ID> [OPTIONS]
ArgumentTypeRequiredDescription
model_idObjectIDYesModel object ID
--weights-url-commitmenthex (32 bytes)YesCommitment hash for the weights URL
--weights-commitmenthex (32 bytes)YesCommitment hash for the weights
--architecture-versionu64NoArchitecture version (auto-fetched if omitted)
--stake-amountSomaAmountYesAmount of SOMA to stake
--commission-rateu16NoCommission rate in basis points (default 0)
--staking-pool-idObjectIDYesStaking pool to use
soma model commit 0xMODEL... \
--weights-url-commitment 0xABC...DEF \
--weights-commitment 0x123...456 \
--stake-amount 100 \
--staking-pool-id 0xPOOL...

Reveal model weights (phase 2 of commit-reveal).

soma model reveal <MODEL_ID> [OPTIONS]
ArgumentTypeRequiredDescription
model_idObjectIDYesModel object ID
--weights-urlstringYesURL where weights are hosted
--weights-checksumhex (32 bytes)YesChecksum of the weights file
--weights-sizeu64YesSize of the weights file in bytes
--decryption-keyhex (32 bytes)YesKey to decrypt the weights
--embeddingstringYesComma-separated floats representing the model embedding
soma model reveal 0xMODEL... \
--weights-url https://storage.example.com/model.bin \
--weights-checksum 0xABC...DEF \
--weights-size 1048576 \
--decryption-key 0x789...012 \
--embedding 0.1,0.2,0.3,0.4

Commit updated weights for an active model.

soma model update-commit <MODEL_ID> [OPTIONS]
ArgumentTypeRequiredDescription
model_idObjectIDYesModel object ID
--weights-url-commitmenthex (32 bytes)YesNew commitment hash for the weights URL
--weights-commitmenthex (32 bytes)YesNew commitment hash for the weights
soma model update-commit 0xMODEL... \
--weights-url-commitment 0xNEW...ABC \
--weights-commitment 0xNEW...DEF

Reveal updated weights for an active model.

soma model update-reveal <MODEL_ID> [OPTIONS]
ArgumentTypeRequiredDescription
model_idObjectIDYesModel object ID
--weights-urlstringYesUpdated URL where weights are hosted
--weights-checksumhex (32 bytes)YesChecksum of the updated weights
--weights-sizeu64YesSize of the updated weights in bytes
--decryption-keyhex (32 bytes)YesKey to decrypt the updated weights
--embeddingstringYesComma-separated floats for the updated embedding
soma model update-reveal 0xMODEL... \
--weights-url https://storage.example.com/model-v2.bin \
--weights-checksum 0xNEW...ABC \
--weights-size 2097152 \
--decryption-key 0xNEW...KEY \
--embedding 0.5,0.6,0.7,0.8

Deactivate a model. Only the model owner can deactivate.

soma model deactivate <MODEL_ID>
ArgumentTypeRequiredDescription
model_idObjectIDYesModel object ID
soma model deactivate 0xMODEL...

Display model information.

soma model info <MODEL_ID>
ArgumentTypeRequiredDescription
model_idObjectIDYesModel object ID
soma model info 0xMODEL...

List all registered models.

soma model list

Set the commission rate for a model.

soma model set-commission-rate <MODEL_ID> --commission-rate <RATE>
ArgumentTypeRequiredDescription
model_idObjectIDYesModel object ID
--commission-rateu16YesCommission rate in basis points (max 10000)
soma model set-commission-rate 0xMODEL... --commission-rate 500

Download model weights via the proxy network.

soma model download <MODEL_ID> [OPTIONS]
ArgumentTypeRequiredDescription
model_idObjectIDYesModel object ID
-o, --outputpathNoOutput file path (default: ./<model_id>.weights)
soma model download 0xMODEL...
soma model download 0xMODEL... -o ./my-model.weights

List targets, submit data, and claim rewards.

List targets with optional filters.

soma target list [OPTIONS]
ArgumentTypeRequiredDescription
-s, --statusstringNoFilter by status: open, filled, claimed
-e, --epochu64NoFilter by epoch
--limitu64NoMax number of results (default 50)
soma target list
soma target list --status open --epoch 5 --limit 20

Show target information.

soma target info <TARGET_ID>
ArgumentTypeRequiredDescription
target_idObjectIDYesTarget object ID
soma target info 0xTARGET...

Submit data to fill a target.

soma target submit [OPTIONS]
ArgumentTypeRequiredDescription
--target-idObjectIDYesTarget to fill
--data-commitmenthex (32 bytes)YesCommitment hash for the submitted data
--data-urlstringYesURL where data is hosted
--data-checksumhex (32 bytes)YesChecksum of the data
--data-sizeu64YesSize of the data in bytes
--model-idObjectIDYesModel used for the submission
--embeddingstringYesComma-separated floats for the data embedding
--distance-scoref32YesDistance score between data and target embeddings
--bond-coinObjectIDYesCoin object to use as bond
soma target submit \
--target-id 0xTARGET... \
--data-commitment 0xABC...DEF \
--data-url https://storage.example.com/submission.bin \
--data-checksum 0x123...456 \
--data-size 524288 \
--model-id 0xMODEL... \
--embedding 0.1,0.2,0.3 \
--distance-score 0.95 \
--bond-coin 0xCOIN...

Claim rewards from a filled target. The challenge window must be closed.

soma target claim <TARGET_ID>
ArgumentTypeRequiredDescription
target_idObjectIDYesTarget object ID
soma target claim 0xTARGET...

Download submission data for a target.

soma target download <TARGET_ID> [OPTIONS]
ArgumentTypeRequiredDescription
target_idObjectIDYesTarget object ID
-o, --outputpathNoOutput file path
soma target download 0xTARGET...
soma target download 0xTARGET... -o ./submission-data.bin

Submit fraud challenges and inspect challenge status.

Submit a fraud challenge against a filled target. Requires a bond proportional to the data size.

soma challenge submit [OPTIONS]
ArgumentTypeRequiredDescription
--target-idObjectIDYesTarget to challenge
--bond-coinObjectIDYesCoin object to use as bond
soma challenge submit --target-id 0xTARGET... --bond-coin 0xCOIN...

Show challenge information.

soma challenge info <CHALLENGE_ID>
ArgumentTypeRequiredDescription
challenge_idObjectIDYesChallenge object ID
soma challenge info 0xCHALLENGE...