-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try loading the kernels directly and provide a utility to install aut…
…oawq and autogtpq from source
- Loading branch information
Showing
28 changed files
with
407 additions
and
118 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CLI CPU LlamaCpp Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/test_cli_llama_cpp.yaml | ||
- "optimum_benchmark/**" | ||
- "docker/**" | ||
- "tests/**" | ||
- "setup.py" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/test_cli_llama_cpp.yaml | ||
- "optimum_benchmark/**" | ||
- "docker/**" | ||
- "tests/**" | ||
- "setup.py" | ||
|
||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
|
||
jobs: | ||
run_cli_cpu_llama_cpp_tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install requirements | ||
run: | | ||
pip install --upgrade pip | ||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | ||
pip install -e .[testing,llama-cpp] | ||
- name: Run tests | ||
run: pytest -s -k "llama_cpp" |
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 |
---|---|---|
|
@@ -173,5 +173,9 @@ experiments/ | |
amdsmi/ | ||
amd-* | ||
|
||
|
||
external_repos/ | ||
outputs/ | ||
outputs/ | ||
|
||
# Mac specific | ||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
defaults: | ||
- benchmark | ||
- scenario: inference | ||
- launcher: inline | ||
- backend: llama_cpp | ||
- _base_ | ||
- _self_ | ||
|
||
name: llama_cpp_llama | ||
|
||
backend: | ||
device: mps | ||
model: nomic-ai/nomic-embed-text-v1.5-GGUF | ||
task: feature-extraction | ||
filename: nomic-embed-text-v1.5.Q4_0.gguf | ||
|
||
scenario: | ||
input_shapes: | ||
batch_size: 1 | ||
sequence_length: 256 | ||
vocab_size: 30000 | ||
type_vocab_size: 1 | ||
max_position_embeddings: 512 | ||
generate_kwargs: | ||
max_new_tokens: 100 | ||
min_new_tokens: 100 |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
defaults: | ||
- benchmark | ||
- scenario: inference | ||
- launcher: inline | ||
- backend: llama_cpp | ||
- _base_ | ||
- _self_ | ||
|
||
name: llama_cpp_llama | ||
|
||
backend: | ||
device: mps | ||
model: TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF | ||
task: text-generation | ||
filename: tinyllama-1.1b-chat-v1.0.Q4_0.gguf | ||
|
||
|
||
scenario: | ||
input_shapes: | ||
batch_size: 1 | ||
sequence_length: 256 | ||
vocab_size: 32000 | ||
generate_kwargs: | ||
max_new_tokens: 100 | ||
min_new_tokens: 100 |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
defaults: | ||
- benchmark | ||
- scenario: inference | ||
- launcher: process # launcher: inline works, | ||
- backend: pytorch | ||
- _base_ | ||
- _self_ | ||
|
||
name: pytorch_bert | ||
|
||
# launcher: | ||
# start_method: spawn | ||
|
||
scenario: | ||
latency: true | ||
memory: true | ||
input_shapes: | ||
batch_size: 1 | ||
sequence_length: 128 | ||
|
||
backend: | ||
device: cpu | ||
no_weights: true | ||
model: bert-base-uncased | ||
|
||
|
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
Empty file.
Oops, something went wrong.