agentleFS
MicrosoftKnown publishermicrosoft/Olive/AGENTS.md

Olive

AGENTS.md2.4k starsChanged 15 months agoMITView on GitHub

Olive is a Python toolkit for AI model optimization on ONNX Runtime. The main package is in olive/, tests are in test/, and the CLI entry point is olive. Olive users should install olive-ai with pip install olive-ai, and follow README.md. Use the smallest relevant check for your change: If you need to run tests, install the appropriate dependencies from test/requirements-test.txt or one of the platform-specific files in test/.

  • Installs packages

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 2 mentionsJun 2026: 1 mentionJul 2026: 2 mentionsAug 2026: 0 mentionsSep 2026: 2 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/Olive repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/Olive

The biggest 5 of 17 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 17

Talked about on GitHub and Hacker News (17 times).

On GitHub · 16

11 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

11 rules. About 1 is common, 6 are distinctive, and 4 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use the smallest relevant check for your change:

    line 18
  2. Very specific:

    If you need to run tests, install the appropriate dependencies from test/requirements-test.txt or one of the platform-specific files in …

    line 24
  3. Distinctive:

    Follow Black-compatible formatting with a 120 character line length.

    line 60
  4. Distinctive:

    Prefer existing repository patterns before adding new abstractions.

    line 61
  5. Very specific:

    Use pathlib for path handling.

    line 63
  6. Distinctive:

    Keep changes focused and avoid unrelated refactors.

    line 64
  7. Distinctive:

    Add or update tests for behavior changes.

    line 68
  8. Distinctive:

    Prefer behavior-focused tests over implementation-focused tests.

    line 69
  9. Very specific:

    Use the existing naming convention: test_<method_or_function>_<expected_behavior>[_when_<condition>].

    line 70
  10. Very specific:

    When creating PRs, use the template at .github/pull_request_template.md for the PR body.

    line 74
  11. Common:

    Do not commit secrets, caches, or generated model artifacts.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Project overview

Olive is a Python toolkit for AI model optimization on ONNX Runtime. The main package is in olive/, tests are in test/, and the CLI entry point is olive.

User guide

Olive users should install olive-ai with pip install olive-ai, and follow README.md.

Developer setup and validation

  1. pip install -r requirements.txt
  2. pip install -e .
  3. pip install -r requirements-dev.txt
  4. lintrunner init

Use the smallest relevant check for your change:

  • python -c "import olive; print(olive.__version__)"
  • olive --help
  • lintrunner --all-files -a --skip PYLINT for faster local linting while iterating; run PYLINT at the end when changes are ready for a PR

If you need to run tests, install the appropriate dependencies from test/requirements-test.txt or one of the platform-specific files in test/.

Repository map

  • olive/: main package
    • cli/: CLI commands such as optimize, quantize, finetune, capture-onnx-graph, plus the shared launcher and base CLI logic.
    • common/: shared helpers for config loading, Hugging Face integration, quantization helpers, ONNX/ORT utilities, and user module loading.
    • data/: data configuration and registry.
      • component/: dataset, dataloader, dataset loading, and pre/post-processing components.
      • container/: data container implementations such as Hugging Face, raw, image, and dummy containers.
    • engine/: workflow execution, run footprint tracking, outputs, and packaging helpers.
    • evaluator/: metrics, metric backends, metric config/result types, and evaluator orchestration.
    • hardware/: accelerator definitions and related constants.
    • model/: model definitions and runtime-specific model handling.
      • config/: model config, Hugging Face config, I/O config, KV-cache config, and model registry helpers.
      • handler/: handlers for composite, diffusers, Hugging Face, ONNX, OpenVINO, PyTorch, QAIRT, and QNN models.
      • utils/: model utility helpers.
    • passes/: optimization, conversion, and quantization passes.
      • Backend-specific pass groups include onnx/, pytorch/, openvino/, qnn/, qairt/, diffusers/, and quark_quantizer/.
    • platform_sdk/qualcomm/: Qualcomm SDK environment setup, runners, and helper scripts.
    • search/: search space, search points/results/samples, strategies, and sampler implementations.
    • systems/: execution targets and runners for local, Docker, and Python-environment based systems.
    • telemetry/: telemetry plumbing, exporters, utilities, and device ID support.
    • workflows/run/: workflow config and workflow run entrypoints.
  • test/: test suite, organized to largely mirror the package structure.
    • Main areas include cli/, common/, data_container/, engine/, evaluator/, hardware/, model/, passes/, resource_path/, search/, systems/, and workflows/.
    • assets/: shared fixtures and helper scripts for tests.
    • requirements-test*.txt: base and platform-specific test dependency sets.
  • docs/: documentation source and build config.
    • source/ contains getting-started, how-to, reference, features, blogs, images, and Sphinx config.
  • notebooks/: example notebooks for quickstart, finetuning, LoRA, and optimized text generation workflows.
  • scripts/: repository maintenance and artifact-generation utilities.
  • .github/workflows/: GitHub Actions workflows, including the Python lint workflow.

Code style

  • Follow Black-compatible formatting with a 120 character line length.
  • Prefer existing repository patterns before adding new abstractions.
  • Use absolute imports.
  • Use pathlib for path handling.
  • Keep changes focused and avoid unrelated refactors.

Testing

  • Add or update tests for behavior changes.
  • Prefer behavior-focused tests over implementation-focused tests.
  • Use the existing naming convention: test_<method_or_function>_<expected_behavior>[_when_<condition>].

Pull requests

  • When creating PRs, use the template at .github/pull_request_template.md for the PR body.
  • Fill in the "Describe your changes" section with a clear summary of what changed and why.

Security and environment notes

  • Do not commit secrets, caches, or generated model artifacts.
  • Some workflows require optional packages, specific hardware, or model downloads. In limited-network environments, prefer local validation and olive optimize --dry_run ....

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.