Spaces:
Sleeping
Sleeping
File size: 4,429 Bytes
e5d40e3 |
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 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "llava-implementation"
version = "0.1.0"
description = "A modern implementation of LLaVA with a beautiful web interface"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
authors = [
{name = "Prashant Ambati", email = "your.email@example.com"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"torch>=2.0.0",
"torchvision>=0.15.0",
"transformers>=4.36.0",
"accelerate>=0.25.0",
"pillow>=10.0.0",
"numpy>=1.24.0",
"tqdm>=4.65.0",
"matplotlib>=3.7.0",
"opencv-python>=4.8.0",
"einops>=0.7.0",
"timm>=0.9.0",
"sentencepiece>=0.1.99",
"peft>=0.7.0",
"bitsandbytes>=0.41.0",
"safetensors>=0.4.0",
"gradio==4.44.1",
"fastapi>=0.109.0",
"uvicorn>=0.27.0",
"python-multipart>=0.0.6",
"pydantic>=2.5.0",
"python-jose>=3.3.0",
"passlib>=1.7.4",
"bcrypt>=4.0.1",
"aiofiles>=23.2.0",
"httpx>=0.26.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.12.0",
"pytest-asyncio>=0.23.5",
"pytest-xdist>=3.5.0",
"black>=24.1.1",
"isort>=5.13.2",
"flake8>=7.0.0",
"mypy>=1.8.0",
"types-Pillow>=10.2.0.20240106",
"types-requests>=2.31.0.20240125",
"sphinx>=7.2.6",
"sphinx-rtd-theme>=2.0.0",
"sphinx-autodoc-typehints>=2.0.1",
"sphinx-copybutton>=0.5.2",
"sphinx-tabs>=3.4.4",
"pre-commit>=3.6.0",
"ipython>=8.21.0",
"jupyter>=1.0.0",
"notebook>=7.0.7",
"ipykernel>=6.29.0",
"build>=1.0.3",
"twine>=4.0.2",
"wheel>=0.42.0",
"memory-profiler>=0.61.0",
"line-profiler>=4.1.2",
"debugpy>=1.8.0",
]
[project.urls]
Homepage = "https://github.com/Prashant-ambati/llava-implementation"
Documentation = "https://github.com/Prashant-ambati/llava-implementation#readme"
Repository = "https://github.com/Prashant-ambati/llava-implementation.git"
Issues = "https://github.com/Prashant-ambati/llava-implementation/issues"
"Bug Tracker" = "https://github.com/Prashant-ambati/llava-implementation/issues"
[tool.setuptools]
packages = ["src"]
[tool.black]
line-length = 88
target-version = ["py38"]
include = '\.pyi?$'
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_optional = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --cov=src"
testpaths = [
"tests",
]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
]
show_missing = true
fail_under = 80
[tool.bandit]
exclude_dirs = ["tests", "docs"]
skips = ["B101"]
[tool.ruff]
line-length = 88
target-version = "py38"
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"PL", # pylint
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line length violations
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.isort]
known-first-party = ["src"]
[tool.ruff.mccabe]
max-complexity = 10 |