rasptorch

Use the rasptorch CLI to create tensors, inspect Vulkan (GPU) availability, build models, and run training.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "rasptorch" with this command: npx skills add joshua-ludolf/rasptorch-cli

rasptorch skill

Use this skill when you need to operate rasptorch from an OpenClaw agent by calling its agent-native CLI and consuming JSON output.

Command rule

  • Prefer JSON output: always pass --json when returning results to the user/agent.
  • Prefer explicit device selection:
    • --device auto (default): use GPU when Vulkan is working, else CPU
    • --device gpu: force GPU (will error / fall back depending on Vulkan availability)
    • --device cpu: force CPU

How to run the CLI

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

Quick checks (read-only)

Environment + Vulkan status

rasptorch --json info

Key fields:

  • vulkan_available
  • vulkan_using_real_gpu
  • vulkan_status

Tensor workflows

Create tensors

rasptorch --json tensor random --shape 2,3,4 --device cpu --dtype float32
rasptorch --json tensor zeros  --shape 3,4   --device auto
rasptorch --json tensor ones   --shape 5,10  --device gpu

Notes:

  • Keep shapes small unless the user explicitly requests large workloads.
  • Prefer --device auto unless the user asks to force CPU/GPU.

Model workflows (stateful)

Model commands keep a session-like registry of created models.

Create 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

List / remove

rasptorch --json model list
rasptorch --json model remove --model-id <model-id>

Save / load (writes files)

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

Train (writes compute + may take time)

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

UI / chat modes

  • rasptorch ui starts a Streamlit server (long-running). Only launch with user approval.
  • rasptorch chat starts an interactive REPL. Avoid in automated tool flows.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

YiHui GIT MONITOR

通用 Git 项目监控工具。支持 GitHub、GitLab、Gitee 等所有 Git 平台。可以添加、删除、检查任意 Git 仓库的更新,自动拉取代码并生成变更摘要。

Registry SourceRecently Updated
00Profile unavailable
Coding

Workspace Governance

A methodology-first workspace governance skill for AI agents. Focuses on principles, decision framework, and safe execution patterns instead of fixed directo...

Registry SourceRecently Updated
Coding

Nox Influencer - Creator Discovery & Influencer Marketing

Runs NoxInfluencer creator and marketing-ops workflows via CLI, including creator discovery for influencer marketing, creator marketing, UGC, social media ma...

Registry SourceRecently Updated
Coding

Gigo Lobster Doctor

🦞 GIGO · gigo-lobster-doctor: 环境体检模式:只检查 gateway、Python 依赖、题包链路与 PNG 证书能力,不跑正式试吃。 Triggers: 龙虾体检 / 检查龙虾环境 / lobster doctor / check lobster environment.

Registry SourceRecently Updated