ommlds 0.0.0.dev517__py3-none-any.whl → 0.0.0.dev519__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ommlds/backends/tinygrad/models/sdxl/cli.py +2 -3
- ommlds/cli/state/sql.py +26 -0
- ommlds/minichain/text/applypatch.py +1 -1
- {ommlds-0.0.0.dev517.dist-info → ommlds-0.0.0.dev519.dist-info}/METADATA +4 -4
- {ommlds-0.0.0.dev517.dist-info → ommlds-0.0.0.dev519.dist-info}/RECORD +9 -8
- {ommlds-0.0.0.dev517.dist-info → ommlds-0.0.0.dev519.dist-info}/WHEEL +0 -0
- {ommlds-0.0.0.dev517.dist-info → ommlds-0.0.0.dev519.dist-info}/entry_points.txt +0 -0
- {ommlds-0.0.0.dev517.dist-info → ommlds-0.0.0.dev519.dist-info}/licenses/LICENSE +0 -0
- {ommlds-0.0.0.dev517.dist-info → ommlds-0.0.0.dev519.dist-info}/top_level.txt +0 -0
|
@@ -168,9 +168,8 @@ def _main() -> None:
|
|
|
168
168
|
'stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors'
|
|
169
169
|
)
|
|
170
170
|
weights = (
|
|
171
|
-
args.weights
|
|
172
|
-
|
|
173
|
-
else fetch(default_weight_url, 'sd_xl_base_1.0.safetensors')
|
|
171
|
+
args.weights or
|
|
172
|
+
fetch(default_weight_url, 'sd_xl_base_1.0.safetensors')
|
|
174
173
|
)
|
|
175
174
|
load_state_dict(model, safe_load(weights), strict=False)
|
|
176
175
|
|
ommlds/cli/state/sql.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import typing as ta
|
|
2
|
+
|
|
3
|
+
from omlish import sql
|
|
4
|
+
from omlish.sql import Q
|
|
5
|
+
|
|
6
|
+
from .storage import MarshalStateStorage
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
T = ta.TypeVar('T')
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
##
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class SqlStateStorage(MarshalStateStorage):
|
|
16
|
+
def __init__(self, db: sql.api.AsyncDb) -> None:
|
|
17
|
+
super().__init__()
|
|
18
|
+
|
|
19
|
+
self._db = db
|
|
20
|
+
|
|
21
|
+
async def load_state(self, key: str, ty: type[T] | None) -> T | None:
|
|
22
|
+
row = sql.api.query_opt_one(self._db, Q.select([Q.n.value], Q.n.states, Q.eq(Q.n.key, key))) # noqa
|
|
23
|
+
raise NotImplementedError
|
|
24
|
+
|
|
25
|
+
async def save_state(self, key: str, obj: ta.Any | None, ty: type[T] | None) -> None:
|
|
26
|
+
raise NotImplementedError
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ommlds
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev519
|
|
4
4
|
Summary: ommlds
|
|
5
5
|
Author: wrmsr
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -14,9 +14,9 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
14
14
|
Requires-Python: >=3.13
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: omlish==0.0.0.
|
|
17
|
+
Requires-Dist: omlish==0.0.0.dev519
|
|
18
18
|
Provides-Extra: all
|
|
19
|
-
Requires-Dist: omdev==0.0.0.
|
|
19
|
+
Requires-Dist: omdev==0.0.0.dev519; extra == "all"
|
|
20
20
|
Requires-Dist: llama-cpp-python~=0.3; extra == "all"
|
|
21
21
|
Requires-Dist: mlx~=0.30; sys_platform == "darwin" and extra == "all"
|
|
22
22
|
Requires-Dist: mlx-lm~=0.30; sys_platform == "darwin" and extra == "all"
|
|
@@ -39,7 +39,7 @@ Requires-Dist: mwparserfromhell~=0.7; extra == "all"
|
|
|
39
39
|
Requires-Dist: wikitextparser~=0.56; extra == "all"
|
|
40
40
|
Requires-Dist: lxml>=5.3; python_version < "3.13" and extra == "all"
|
|
41
41
|
Provides-Extra: omdev
|
|
42
|
-
Requires-Dist: omdev==0.0.0.
|
|
42
|
+
Requires-Dist: omdev==0.0.0.dev519; extra == "omdev"
|
|
43
43
|
Provides-Extra: backends
|
|
44
44
|
Requires-Dist: llama-cpp-python~=0.3; extra == "backends"
|
|
45
45
|
Requires-Dist: mlx~=0.30; sys_platform == "darwin" and extra == "backends"
|
|
@@ -93,7 +93,7 @@ ommlds/backends/tinygrad/models/llama3/tokenization.py,sha256=CoanxZCtUgRvB0biMj
|
|
|
93
93
|
ommlds/backends/tinygrad/models/llama3/transformer.py,sha256=QKhmIqTlA4fx7wTAmtEcjlT6Cgz2lTn2NZvAwZuqAhU,5572
|
|
94
94
|
ommlds/backends/tinygrad/models/sdxl/__init__.py,sha256=uBezvz6o9---pB4eVHG_k2q6anZGYqYgEub6rQH2xNA,428
|
|
95
95
|
ommlds/backends/tinygrad/models/sdxl/__main__.py,sha256=gFhR9DikwDZk0LqgdR3qq_aXQHThUOPllDmHDOfnFAU,67
|
|
96
|
-
ommlds/backends/tinygrad/models/sdxl/cli.py,sha256=
|
|
96
|
+
ommlds/backends/tinygrad/models/sdxl/cli.py,sha256=MLaBoEYUaEUwGU3J1-aNBSmWQzJpUv8C8FtdvAvqFa0,6486
|
|
97
97
|
ommlds/backends/tinygrad/models/sdxl/clip.py,sha256=u9PXN5TQZjVuRk6CaKaXuemYg8Eeq-hGk_ry37Ylc1c,20013
|
|
98
98
|
ommlds/backends/tinygrad/models/sdxl/sdxl.py,sha256=3lzC_6PJHSFQKT7VCdjL1Kzi9vDhtzHYwJStdmq_CSE,21181
|
|
99
99
|
ommlds/backends/tinygrad/models/sdxl/unet.py,sha256=1hBpo22d8N7GNmCc449fpD2QvYz-ZYCD795moNxjc9g,12507
|
|
@@ -240,6 +240,7 @@ ommlds/cli/sessions/embedding/inject.py,sha256=i9Vxx0LrsVmi3jtr_KHjBaQDZ84zjDa39
|
|
|
240
240
|
ommlds/cli/sessions/embedding/session.py,sha256=_bzALR8rWTtOsb_0rnp2318KzYAVPato2WFamAnuMZk,789
|
|
241
241
|
ommlds/cli/state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
242
242
|
ommlds/cli/state/inject.py,sha256=-wqovpgxLYBpJkkCzscn2o6F6AD-agF8PoNjVac6FuQ,702
|
|
243
|
+
ommlds/cli/state/sql.py,sha256=V5wFBiJhoL5D32unJCK3y81l1x2Ob4am1c1zfi4OmS4,630
|
|
243
244
|
ommlds/cli/state/storage.py,sha256=Wr8DVuEGUxfFJn0tMWNTVdint6NBDdLKstNWSjx8sKw,3232
|
|
244
245
|
ommlds/datasets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
245
246
|
ommlds/datasets/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -455,7 +456,7 @@ ommlds/minichain/services/services.py,sha256=c2uHH5Pt0wtUDQgJQEbw6NsS5NVSXMJirWI
|
|
|
455
456
|
ommlds/minichain/stream/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
456
457
|
ommlds/minichain/stream/services.py,sha256=H6osaS7bhU451llcAc71_lhjR8bts7IFyNB66N2BNEc,5674
|
|
457
458
|
ommlds/minichain/text/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
458
|
-
ommlds/minichain/text/applypatch.py,sha256=
|
|
459
|
+
ommlds/minichain/text/applypatch.py,sha256=QN2niiwEOuph5IRiT1g2wXPsLlmnPhYINGadA25rI9s,17716
|
|
459
460
|
ommlds/minichain/text/toolparsing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
460
461
|
ommlds/minichain/text/toolparsing/base.py,sha256=x1BgoJ02JRL1EACjTUbu4CdJFepUjtb4Wvneehqy7uc,778
|
|
461
462
|
ommlds/minichain/text/toolparsing/dumb.py,sha256=vlo1JV0dJJhvkDelxLQ3oP5iJ7qgCubFskm3zmXXwn8,2326
|
|
@@ -528,9 +529,9 @@ ommlds/wiki/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
528
529
|
ommlds/wiki/utils/io.py,sha256=UKgDJGtmpnWvIqVd2mJc2QNPOqlToEY1GEveNp6_pMo,7088
|
|
529
530
|
ommlds/wiki/utils/progress.py,sha256=EhvKcMFYtsarCQhIahlO6f0SboyAKP3UwUyrnVnP-Vk,3222
|
|
530
531
|
ommlds/wiki/utils/xml.py,sha256=sNJNkZ9rT8B-kJMO6bRz8J1USy4fyPx0m2PwTX7vxYY,3846
|
|
531
|
-
ommlds-0.0.0.
|
|
532
|
-
ommlds-0.0.0.
|
|
533
|
-
ommlds-0.0.0.
|
|
534
|
-
ommlds-0.0.0.
|
|
535
|
-
ommlds-0.0.0.
|
|
536
|
-
ommlds-0.0.0.
|
|
532
|
+
ommlds-0.0.0.dev519.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
|
533
|
+
ommlds-0.0.0.dev519.dist-info/METADATA,sha256=ukl7mbgQtmriMsDcTJD77nLsu65To7UrmFTnAZnJ8tk,3598
|
|
534
|
+
ommlds-0.0.0.dev519.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
535
|
+
ommlds-0.0.0.dev519.dist-info/entry_points.txt,sha256=Z5YWtX7ClfiCKdW-dd_CSVvM0h4yQpJPi-2G3q6gNFo,35
|
|
536
|
+
ommlds-0.0.0.dev519.dist-info/top_level.txt,sha256=Rbnk5d5wi58vnAXx13WFZqdQ4VX8hBCS2hEL3WeXOhY,7
|
|
537
|
+
ommlds-0.0.0.dev519.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|