forked from lemonade-sdk/lemonade
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
107 lines (104 loc) · 3.52 KB
/
setup.py
File metadata and controls
107 lines (104 loc) · 3.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
from setuptools import setup
with open("src/lemonade/version.py", encoding="utf-8") as fp:
version = fp.read().split('"')[1]
setup(
name="lemonade-sdk",
version=version,
description="Lemonade SDK: Your LLM Aide for Validation and Deployment",
author_email="lemonade@amd.com",
package_dir={"": "src"},
packages=[
"lemonade",
"lemonade.profilers",
"lemonade.common",
"lemonade.tools",
"lemonade.tools.huggingface",
"lemonade.tools.oga",
"lemonade.tools.llamacpp",
"lemonade.tools.flm",
"lemonade.tools.report",
"lemonade.tools.server.utils",
"lemonade.tools.server",
"lemonade_install",
"lemonade_server",
],
install_requires=[
# Minimal dependencies required for end-users who are running
# apps deployed on Lemonade SDK
"invoke>=2.0.0",
"onnx==1.18.0",
"pyyaml>=5.4",
"typeguard>=2.3.13",
"packaging>=20.9",
"numpy",
"fasteners",
"GitPython>=3.1.40",
"psutil>=6.1.1",
"wmi; platform_system == 'Windows'",
"py-cpuinfo",
"pytz",
"zstandard",
"fastapi",
"uvicorn[standard]",
"openai>=2.0.0,<3.0.0",
"transformers<=4.53.2",
"jinja2",
"tabulate",
"sentencepiece",
"huggingface-hub[hf_xet]==0.33.0",
"python-dotenv",
"python-multipart",
# macOS-specific dependencies
"rumps>=0.4.0; sys_platform == 'darwin'",
],
extras_require={
# The non-dev extras are meant to deploy specific backends into end-user
# applications, without including developer-focused tools
# Primary NPU extra using unified PyPI package
"oga-ryzenai": [
"onnxruntime-genai-directml-ryzenai==0.9.2.1",
"protobuf>=6.30.1",
],
"oga-cpu": [
"onnxruntime-genai==0.9.2",
"onnxruntime >=1.22.0",
],
# Developer-focused tools for benchmarking, accuracy testing, and
# model preparation (ONNX export, quantization, device-specifc optimization, etc.)
"dev": [
# Minimal dependencies for developers to use all features of
# Lemonade SDK, including building and optimizing models
"torch>=2.6.0",
"accelerate",
"datasets",
"pandas>=1.5.3",
"matplotlib",
# Install human-eval from a forked repo with Windows support until the
# PR (https://github.com/openai/human-eval/pull/53) is merged
"human-eval-windows==1.0.4",
"lm-eval[api]",
],
"model-generate": [
"model-generate==1.5.0; platform_system=='Windows' and python_version=='3.10'",
],
},
classifiers=[],
entry_points={
"console_scripts": [
"lemonade=lemonade:lemonadecli",
"lemonade-install=lemonade_install:installcli",
"lemonade-server-dev=lemonade_server.cli:main",
"lsdev=lemonade_server.cli:developer_entrypoint",
]
},
python_requires=">=3.10, <3.14",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
include_package_data=True,
package_data={
"lemonade_server": ["server_models.json"],
"lemonade": ["tools/server/static/**/*"],
},
)
# This file was originally licensed under Apache 2.0. It has been modified.
# Modifications Copyright (c) 2025 AMD