boatbomber commited on
Commit
3e1a4b0
·
1 Parent(s): 4c9f373

Setup training dir

Browse files
Files changed (2) hide show
  1. training/pyproject.toml +66 -0
  2. training/uv.lock +0 -0
training/pyproject.toml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "NabuOCR"
3
+ version = "0.1.0"
4
+ description = "Neural Cuneiform Transliteration"
5
+ readme = "README.md"
6
+ requires-python = ">=3.12"
7
+ dependencies = [
8
+ "unsloth>=2025.12.4",
9
+ "unsloth-zoo>=2025.12.3",
10
+ "triton-windows<3.6",
11
+ "xformers>=0.0.33",
12
+ "trl>=0.24.0",
13
+ "transformers>=4.45.1,<5.0.0",
14
+ "huggingface-hub[cli,hf-xet]>=0.34.4",
15
+ "ipython>=9.4.0",
16
+ "ipywidgets>=8.1.7",
17
+ "ipykernel>=6.30.1",
18
+ "holoviews>=1.21.0",
19
+ "prettytable>=3.16.0",
20
+ "nbformat>=5.10.4",
21
+ "qwen-vl-utils>=0.0.11",
22
+ "python-dotenv>=1.1.0",
23
+ "pillow>=12.0.0",
24
+ "einops>=0.8.1",
25
+ "jiwer>=4.0.0",
26
+ "addict>=2.4.0",
27
+ "easydict>=1.13",
28
+ "wcwidth>=0.2.14",
29
+ "pyxdameraulevenshtein>=1.9.0",
30
+ ]
31
+
32
+ [project.optional-dependencies]
33
+ cpu = ["torch>=2.9.0", "torchvision>=0.24.0", "torchaudio>=2.9.0"]
34
+ cu128 = ["torch>=2.9.0", "torchvision>=0.24.0", "torchaudio>=2.9.0"]
35
+
36
+ [tool.uv]
37
+ environments = ["sys_platform == 'win32'"]
38
+ conflicts = [[{ extra = "cpu" }, { extra = "cu128" }]]
39
+
40
+ [tool.uv.sources]
41
+ xformers = { index = "pytorch-cu128", marker = "platform_system == 'Windows'" }
42
+ torch = [
43
+ { index = "pytorch-cpu", extra = "cpu" },
44
+ { index = "pytorch-cu128", extra = "cu128" },
45
+ ]
46
+ torchaudio = [
47
+ { index = "pytorch-cpu", extra = "cpu" },
48
+ { index = "pytorch-cu128", extra = "cu128" },
49
+ ]
50
+ torchvision = [
51
+ { index = "pytorch-cpu", extra = "cpu" },
52
+ { index = "pytorch-cu128", extra = "cu128" },
53
+ ]
54
+
55
+ [[tool.uv.index]]
56
+ name = "pytorch-cpu"
57
+ url = "https://download.pytorch.org/whl/cpu"
58
+ explicit = true
59
+
60
+ [[tool.uv.index]]
61
+ name = "pytorch-cu128"
62
+ url = "https://download.pytorch.org/whl/cu128"
63
+ explicit = true
64
+
65
+ [tool.uv.extra-build-dependencies]
66
+ flash-attn = ["torch"]
training/uv.lock ADDED
The diff for this file is too large to render. See raw diff