rasptorch
星标11
分支1
更新时间2026年4月19日 22:09
Use the rasptorch CLI to create tensors, inspect Vulkan (GPU) availability, build models, and run training.
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Use the rasptorch CLI to create tensors, inspect Vulkan (GPU) availability, build models, and run training.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | rasptorch |
| description | Use the rasptorch CLI to create tensors, inspect Vulkan (GPU) availability, build models, and run training. |
| metadata | {"clawdbot":{"os":["windows","linux"],"requires":{"anyBins":["rasptorch","python","py"]}}} |
Use this skill when you need to operate rasptorch from an OpenClaw agent by calling its agent-native CLI and consuming JSON output.
--json when returning results to the user/agent.--backend auto (default): choose best available backend--backend vulkan: prefer Vulkan backend--backend opencl: use OpenCL backend--backend cuda: use CUDA backend (CuPy or PyTorch CUDA provider)--backend numpy: CPU backend (internal key: cpu)Prefer the installed console script:
rasptorch --json info
If the console script is unavailable, use module invocation from this repo:
python -m rasptorch.CLI.cli --json info
rasptorch --json info
Key fields:
vulkan_availablevulkan_using_real_gpuvulkan_statusrasptorch --json --backend numpy tensor random --shape 2,3,4 --device cpu --dtype float32
rasptorch --json tensor zeros --shape 3,4 --device auto
rasptorch --json --backend vulkan tensor ones --shape 5,10 --device gpu
Notes:
--backend auto unless the user asks to pin a specific backend.Model commands keep a session-like registry of created models.
rasptorch --json model linear --input-size 10 --hidden-sizes 32,16 --output-size 2
rasptorch --json model mlp --layers 64,32,16,2
rasptorch --json model cnn --in-channels 3 --out-channels 16,32
rasptorch --json model gru --input-size 8 --hidden-size 32 --num-layers 1
rasptorch --json model transformer --vocab-size 32000 --d-model 256 --num-heads 8 --num-layers 4
rasptorch --json model list
rasptorch --json model remove --model-id <model-id>
Only do this when the user requests it (or approves writing files):
rasptorch --json model save --model-id <model-id> --path ./model.pkl
rasptorch --json model load --path ./model.pkl
Only run training after user approval.
rasptorch --json model train --model-id <model-id> --epochs 5 --lr 0.001 --batch-size 32 --device auto --optimizer Adam
rasptorch ui starts a Streamlit server (long-running). Only launch with user approval.rasptorch chat starts an interactive REPL. Avoid in automated tool flows.