One-click install
npx skills add https://github.com/yumazak/kodo --skill domain-ml-yumazak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: domain-ml
Source: https://github.com/yumazak/kodo/tree/main/.agents/skills/domain-ml
Command: npx skills add https://github.com/yumazak/kodo --skill domain-ml-yumazak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Optimizes ML/AI development in Rust by enforcing domain-driven constraints for memory efficiency, GPU utilization, and model portability.

Core Features & Use Cases

  • Design patterns for zero-copy tensors, batched inference, and GPU-accelerated pipelines.
  • Guidance on using crates like ndarray, tract, candle, burn, and tch-rs for portable ML in Rust.
  • Use cases include inference servers, data preprocessing pipelines, and cross-framework model deployment.

Quick Start

Start by outlining your ML inference workflow in Rust and plug in tract or tch-rs for ONNX or PyTorch models.

Frequently Asked Questions about domain-ml

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run ONNX model inference in Rust efficiently?

Run ONNX inference in Rust by using the tract crate for portable execution. This Skill enforces domain-driven constraints for memory efficiency and safe memory handling, ensuring deterministic and batched inference pipelines.

What is the best way to handle tensors for machine learning in Rust?

Handle tensors in Rust by applying zero-copy design patterns with the ndarray crate. This approach enforces memory efficiency and safe memory handling while maintaining deterministic execution for machine learning workflows.

Can I use GPU acceleration for PyTorch models in Rust?

Use GPU acceleration for PyTorch models in Rust via the tch-rs crate. This Skill enforces GPU utilization constraints and lazy initialization to optimize memory efficiency during cross-framework model deployment.

Does this approach support cross-framework model deployment?

Cross-framework model deployment is supported by enforcing model portability through standard formats like ONNX. The Skill guides using portable ML crates such as candle, burn, and tract for seamless inference server setup.

How do I build a memory-safe inference server in Rust?

Build a memory-safe inference server in Rust by leveraging domain-driven constraints and crates like tract or tch-rs. This enforces safe memory handling, lazy initialization, and deterministic execution for batched inference.

When should I not use Rust for machine learning inference?

Avoid Rust for machine learning inference if your workflow requires dynamic tensor shapes that break deterministic execution constraints. This Skill enforces strict memory efficiency and standard format usage, which may limit highly dynamic model architectures.