Rabidity is implemented in Rust and built with Cargo. Python, PyTorch, and a Python package install are not required to build the CLI.
# Build the command-line tools
cargo build --release --bins
# See available commands and options
./target/release/rabidity --help
./target/release/rabidity devices
# Run the tests
cargo test --releaseThe default build includes the Candle-based ML backend. To build only the
non-ML CLI tools, use cargo build --release --no-default-features --bins.
Optional accelerator builds are selected with Cargo features such as cuda,
rocm, or metal; the corresponding system runtimes may also be required.
Ollama is optional and is only needed when using Ollama-specific workflows.
Native ML commands use --device auto by default. Auto mode selects CUDA when
the binary was built with --features cuda and a usable CUDA device is available;
it otherwise falls back to CPU. Use --device cuda, --device rocm, or
--device cpu to override selection explicitly.
cargo build --release --features cuda --bins
rabidity devices --require-cuda
rabidity finetune --device auto --model ./model --data ./train.jsonlThe device guard exits with status 2 when CUDA is unavailable. This is useful
for CI and pipeline scripts that must not silently fall back to CPU. It also
reports the effective backend for native training, abliteration, and generation.
The crate targets Rust 1.75 or newer. Useful commands from the repository root:
cargo check
cargo test
cargo fmt --checkrabidity and hmcli are binary names for the same CLI. Rust-specific help is
available directly from the built binary:
./target/release/rabidity --help
./target/release/rabidity <command> --helpUse the project only with models, datasets, and systems you are authorized to work with. Keep experiments isolated, do not deploy generated content against third-party systems, and validate any security-related behavior in a controlled lab before drawing conclusions.
Model modification and generated security content can create significant risk. This README covers building and exploring the Rust CLI, not instructions for creating or deploying offensive payload-generation models.
