Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import os
import shutil
import sys
import warnings
from pathlib import Path

import numpy
Expand Down Expand Up @@ -243,6 +244,13 @@ def get_latency_name(batch_size, sequence_length, past_sequence_length):


def main(argv=None, experiment_name: str = "", run_id: str = "0", csv_filename: str = "gpt2_parity_results.csv"):
warnings.warn(
"This example is deprecated. Use the Olive recipe instead: "
"https://github.com/microsoft/olive-recipes/tree/main",
DeprecationWarning,
stacklevel=2,
)

result = {}
if version.parse(transformers_version) < version.parse(
"3.1.0"
Expand Down
2 changes: 2 additions & 0 deletions onnxruntime/python/tools/transformers/models/llama/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> **Deprecated:** This example is deprecated. Use the Olive recipes instead: https://github.com/microsoft/olive-recipes/tree/main

# Contents
- [LLaMA-2](#llama-2)
- [Prerequisites](#prerequisites)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import subprocess
import sys
import tempfile
import warnings
from itertools import chain

import onnx
Expand Down Expand Up @@ -801,6 +802,12 @@ def get_args():


def main():
warnings.warn(
"This example is deprecated. Use the Olive recipe instead: "
"https://github.com/microsoft/olive-recipes/tree/main",
DeprecationWarning,
stacklevel=2,
)
if version.parse(torch.__version__) < version.parse("2.2.0"):
logger.error(f"Detected PyTorch version {torch.__version__}. Please upgrade and use v2.2.0 or newer.")
return
Expand Down
2 changes: 2 additions & 0 deletions onnxruntime/python/tools/transformers/models/phi2/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> **Deprecated:** This example is deprecated. Use the Olive recipes instead: https://github.com/microsoft/olive-recipes/tree/main

# Phi2 Optimizations
## Prerequisites
A Linux machine for [TorchDynamo-based ONNX Exporter](https://pytorch.org/docs/stable/onnx.html#torchdynamo-based-onnx-exporter)\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import argparse
import logging
import os
import warnings
from pathlib import Path

import onnx
Expand Down Expand Up @@ -375,6 +376,12 @@ def parse_arguments():


def main():
warnings.warn(
"This example is deprecated. Use the Olive recipe instead: "
"https://github.com/microsoft/olive-recipes/tree/main",
DeprecationWarning,
stacklevel=2,
)
args = parse_arguments()

device = torch.device("cuda", args.device_id) if torch.cuda.is_available() else torch.device("cpu")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> **Deprecated:** This example is deprecated. Use the Olive recipes instead: https://github.com/microsoft/olive-recipes/tree/main

# Stable Diffusion GPU Optimization

ONNX Runtime uses the following optimizations to speed up Stable Diffusion in CUDA:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import os
import shutil
import tempfile
import warnings
from pathlib import Path

import coloredlogs
Expand Down Expand Up @@ -569,6 +570,12 @@ def parse_arguments(argv: list[str] | None = None):


def main(argv: list[str] | None = None):
warnings.warn(
"This example is deprecated. Use the Olive recipe instead: "
"https://github.com/microsoft/olive-recipes/tree/main",
DeprecationWarning,
stacklevel=2,
)
args = parse_arguments(argv)

logger.info("Arguments: %s", str(args))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> **Deprecated:** This example is deprecated. Use the Olive recipes instead: https://github.com/microsoft/olive-recipes/tree/main

# Whisper

## Prerequisites
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import argparse
import logging
import os
import warnings

import onnx
import torch
Expand Down Expand Up @@ -493,6 +494,12 @@ def export_onnx_models(


def main(argv=None):
warnings.warn(
"This example is deprecated. Use the Olive recipe instead: "
"https://github.com/microsoft/olive-recipes/tree/main",
DeprecationWarning,
stacklevel=2,
)
args = parse_arguments(argv)

setup_logger(args.verbose)
Expand Down
Loading