-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (51 loc) · 1.49 KB
/
pyproject.toml
File metadata and controls
60 lines (51 loc) · 1.49 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "hsa-dpo"
version = "1.0.0"
description = "Detecting and Mitigating Hallucination in Large Vision Language Models via Fine-Grained AI Feedback"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
# Core ML frameworks - keep exact versions for compatibility
"torch==2.0.1",
"torchvision==0.15.2",
"transformers==4.31.0",
"tokenizers>=0.12.1,<0.14",
"sentencepiece==0.1.99",
"accelerate==0.22.0",
"peft==0.4.0",
"bitsandbytes==0.41.0",
"deepspeed==0.9.5",
# LLaVA dependencies (LLaVA code is included in hsa_dpo/models/llava-v1_5/)
"einops==0.6.1",
"einops-exts==0.0.4",
"timm==0.6.13",
# Data processing
"numpy==1.26.1",
"Pillow",
"datasets",
"jsonlines",
"scikit-learn==1.2.2",
# Training utilities
"tensorboard",
"wandb",
# Additional required utilities
"shortuuid",
"requests",
"pydantic<2,>=1",
"fairscale==0.4.4",
]
[project.optional-dependencies]
flash-attn = ["flash-attn"]
dev = ["pytest", "black", "flake8"]
[project.urls]
[tool.setuptools.packages.find]
exclude = ["assets*", "benchmark*", "docs", "dist*", "playground*", "scripts*", "tests*"]
[tool.wheel]
exclude = ["assets*", "benchmark*", "docs", "dist*", "playground*", "scripts*", "tests*"]