Skip to content

Commit

Permalink
Test code is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-lyakhov committed Jun 26, 2024
1 parent 0360129 commit cea1693
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 768 deletions.
456 changes: 0 additions & 456 deletions aa_torch_fx.py

This file was deleted.

2 changes: 1 addition & 1 deletion examples/llm_compression/openvino/tiny_llama/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
import time
from functools import partial

import datasets
import numpy as np
import openvino as ov
from optimum.intel.openvino import OVModelForCausalLM
from transformers import AutoTokenizer

import datasets
import nncf


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

import numpy as np
import openvino as ov
from datasets import load_dataset
from optimum.intel import OVModelForCausalLM
from transformers import AutoTokenizer
from whowhatbench import Evaluator

import nncf
from datasets import load_dataset
from nncf.common.logging import nncf_logger

DataItem = TypeVar("DataItem")
Expand Down
2 changes: 1 addition & 1 deletion nncf/quantization/algorithms/min_max/torch_fx_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def group_conv_metatypes(self) -> List[OperatorMetatype]:

@property
def scaled_dot_product_attention_metatypes(self) -> List[OperatorMetatype]:
return []
return [om.PTScaledDotProductAttentionMetatype]

@property
def scales_unification_map(self) -> Dict[OperatorMetatype, OperatorMetatype]:
Expand Down
2 changes: 1 addition & 1 deletion tests/post_training/pipelines/lm_weight_compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import numpy as np
import openvino as ov
import torch
from datasets import load_dataset
from memory_profiler import memory_usage
from optimum.exporters.openvino.convert import export_from_model
from optimum.intel.openvino import OVModelForCausalLM
Expand All @@ -27,7 +28,6 @@
from whowhatbench import Evaluator

import nncf
from datasets import load_dataset
from tests.post_training.pipelines.base import BackendType
from tests.post_training.pipelines.base import BaseTestPipeline
from tests.post_training.pipelines.base import StatsFromOutput
Expand Down
2 changes: 1 addition & 1 deletion tests/torch/sparsity/movement/helpers/run_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import torch.nn
import torch.nn.functional as F
import torch.utils.data
from datasets import Dataset
from transformers import AutoModelForAudioClassification
from transformers import AutoModelForImageClassification
from transformers import AutoModelForSequenceClassification
Expand All @@ -33,7 +34,6 @@
from transformers import SwinConfig
from transformers import Wav2Vec2Config

from datasets import Dataset
from nncf import NNCFConfig
from nncf.experimental.torch.sparsity.movement.scheduler import MovementSchedulerParams
from nncf.torch.dynamic_graph.io_handling import FillerInputElement
Expand Down
2 changes: 1 addition & 1 deletion tests/torch/sparsity/movement/helpers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

import numpy as np
import torch
from datasets import Dataset # pylint: disable=no-name-in-module
from transformers import TrainingArguments
from transformers.trainer import Trainer
from transformers.trainer_callback import TrainerCallback
from transformers.trainer_callback import TrainerControl
from transformers.trainer_callback import TrainerState
from transformers.trainer_utils import PREFIX_CHECKPOINT_DIR

from datasets import Dataset # pylint: disable=no-name-in-module
from nncf.api.compression import CompressionAlgorithmController
from nncf.common.compression import BaseCompressionAlgorithmController
from nncf.common.utils.tensorboard import prepare_for_tensorboard
Expand Down
2 changes: 1 addition & 1 deletion tests/torch/sparsity/movement/test_model_saving.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import pytest
import torch
from addict import Dict
from datasets import Dataset
from onnx import numpy_helper
from openvino._offline_transformations import apply_fused_names_cleanup
from openvino._offline_transformations import apply_moc_transformations
Expand All @@ -28,7 +29,6 @@
from scipy.special import softmax
from transformers.trainer_utils import PREFIX_CHECKPOINT_DIR

from datasets import Dataset
from nncf.torch import create_compressed_model
from nncf.torch.checkpoint_loading import load_state
from tests.torch.helpers import PTTensorListComparator
Expand Down
3 changes: 1 addition & 2 deletions tests/torch/sparsity/movement/training_scripts/run_glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
from pathlib import Path
from typing import Dict, List, Optional, Tuple

import datasets
import evaluate
import jstyleson
import numpy as np
from transformers.training_args import ParallelMode

import datasets

# isort: off
from nncf import NNCFConfig
from nncf.api.compression import CompressionAlgorithmController
Expand Down
217 changes: 0 additions & 217 deletions torch_compile_ex_release.py

This file was deleted.

Loading

0 comments on commit cea1693

Please sign in to comment.