Lemonade release v6.0.0: new OpenAI server, improvements, fixes #291
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking Changes
New OpenAI-Compatible Server
The previous
serve
Tool
has been replaced by a new standalone serving command. This new server has OpenAI API compatibility and will add Ollama compatibility in the near future.lemoande -i CHECKPOINT oga-load --args serve
lemonade serve
, then use REST APIs to control model loading, completions, etc. See https://github.com/onnx/turnkeyml/blob/main/docs/lemonade/server_spec.md to learn more.The server can also be installed and used with no-code by running
Lemonade_Server_Installer.exe
, which is provided as a release asset in this and all future releases.The server code was also moved out of tools/chat.py into its own file in tools/serve.py. We also renamed chat.py to prompt.py for clarity, since that file now only contains the prompting tool.
The LEAP name has been deprecated
In the interest of reducing naming confusion, the "LEAP API" is now simply the "high-level lemonade API".
from lemonade.leap import from_pretrained
from lemonade.api import from_pretrained
Summary of Contributions
--prompts 128 256 512
(@amd-pworfolk)avg_accuracy
stats has been renamed toaverage_mmlu_accuracy
for clarity with respect to non-MMLU accuracy tests (@jeremyfowers), (attn @apsonawane)Lemonade_Server_Installer.exe
(@jeremyfowers)serve
tool (@danielholanda)chat
module toprompt
(@jeremyfowers)