-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v5.0.3: Lemonade installer and examples, repo reorg, and lots…
… more (#275) - Docs, test, and examples have been moved into `turnkey` (CNNs and Transformers) vs. `lemonade` (LLMs) directories (@jeremyfowers) - For example: `docs/lemonade/getting_started.md` instead of `docs/lemonade_getting_started.md` - Track the memory utilization of any `lemonade` or `turnkey` command and plot it on a graph by setting the `--memory` option (@amd-pworfolk). - Add examples and demo applications for the high-level LEAP APIs in `examples/lemonade` (@jeremyfowers). - Add LEAP support for all OGA backends (@jeremyfowers). - Extend the `llm-prompt` tool to make it more useful for model and framework validation (@amd-pworfolk). - Updates and fixes to lemonade test code in `llm_api.py` (@jeremyfowers). - Fix not_enough_tokens bug on oga-bench (@danielholanda). --------- Co-authored-by: amd-pworfolk <[email protected]> Co-authored-by: Daniel Holanda <[email protected]>
- Loading branch information
1 parent
30eb2eb
commit b9e6223
Showing
78 changed files
with
1,555 additions
and
561 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,11 +1,38 @@ | ||
# TurnkeyML Documentation | ||
|
||
This directory contains documentation for the TurnkeyML project: | ||
## LLMs: `lemonade` tooling | ||
|
||
The `docs/lemonade` directory has documentation for the LLM-focused `lemonade` tooling: | ||
- [Getting Started](https://github.com/onnx/turnkeyml/blob/main/docs/lemonade/getting_started.md): start here for LLMs. | ||
- Accuracy tests (task performance): | ||
- [HumanEval](https://github.com/onnx/turnkeyml/blob/main/docs/lemonade/humaneval_accuracy.md): details of the HumanEval coding task test. | ||
- [MMLU](https://github.com/onnx/turnkeyml/blob/main/docs/lemonade/mmlu_accuracy.md): details of the MMLU general reasoning test. | ||
- [Perplexity](https://github.com/onnx/turnkeyml/blob/main/docs/lemonade/perplexity.md): details of the Perplexity test for LLMs. | ||
- Tool-specific setup guides: | ||
- [llama.cpp](https://github.com/onnx/turnkeyml/blob/main/docs/lemonade/llamacpp.md) | ||
- OnnxRuntime GenaI: | ||
- [iGPU/NPU hybrid](https://github.com/onnx/turnkeyml/blob/main/docs/lemonade/ort_genai_hybrid.md) | ||
- [iGPU](https://github.com/onnx/turnkeyml/blob/main/docs/lemonade/ort_genai_igpu.md) | ||
- [NPU](https://github.com/onnx/turnkeyml/blob/main/docs/lemonade/ort_genai_npu.md) | ||
|
||
## CNNs and Transformers: `turnkey` tooling | ||
|
||
The `docs/turnkey` directory contains documentation for the CNN/Transformer-focused `turnkey` tooling: | ||
|
||
- [getting_started.md](https://github.com/onnx/turnkeyml/blob/main/docs/turnkey/getting_started.md) | ||
- [tools_user_guide.md](https://github.com/onnx/turnkeyml/blob/main/docs/turnkey/tools_user_guide.md): User guide for the tools: the `turnkey` CLI and the APIs. | ||
|
||
|
||
There is more useful documentation available in: | ||
- [examples/turnkey/cli/readme.md](https://github.com/onnx/turnkeyml/blob/main/examples/turnkey/cli/readme.md): Tutorial series for learning the `turnkey` CLI. | ||
- [models/readme.md](https://github.com/onnx/turnkeyml/blob/main/models/readme.md): Tutorial for understanding the models and how to use `turnkey` to evaluate the models. | ||
|
||
## General Information | ||
|
||
This directory also contains documentation for the TurnkeyML project as a whole: | ||
|
||
- [code.md](https://github.com/onnx/turnkeyml/blob/main/docs/code.md): Code organization for the tools. | ||
- [install.md](https://github.com/onnx/turnkeyml/blob/main/docs/install.md): Installation instructions for the tools. | ||
- [tools_user_guide.md](https://github.com/onnx/turnkeyml/blob/main/docs/tools_user_guide.md): User guide for the tools: the `turnkey` CLI and the APIs. | ||
- [versioning.md](https://github.com/onnx/turnkeyml/blob/main/docs/versioning.md): Defines the semantic versioning rules for the `turnkey` package. | ||
|
||
There is more useful documentation available in: | ||
- [examples/cli/readme.md](https://github.com/onnx/turnkeyml/blob/main/examples/cli/readme.md): Tutorial series for learning the `turnkey` CLI. | ||
- [models/readme.md](https://github.com/onnx/turnkeyml/blob/main/models/readme.md): Tutorial for understanding the models and how to use `turnkey` to evaluate the models. | ||
- [contribute.md](https://github.com/onnx/turnkeyml/blob/main/docs/contribute.md): Contribution guidelines for the project. | ||
- [converage.md](https://github.com/onnx/turnkeyml/blob/main/docs/coverage.md): How to run code coverage metrics. |
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,18 @@ | ||
# Lemonade Examples | ||
|
||
This folder contains examples of how to use `lemonade` via the high-level LEAP APIs. These APIs make it easy to load a model, generate responses, and also show how to stream those responses. | ||
|
||
The `demos/` folder also contains some higher-level application demos of the LEAP APIs. Learn more in `demos/README.md`. | ||
|
||
## LEAP Examples | ||
|
||
This table shows which LEAP examples are available: | ||
|
||
| Framework | CPU | GPU | NPU | Hybrid | | ||
|----------------------------|---------------------------|------------------|-----------------|--------------------| | ||
| Huggingface | leap_basic.py | - | - | - | | ||
| OGA | leap_oga_cpu.py | leap_oga_igpu.py | leap_oga_npu.py | leap_oga_hybrid.py | | ||
| Huggingface with streaming | leap_streaming.py | - | - | - | | ||
| OGA with streaming | leap_oga_cpu_streaming.py | leap_oga_igpu_streaming.py | leap_oga_npu_streaming.py | leap_oga_hybrid_streaming.py | | ||
|
||
To run a LEAP example, first set up a conda environment with the appropriate framework and backend support. Then run the scripts with a command like `python leap_basic.py`. |
Oops, something went wrong.