pyproject.toml 1.64 KB
Newer Older
chenxl's avatar
chenxl committed
1
2
3
[build-system]
requires = [
  "setuptools",
4
  "torch >= 2.3.0", 
chenxl's avatar
chenxl committed
5
  "ninja",
chenxl's avatar
chenxl committed
6
7
  "packaging",
  "cpufeature"
chenxl's avatar
chenxl committed
8
9
  ]
build-backend = "setuptools.build_meta"
chenxl's avatar
chenxl committed
10
11
12
13
14
15
16
17
18
19
20

[project]

name = "ktransformers"

dynamic = ["version"]

dependencies = [
  "torch >= 2.3.0",
  "transformers == 4.43.2",
  "fastapi >= 0.111.0",
21
  "uvicorn >= 0.30.1",
chenxl's avatar
chenxl committed
22
23
24
25
  "langchain >= 0.2.0",
  "blessed >= 1.20.0",
  "accelerate >= 0.31.0",
  "sentencepiece >= 0.1.97",
unicornchan's avatar
unicornchan committed
26
  "flash_attn == 2.7.4.post1",
chenxl's avatar
chenxl committed
27
28
29
30
31
  "setuptools",
  "ninja",
  "wheel",
  "colorlog",
  "build",
chenxl's avatar
chenxl committed
32
33
  "fire",
  "protobuf"
chenxl's avatar
chenxl committed
34
35
]

36
requires-python = ">=3.10"
chenxl's avatar
chenxl committed
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

authors = [
  {name = "KVCache.AI", email = "zhang.mingxing@outlook.com"}
]

maintainers = [
  {name = "james0zan", email = "zhang.mingxing@outlook.com"},
  {name = "awake", email = "awake@approaching.ai"},
  {name = "unicorn chan", email = "nl@approaching.ai"}
]

description = "KTransformers, pronounced as Quick Transformers, is designed to enhance your Transformers experience with advanced kernel optimizations and placement/parallelism strategies."

readme = "README.md"
license = {file = "LICENSE"}

keywords = ["ktransformers", "llm"]

classifiers = [
  "Development Status :: 4 - Beta",
57
  "Programming Language :: Python :: 3.10",
chenxl's avatar
chenxl committed
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
  "Programming Language :: Python :: 3.11",
  "Programming Language :: Python :: 3.12"
]

[project.urls]
Homepage = "https://kvcache.ai"
Repository = "https://github.com/kvcache-ai/ktransformers.git"
Issues = "https://github.com/kvcache-ai/ktransformers/issues"


[project.scripts]
ktransformers = "ktransformers.server.main:main"

[tool.setuptools.packages.find]
where = ["./", ]
73
74
75
76
77
include = ["ktransformers"]
[tool.black]
line-length = 120
preview = true
unstable = true