solanaclawd/README
0
<p align="center"> <img src="https://raw.githubusercontent.com/Solizardking/solana-clawd/main/assets/solana-ai-model-kit.svg" alt="Solana AI Model Kit" width="100%"/> </p>
Solana Clawd
The Hugging Face home for the Solana Clawd model stack: public-safe datasets, LoRA adapters, evaluation artifacts, and CAAP/1.0 registry metadata for Solana-native AI agents.
GitHub: Solizardking/solana-clawd Onchain registry: onchain.x402.wtf Registry JSON: /.well-known/clawd-registry.json Model kit: `ai-training/model-kit`
Solana AI Model Kit
The kit is a one-shot path for building, publishing, training, registering, and serving Solana AI models.
# Safe default: clone/update the repo, audit local release state, print next steps.
curl -fsSL https://raw.githubusercontent.com/Solizardking/solana-clawd/main/ai-training/scripts/solana_ai_model_kit.sh | bash
# From a checkout:
npm run model-kit
npm run model-kit:register
npm run model-kit:trainLive CAAP/1.0 registry POST:
bash ai-training/scripts/solana_ai_model_kit.sh \
--local \
--live-register \
--hf-model YOUR_ORG/your-model \
--endpoint https://your-router.example/v1 \
--eval-accuracy 0.60 \
--dataset-size 35173Current Artifacts
Datasets
Models
Training Status
- Active Core AI retry:
ordlibrary/6a35a6833093dba73ce2a86b - Core recovery evidence: loaded
solanaclawd/solana-clawd-core-ai-instruct, tokenized all31,655train rows, entered training, and reached at least step221/3957with mean token accuracy around0.79. - Superseded failed trading job:
ordlibrary/6a359f0e953ed90bfb944faf - Failure mode: the HF job tried to load
/data/nvidia_trading_factory_processedinstead of the published Hub dataset. - Fix:
scripts/train_lora.pynow falls back todataset_repowhen the configured local path is absent, andprepare_dataset.pynormalizes metadata across train/eval/test splits for Hub pushes. - Superseded failed replacement:
ordlibrary/6a35a02d953ed90bfb944fe3 - Second fix: Hermes exposes
tokenizer.chat_templateas a dict and TRL expected a string when assistant-only loss was enabled. The trainer now normalizes dict templates and disables assistant-only loss when generation markers are unavailable. - Successful retry:
ordlibrary/6a35a2ce953ed90bfb945009 - Final evidence: active retry loaded the published Hub dataset, tokenized train/eval splits, built
SFTTrainer, completed 48/48 steps, pushed adapter files, and verifiedadapter_config.jsonplusadapter_model.safetensorson Hub. - Final metrics: train loss
1.1692, eval loss0.8064, eval mean token accuracy0.8547. - W&B: disabled unless
WANDB_API_KEYis present in the launching environment.
Onchain Registry
The registry API is served by OnChain-AI and indexed at onchain.x402.wtf.
curl -sS https://onchain.x402.wtf/.well-known/clawd-registry.json | python3 -m json.tool
curl -sS "https://onchain.x402.wtf/api/models?hf_id=solanaclawd/solana-clawd-core-ai-1.5b-lora" | python3 -m json.toolLocal sidecar:
export ONCHAIN_AI_ROOT=/Users/8bit/Downloads/OnChain-Ai-main
cd "$ONCHAIN_AI_ROOT/backend"
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt
PORT=5001 python3 main.py
cd "$ONCHAIN_AI_ROOT/frontend"
npm install
VITE_API_BASE_URL=http://localhost:5001 npm run devSafety
- No private keys, API tokens, OAuth client secrets, Google ADC JSON, W&B keys, or HF tokens belong in datasets, cards, commits, manifests, or Hub uploads.
- Trading-factory data defaults to paper mode.
- Live execution belongs outside model training data and requires explicit operator approval, wallet isolation, and pre-trade risk checks.
- The model is the planning layer; key-bearing execution clients are separate trust domains.
