-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
20 changed files
with
218 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ __pycache__ | |
weights/ | ||
.DS_Store | ||
*.png | ||
*.pt | ||
*.pt | ||
build/ | ||
*.egg-info/ |
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
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,7 +1,6 @@ | ||
#!/bin/bash | ||
MODEL_PATH=/Users/lujianghu/Documents/flux/schnell_4bit | ||
|
||
export PYTHONPATH="./":$PYTHONPATH; | ||
python3 -m tllm.entrypoints.api_server --model_path $MODEL_PATH --client_size 1 --is_local --is_debug --is_image | ||
tllm.server --model_path $MODEL_PATH --client_size 1 --is_local --is_debug --is_image | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
aiohttp | ||
fastapi | ||
numpy | ||
requests | ||
tabulate | ||
tqdm | ||
typing_extensions | ||
uvicorn | ||
websockets | ||
pillow | ||
huggingface_hub | ||
psutil | ||
gradio==5.4.0 | ||
grpcio==1.68.1 | ||
lz4==4.3.3 | ||
protobuf==5.28.3 | ||
pydantic==2.9.2 | ||
transformers==4.46.0 |
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,2 @@ | ||
mlx | ||
mlx_lm==0.19.2 |
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 @@ | ||
vllm |
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,68 @@ | ||
from setuptools import find_packages, setup | ||
|
||
# 基础依赖 | ||
install_requires = [ | ||
"aiohttp", | ||
"fastapi", | ||
"numpy", | ||
"requests", | ||
"tabulate", | ||
"tqdm", | ||
"typing_extensions", | ||
"uvicorn", | ||
"websockets", | ||
"pillow", | ||
"huggingface_hub", | ||
"gradio", | ||
"psutil", | ||
"grpcio==1.68.1", | ||
"lz4==4.3.3", | ||
"protobuf==5.28.3", | ||
"pydantic==2.9.2", | ||
"transformers==4.46.0", | ||
] | ||
|
||
# 平台特定依赖 | ||
mlx_requires = ["mlx", "mlx_lm==0.19.2"] | ||
|
||
tinygrad_requires = [ | ||
"tinygrad", | ||
] | ||
|
||
torch_requires = [ | ||
"vllm", | ||
] | ||
|
||
# 可选功能依赖 | ||
extras_require = { | ||
"mlx": mlx_requires, | ||
# 'tinygrad': tinygrad_requires, | ||
"torch": torch_requires, | ||
"all": mlx_requires + torch_requires, # 全部安装(可能在某些平台上无法使用) | ||
"dev": [ | ||
"black", | ||
"isort", | ||
], | ||
} | ||
|
||
setup( | ||
name="tllm", | ||
version="0.1.0", | ||
packages=find_packages(), | ||
install_requires=install_requires, | ||
extras_require=extras_require, | ||
python_requires=">=3.9", # 指定最低 Python 版本要求 | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
], | ||
entry_points={ | ||
"console_scripts": [ | ||
"tllm.server=tllm.entrypoints.api_server:main", | ||
"tllm.client=tllm.entrypoints.handler.handler:main", | ||
], | ||
}, | ||
) |
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.