Skip to content
SpirizeonPublic

About

Weaponize HF models for offensive security

Resources

Stars

30 stars

Watchers

0 watching

Forks

Repository files navigation

canvas

rabidity

Rust toolkit for authorized model and security research

Command-line tools for data preparation, device discovery, model workflows, and evaluation.


image

Quickstart

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 --release

The 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.

Device selection and CUDA checks

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.jsonl

The 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.

Development

The crate targets Rust 1.75 or newer. Useful commands from the repository root:

cargo check
cargo test
cargo fmt --check

rabidity 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> --help

Responsible use

Use 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.

About

Weaponize HF models for offensive security

Resources

Stars

30 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages