uwg commited on
Commit
bf7b947
1 Parent(s): 6063721

Upload 20 files

Browse files
fast-repo2/.gitattributes ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tflite filter=lfs diff=lfs merge=lfs -text
29
+ *.tgz filter=lfs diff=lfs merge=lfs -text
30
+ *.wasm filter=lfs diff=lfs merge=lfs -text
31
+ *.xz filter=lfs diff=lfs merge=lfs -text
32
+ *.zip filter=lfs diff=lfs merge=lfs -text
33
+ *.zst filter=lfs diff=lfs merge=lfs -text
34
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
fast-repo2/README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - code
6
+ ---
7
+
8
+ # This is what powered almost all of my colab
9
+
10
+ Mostly uses LZ4 compression, which means you'll need a specialized program to extract it, especially in windows.
11
+
12
+ For Windows users, I recommend using [7zip-zstd](https://github.com/mcmilk/7-Zip-zstd/releases/latest) (it's 7zip but with lz4 support and more)
13
+
14
+ For Linux users, use tar with liblz4-tool like this: `tar -xI lz4 -f repo.tar.lz4`
fast-repo2/cache.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67d4004a3bf1ded742493ab167f77e49bf992962041d0a59466fae3735682efd
3
+ size 65972575
fast-repo2/dep.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49da70fc604e036b5b4ccb0dfe46677b55d3753b547b1c81e2d1714023f2f3d5
3
+ size 212689111
fast-repo2/dep_comfy.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7da4c138304418e9d08291dc066f5a90ef506b1f3f05e0fabfe93cbe2c237fb0
3
+ size 369909138
fast-repo2/exclusion.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ gdown-4.4.0.dist-info
2
+ Pillow-7.1.2.dist-info
3
+ requests-2.23.0.dist-info
4
+ scikit_image-0.18.3.dist-info
5
+ test
fast-repo2/invoke1.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ba280062d5d32dbf5f2ae6048ad669660c61bb3c4a9b3b9c20362a611a693bf
3
+ size 3221225472
fast-repo2/invoke2.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9ed31c169776772880263748cbc564553d478bf5321749f4ab9c2a894c97d5e
3
+ size 3221225472
fast-repo2/invoke3.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:879df72fdde6d6fb41cd67e0b16b93a8194c69eb13ab87c30927db317e10358f
3
+ size 872618172
fast-repo2/invoke_data.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27a827e67f332aae4d190119c4a67a588fef4370242f985291e245ce085fe14e
3
+ size 3749765136
fast-repo2/llama_cache.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0517ad38adff568bf0dbc51ce33f38ebeb0a5ecde4f72ca2fa79e0e42071d0e8
3
+ size 343800
fast-repo2/llama_cache_ooba.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0517ad38adff568bf0dbc51ce33f38ebeb0a5ecde4f72ca2fa79e0e42071d0e8
3
+ size 343800
fast-repo2/llama_dep.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5a1914986a08df5acae7e40b2763d4bf6e6e372e2e5ad74aa5ea4048b60c2e0
3
+ size 47877244
fast-repo2/llama_dep_ooba.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c72637a2d108d2928735bf38fd1f8e1e686aca28975f642a3527a4b4813e653
3
+ size 211651570
fast-repo2/llama_repo_ooba.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ef98402e7ec2538ba918890d32c9db0600ba97509b9e96524d773164cc4aab7
3
+ size 3235445
fast-repo2/patch/0001-karras-v2-experimental.patch ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From 36078b25801787f0a0f145143637f46d33d8c389 Mon Sep 17 00:00:00 2001
2
+ From: Ashen <[email protected]>
3
+ Date: Fri, 7 Apr 2023 22:04:35 -0700
4
+ Subject: [PATCH] karras v2 experimental
5
+
6
+ ---
7
+ k_diffusion/sampling.py | 36 ++++++++++++++++++++++++++++++++++++
8
+ 1 file changed, 36 insertions(+)
9
+
10
+ diff --git a/k_diffusion/sampling.py b/k_diffusion/sampling.py
11
+ index f050f88..4d5df2a 100644
12
+ --- a/k_diffusion/sampling.py
13
+ +++ b/k_diffusion/sampling.py
14
+ @@ -605,3 +605,39 @@ def sample_dpmpp_2m(model, x, sigmas, extra_args=None, callback=None, disable=No
15
+ x = (sigma_fn(t_next) / sigma_fn(t)) * x - (-h).expm1() * denoised_d
16
+ old_denoised = denoised
17
+ return x
18
+ +
19
+ +
20
21
+ +def sample_dpmpp_2m_test(model, x, sigmas, extra_args=None, callback=None, disable=None):
22
+ + """DPM-Solver++(2M)."""
23
+ + extra_args = {} if extra_args is None else extra_args
24
+ + s_in = x.new_ones([x.shape[0]])
25
+ + sigma_fn = lambda t: t.neg().exp()
26
+ + t_fn = lambda sigma: sigma.log().neg()
27
+ + old_denoised = None
28
+ +
29
+ + for i in trange(len(sigmas) - 1, disable=disable):
30
+ + denoised = model(x, sigmas[i] * s_in, **extra_args)
31
+ + if callback is not None:
32
+ + callback({'x': x, 'i': i, 'sigma': sigmas[i], 'sigma_hat': sigmas[i], 'denoised': denoised})
33
+ + t, t_next = t_fn(sigmas[i]), t_fn(sigmas[i + 1])
34
+ + h = t_next - t
35
+ +
36
+ + t_min = min(sigma_fn(t_next), sigma_fn(t))
37
+ + t_max = max(sigma_fn(t_next), sigma_fn(t))
38
+ +
39
+ + if old_denoised is None or sigmas[i + 1] == 0:
40
+ + x = (t_min / t_max) * x - (-h).expm1() * denoised
41
+ + else:
42
+ + h_last = t - t_fn(sigmas[i - 1])
43
+ +
44
+ + h_min = min(h_last, h)
45
+ + h_max = max(h_last, h)
46
+ + r = h_max / h_min
47
+ +
48
+ + h_d = (h_max + h_min) / 2
49
+ + denoised_d = (1 + 1 / (2 * r)) * denoised - (1 / (2 * r)) * old_denoised
50
+ + x = (t_min / t_max) * x - (-h_d).expm1() * denoised_d
51
+ +
52
+ + old_denoised = denoised
53
+ + return x
54
+
55
+ --
56
+ 2.40.0
57
+
fast-repo2/patch/dpmpp-v2.patch ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From 4394a62004260c3b9d781488e85f959a70910af1 Mon Sep 17 00:00:00 2001
2
+ Date: Sat, 8 Apr 2023 15:11:43 +1000
3
+ Subject: [PATCH] add DPMPP 2M V2
4
+
5
+ ---
6
+ modules/sd_samplers_kdiffusion.py | 16 +++++++++-------
7
+ 1 file changed, 9 insertions(+), 7 deletions(-)
8
+
9
+ diff --git a/modules/sd_samplers_kdiffusion.py b/modules/sd_samplers_kdiffusion.py
10
+ index 93f0e55a..9202f4d4 100644
11
+ --- a/modules/sd_samplers_kdiffusion.py
12
+ +++ b/modules/sd_samplers_kdiffusion.py
13
+ @@ -27,12 +27,12 @@ samplers_k_diffusion = [
14
+ ('DPM2 a Karras', 'sample_dpm_2_ancestral', ['k_dpm_2_a_ka'], {'scheduler': 'karras', 'discard_next_to_last_sigma': True}),
15
+ ('DPM++ 2S a Karras', 'sample_dpmpp_2s_ancestral', ['k_dpmpp_2s_a_ka'], {'scheduler': 'karras'}),
16
+ ('DPM++ 2M Karras', 'sample_dpmpp_2m', ['k_dpmpp_2m_ka'], {'scheduler': 'karras'}),
17
+ + ('DPM++ 2M v2', 'sample_dpmpp_2m_v2', ['k_dpmpp_2m'], {}),
18
+ + ('DPM++ 2M Karras v2', 'sample_dpmpp_2m_v2', ['k_dpmpp_2m_ka'], {'scheduler': 'karras'}),
19
+ ('DPM++ SDE Karras', 'sample_dpmpp_sde', ['k_dpmpp_sde_ka'], {'scheduler': 'karras'}),
20
+ ]
21
+
22
+ --
23
+
24
+ ---
25
+ k_diffusion/sampling.py | 36 ++++++++++++++++++++++++++++++++++++
26
+ 1 file changed, 36 insertions(+)
27
+
28
+ diff --git a/repositories/k-diffusion/k_diffusion/sampling.py b/repositories/k-diffusion/k_diffusion/sampling.py
29
+ index f050f88..1b0b282 100644
30
+ --- a/repositories/k-diffusion/k_diffusion/sampling.py
31
+ +++ b/repositories/k-diffusion/k_diffusion/sampling.py
32
+ @@ -605,4 +605,39 @@ def sample_dpmpp_2m(model, x, sigmas, extra_args=None, callback=None, disable=No
33
+ x = (sigma_fn(t_next) / sigma_fn(t)) * x - (-h).expm1() * denoised_d
34
+ old_denoised = denoised
35
+ return x
36
+ +
37
+ +
38
39
+ +def sample_dpmpp_2m_v2(model, x, sigmas, extra_args=None, callback=None, disable=None):
40
+ + """DPM-Solver++(2M)V2."""
41
+ + extra_args = {} if extra_args is None else extra_args
42
+ + s_in = x.new_ones([x.shape[0]])
43
+ + sigma_fn = lambda t: t.neg().exp()
44
+ + t_fn = lambda sigma: sigma.log().neg()
45
+ + old_denoised = None
46
+ +
47
+ + for i in trange(len(sigmas) - 1, disable=disable):
48
+ + denoised = model(x, sigmas[i] * s_in, **extra_args)
49
+ + if callback is not None:
50
+ + callback({'x': x, 'i': i, 'sigma': sigmas[i], 'sigma_hat': sigmas[i], 'denoised': denoised})
51
+ + t, t_next = t_fn(sigmas[i]), t_fn(sigmas[i + 1])
52
+ + h = t_next - t
53
+ +
54
+ + t_min = min(sigma_fn(t_next), sigma_fn(t))
55
+ + t_max = max(sigma_fn(t_next), sigma_fn(t))
56
+ +
57
+ + if old_denoised is None or sigmas[i + 1] == 0:
58
+ + x = (t_min / t_max) * x - (-h).expm1() * denoised
59
+ + else:
60
+ + h_last = t - t_fn(sigmas[i - 1])
61
+ +
62
+ + h_min = min(h_last, h)
63
+ + h_max = max(h_last, h)
64
+ + r = h_max / h_min
65
+ +
66
+ + h_d = (h_max + h_min) / 2
67
+ + denoised_d = (1 + 1 / (2 * r)) * denoised - (1 / (2 * r)) * old_denoised
68
+ + x = (t_min / t_max) * x - (-h_d).expm1() * denoised_d
69
+ +
70
+ + old_denoised = denoised
71
+ + return x
72
+ --
73
+ 2.34.1
74
+
fast-repo2/repo.tar.lz4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f30002e762cc62260920dbeb26acdadef6892786ce7527f382d4f61a8bd31bf
3
+ size 2213293892
fast-repo2/trimmed.txt ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ accelerate
2
+ accelerate-0.15.0.dist-info
3
+ addict
4
+ addict-2.4.0.dist-info
5
+ antlr4
6
+ antlr4_python3_runtime-4.9.3.dist-info
7
+ anyio
8
+ anyio-3.6.2.dist-info
9
+ basicsr
10
+ basicsr-1.4.2.dist-info
11
+ bcrypt
12
+ bcrypt-4.0.1.dist-info
13
+ benchmarks
14
+ boltons
15
+ boltons-21.0.0.dist-info
16
+ CHANGELOG.md
17
+ cleanfid
18
+ clean_fid-0.1.35.dist-info
19
+ clip
20
+ clip-1.0.dist-info
21
+ coloredlogs
22
+ coloredlogs-15.0.1.dist-info
23
+ coloredlogs.pth
24
+ Crypto
25
+ cryptography
26
+ cryptography-38.0.4.dist-info
27
+ deprecate
28
+ doc
29
+ einops
30
+ einops-0.6.0.dist-info
31
+ experimental
32
+ facexlib
33
+ facexlib-0.2.5.dist-info
34
+ fairscale
35
+ fairscale-0.4.4.dist-info
36
+ fastapi
37
+ fastapi-0.88.0.dist-info
38
+ ffmpy-0.3.0.dist-info
39
+ ffmpy.py
40
+ filterpy
41
+ filterpy-1.4.5.dist-info
42
+ font_roboto
43
+ font_roboto-0.0.1.dist-info
44
+ fonts
45
+ fonts-0.0.3.dist-info
46
+ ftfy
47
+ ftfy-6.1.1.dist-info
48
+ gfpgan
49
+ gfpgan-1.3.5.dist-info
50
+ git
51
+ gitdb
52
+ gitdb-4.0.10.dist-info
53
+ GitPython-3.1.29.dist-info
54
+ gradio
55
+ gradio-3.9.dist-info
56
+ h11
57
+ h11-0.12.0.dist-info
58
+ httpcore
59
+ httpcore-0.15.0.dist-info
60
+ httpx
61
+ httpx-0.23.1.dist-info
62
+ huggingface_hub
63
+ huggingface_hub-0.11.1.dist-info
64
+ humanfriendly
65
+ humanfriendly-10.0.dist-info
66
+ imwatermark
67
+ inflection
68
+ inflection-0.5.1.dist-info
69
+ inflection.py
70
+ invisible_watermark-0.1.5.dist-info
71
+ jsonmerge
72
+ jsonmerge-1.9.0.dist-info
73
+ kornia
74
+ kornia-0.6.9.dist-info
75
+ lark
76
+ lark-1.1.5.dist-info
77
+ linkify_it
78
+ linkify_it_py-1.0.3.dist-info
79
+ lpips
80
+ lpips-0.1.4.dist-info
81
+ markdown_it
82
+ markdown_it_py-2.1.0.dist-info
83
+ mdit_py_plugins
84
+ mdit_py_plugins-0.3.3.dist-info
85
+ mdurl
86
+ mdurl-0.1.2.dist-info
87
+ multipart
88
+ mypy_extensions-0.4.3.dist-info
89
+ mypy_extensions.py
90
+ nacl
91
+ omegaconf
92
+ omegaconf-2.3.0.dist-info
93
+ onnx
94
+ onnx-1.12.0.dist-info
95
+ onnxruntime
96
+ onnxruntime-1.13.1.dist-info
97
+ open_clip
98
+ open_clip_torch-2.7.0.dist-info
99
+ orjson
100
+ orjson-3.8.3.dist-info
101
+ paramiko
102
+ paramiko-2.12.0.dist-info
103
+ piexif
104
+ piexif-1.1.3.dist-info
105
+ Pillow-9.3.0.dist-info
106
+ pycryptodome-3.16.0.dist-info
107
+ pyDeprecate-0.3.2.dist-info
108
+ pydevd_plugins
109
+ pydub
110
+ pydub-0.25.1.dist-info
111
+ PyNaCl-1.5.0.dist-info
112
+ pyre_extensions
113
+ pyre_extensions-0.0.23.dist-info
114
+ python_multipart-0.0.4.dist-info
115
+ pytorch_lightning
116
+ pytorch_lightning-1.7.7.dist-info
117
+ README.md
118
+ realesrgan
119
+ realesrgan-0.3.0.dist-info
120
+ resize_right
121
+ resize_right-0.0.2.dist-info
122
+ rfc3986
123
+ rfc3986-1.5.0.dist-info
124
+ safetensors
125
+ safetensors-0.2.6.dist-info
126
+ scikit_image-0.19.3.dist-info
127
+ sentencepiece
128
+ sentencepiece-0.1.97.dist-info
129
+ smmap
130
+ smmap-5.0.0.dist-info
131
+ sniffio
132
+ sniffio-1.3.0.dist-info
133
+ starlette
134
+ starlette-0.22.0.dist-info
135
+ tb_nightly-2.12.0a20221222.dist-info
136
+ timm
137
+ timm-0.4.12.dist-info
138
+ tokenizers
139
+ tokenizers-0.12.1.dist-info
140
+ tokenizers.libs
141
+ torchdiffeq
142
+ torchdiffeq-0.2.3.dist-info
143
+ torchmetrics
144
+ torchmetrics-0.11.0.dist-info
145
+ torchsde
146
+ torchsde-0.2.5.dist-info
147
+ training
148
+ trampoline
149
+ trampoline-0.1.2.dist-info
150
+ transformers
151
+ transformers-4.19.2.dist-info
152
+ typing_inspect-0.8.0.dist-info
153
+ typing_inspect.py
154
+ uc_micro
155
+ uc_micro_py-1.0.1.dist-info
156
+ uvicorn
157
+ uvicorn-0.20.0.dist-info
158
+ websockets
159
+ websockets-10.4.dist-info
160
+ xformers
161
+ xformers-0.0.15.dev0+189828c.d20221207.dist-info
162
+ yapf
163
+ yapf-0.32.0.dist-info
164
+ yapftests
fast-repo2/ubuntu_deps.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf9bfe1f4186164e3efa4e690dd491c7d41e344feaab4741ae2fda0332fc12c8
3
+ size 4389294