Xybrid
Command Reference

xybrid pack

Package models into .xyb bundles

Package models and runtime assets into .xyb bundles for distribution.

Usage

xybrid pack <model-name> --version <semver> --target <target>

Arguments

ArgumentDescription
<model-name>Folder under ./models/ containing artifacts

Options

OptionShortDefaultDescription
--version-v0.1.0Bundle version (semver)
--target-tgenericTarget platform
--output-oAutoOutput path for bundle

Behavior

  1. Walks ./models/<model-name>/ directory
  2. Reads model_metadata.json for execution config
  3. Writes manifest.json with bundle metadata
  4. Creates .xyb archive with embedded hash
  5. Skips duplicate filenames with warning

Examples

Basic packaging

xybrid pack whisper-tiny --version 1.0.0

Creates whisper-tiny@1.0.0.xyb in current directory.

Platform-specific bundle

xybrid pack whisper-tiny --version 1.0.0 --target macos-arm64

Custom output path

xybrid pack whisper-tiny --version 1.0.0 --output dist/whisper-tiny.xyb

Target Platforms

TargetDescription
genericPlatform-agnostic (default)
macos-arm64macOS Apple Silicon
macos-x86_64macOS Intel
ios-arm64iOS devices
android-arm64Android ARM64
linux-x86_64Linux x86_64
windows-x86_64Windows x86_64

Model Directory Structure

The pack command expects this structure:

models/whisper-tiny/
├── model_metadata.json    # Required: execution config
├── model.onnx             # Model file
├── vocab.json             # Vocabulary (if needed)
└── ...                    # Other assets

Bundle Output

The resulting .xyb bundle contains:

whisper-tiny@1.0.0.xyb/
├── manifest.json          # Bundle metadata + hash
├── model_metadata.json    # Execution config
├── model.onnx             # Model weights
└── ...                    # All files from source

Workflow

Typical packaging workflow:

# 1. Create model directory
mkdir -p models/my-model

# 2. Add model files and metadata
cp model.onnx models/my-model/
# Create model_metadata.json...

# 3. Package
xybrid pack my-model --version 1.0.0 --target macos-arm64

# 4. Deploy
xybrid deploy my-model@1.0.0.xyb --registry local

See Bundles for bundle format details.

On this page