-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c26e3c0
commit 349019b
Showing
34 changed files
with
239 additions
and
651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,4 +169,5 @@ version.txt | |
|
||
actions-runner/ | ||
experiments/ | ||
.engine/ | ||
examples/ | ||
.engine/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,19 @@ | ||
# Copyright 2021 The HuggingFace Team. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# List of targets that are not associated with files | ||
.PHONY: style_check style test install install_dev_cpu install_dev_gpu | ||
|
||
SHELL := /bin/bash | ||
CURRENT_DIR = $(shell pwd) | ||
DEFAULT_CLONE_URL := https://github.com/huggingface/optimum-benchmark.git | ||
# If CLONE_URL is empty, revert to DEFAULT_CLONE_URL | ||
REAL_CLONE_URL = $(if $(CLONE_URL),$(CLONE_URL),$(DEFAULT_CLONE_URL)) | ||
|
||
# Install the library in development mode | ||
.PHONY: style_check style test | ||
|
||
# Run code quality checks | ||
style_check: | ||
black --check . | ||
quality: | ||
ruff check . | ||
ruff format --check . | ||
|
||
# Format the code | ||
style: | ||
black . | ||
ruff --fix . | ||
ruff format . | ||
ruff check --fix . | ||
|
||
install: | ||
pip install -e . | ||
|
||
install_dev_cpu: | ||
pip install -e .[quality,testing,openvino,onnxruntime,neural-compressor,diffusers,timm,peft] | ||
|
||
# Run tests for the library | ||
test: | ||
python -m pytest tests | ||
install_dev_gpu: | ||
pip install -e .[quality,testing,onnxruntime-gpu,deepspeed,diffusers,timm,peft] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.