mirror of https://github.com/razor-ai/soup.git
1.6 KiB
1.6 KiB
AGENTS.md
Tool-agnostic entry point for AI coding agents (Codex, Cursor, Aider, Claude Code, etc.).
Soup is a CLI-first LLM fine-tuning tool. Python 3.10+, Apache-2.0.
Build & test
pip install -e ".[dev]" # Editable install + test deps
pytest tests/ -v --tb=short # Run the suite (smoke tests are excluded by default)
ruff check src/soup_cli/ tests/ # Lint — must be clean before any commit
pytest -m smokeruns the slow tests that download models and train (skipped by default).- CI matrix: Python 3.10 / 3.11 / 3.12 × Ubuntu / Windows / macOS.
Conventions (must follow)
- Config is Pydantic v2 in
src/soup_cli/config/schema.py— single source of truth. - Heavy deps (
torch,transformers,peft,trl,mlx) are lazy-imported inside functions, never at module top. - Output via
rich.console.Console, never bareprint(). - Path containment: use
os.path.realpath+os.path.commonpath, notPath.resolve() + relative_to()(breaks on Windows short names). - Line length 100, ruff rules
E, F, I, N, W.
Full instructions
- Feature reference lives in
docs/— per-topic guides plus the fullsoupcommand list (docs/commands.md). Read the relevant page before changing a feature. - Contribution workflow, project structure, and architecture notes are in
CONTRIBUTING.md. Read it before making non-trivial changes. - The Pydantic config schema in
src/soup_cli/config/schema.pyis the single source of truth for every config field.