Skip to content

Commit b2a7fab

Browse files
authored
Remove examples folder (microsoft#2171)
## Describe your changes - Remove examples folder. - Remove examples related configs. ## Checklist before requesting a review - [ ] Add unit tests for this change. - [ ] Make sure all tests can pass. - [ ] Update documents if necessary. - [ ] Lint and apply fixes to your code by running `lintrunner -a` - [ ] Is this a user-facing change? If yes, give a description of this change to be included in the release notes. ## (Optional) Issue link
1 parent ce1d491 commit b2a7fab

12 files changed

Lines changed: 3 additions & 206 deletions

.github/copilot-instructions.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Always reference these instructions first and fallback to search or bash command
6161
### Repository Structure
6262
- `olive/` -- Main package directory with core functionality
6363
- `test/` -- Test suite with requirements-test*.txt files
64-
- `examples/` -- Example scripts and notebooks (35+ model optimization examples)
6564
- `docs/` -- Documentation
6665
- `.github/workflows/` -- CI/CD pipelines (lint.yml, codeql.yml)
6766
- `olive/passes/onnx` -- Directory of ONNX transformations passes
@@ -87,12 +86,6 @@ Always reference these instructions first and fallback to search or bash command
8786
- Entry point: `olive` command (defined in setup.py console_scripts)
8887
- Version location: `olive/__init__.py` (__version__)
8988

90-
### Examples and Documentation
91-
- Getting started notebooks: `examples/getting_started/`
92-
- Model-specific examples: `examples/{model_name}/` (phi2, mistral, llama, etc.)
93-
- Quick start example: Qwen/Qwen2.5-0.5B-Instruct optimization
94-
- Documentation website: https://microsoft.github.io/Olive/
95-
9689
### Development Workflow
9790
- Code style: Black formatter with 120 character line limit
9891
- Linting: Multiple tools via lintrunner (ruff, pylint, editorconfig-checker, etc.)
@@ -111,4 +104,3 @@ When network connectivity is limited:
111104
- Focus on configuration validation with `--dry_run` mode
112105
- Test CLI help commands and basic imports
113106
- Validate linting and code formatting
114-
- Use local examples in `examples/` directory for reference

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ cache/
77
olive_tmp_*/
88
/olive-venv
99
augmented_model.onnx
10-
examples/**/data
11-
examples/**/model
1210
test/**/data
1311
nc_workspace/
1412
run_cache/

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ repos:
1111
rev: v0.3.1
1212
hooks:
1313
- id: absolufy-imports
14-
exclude: examples/
1514
- repo: local
1615
hooks:
1716
- id: format-json

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
global-exclude *.py[cod]
2-
recursive-include examples *
32
recursive-include docs *
43
prune */**/__pycache__
54
prune docs/build/**/*

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 📰 News Archive
2-
- [ Feb 2025 ] [New Notebook available - Finetune and Optimize DeepSeek R1 with Olive 🐋 ](examples/getting_started/olive-deepseek-finetune.ipynb)
2+
- [ Feb 2025 ] [New Notebook available - Finetune and Optimize DeepSeek R1 with Olive 🐋 ](https://github.com/microsoft/Olive/blob/main/notebooks/olive-deepseek-finetune.ipynb)
33
- [ Nov 2024 ] [Democratizing AI Model optimization with the new Olive CLI](https://onnxruntime.ai/blogs/olive-cli)
44
- [ Nov 2024 ] [Unlocking NLP Potential: Fine-Tuning with Microsoft Olive (Ignite Pre-Day Lab PRE016)](https://github.com/Azure/Ignite_FineTuning_workshop)
55
- [ Nov 2024 ] [Olive supports generating models for MultiLoRA serving on the ONNX Runtime ](https://onnxruntime.ai/blogs/multilora)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Here are some recent videos, blog articles and labs that highlight Olive:
2020
- [ Aug 2025 ] [Olive 0.9.2 is released with new quantization algorithms](https://github.com/microsoft/Olive/releases/tag/v0.9.2)
2121
- [ May 2025 ] [Olive 0.9.0 is released with support for NPUs](https://github.com/microsoft/Olive/releases/tag/v0.9.0)
2222
- [ Mar 2025 ] [Olive 0.8.0 is released with new quantization techniques](https://github.com/microsoft/Olive/releases/tag/v0.8.0)
23-
- [ Feb 2025 ] [New Notebook available - Finetune and Optimize DeepSeek R1 with Olive 🐋 ](examples/getting_started/olive-deepseek-finetune.ipynb)
23+
- [ Feb 2025 ] [New Notebook available - Finetune and Optimize DeepSeek R1 with Olive 🐋 ](https://github.com/microsoft/Olive/blob/main/notebooks/olive-deepseek-finetune.ipynb)
2424
- [ Nov 2024 ] [Democratizing AI Model optimization with the new Olive CLI](https://onnxruntime.ai/blogs/olive-cli)
2525
- [ Nov 2024 ] [Unlocking NLP Potential: Fine-Tuning with Microsoft Olive (Ignite Pre-Day Lab PRE016)](https://github.com/Azure/Ignite_FineTuning_workshop)
2626
- [ Nov 2024 ] [Olive supports generating models for MultiLoRA serving on the ONNX Runtime ](https://onnxruntime.ai/blogs/multilora)

docs/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Users can build their own workflows using the python api but we also provide a c
363363
python –m olive.workflows.run --config <json config path>
364364
```
365365

366-
Please refer to `examples/bert_ptq_cpu/bert_config.json` for an example.
366+
Please refer to [olive-recipes](https://github.com/microsoft/olive-recipes) repo for examples.
367367

368368
This tool is also available for use in the python api
369369
```python

examples/README.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

examples/phi4/README.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/phi4/qnn/phi4_mini_instruct_qnn_config.json

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)