Skip to content

Commit 1d51d86

Browse files
committed
🚧 feat(wip): group_size for scalability
1 parent ef53748 commit 1d51d86

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
project = 'magnet'
1212
copyright = '2023, Prismadic, LLC'
1313
author = 'Prismadic, LLC.'
14-
release = '0.2.0'
14+
release = '0.2.1'
1515

1616
# -- General configuration ---------------------------------------------------
1717
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
@@ -29,7 +29,7 @@
2929
display_github = True
3030
html_logo = "../magnet.png"
3131
pygments_style = 'dracula'
32-
version = "v0.2.0"
32+
version = "v0.2.1"
3333
release = "latest"
3434
# -- Options for HTML output -------------------------------------------------
3535
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

magnet/ic/field.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def __init__(self, server: str):
176176
"""
177177
self.server = server
178178

179-
async def on(self, category: str = 'no_category', stream: str = 'documents', session='magnet', job: bool = None):
179+
async def on(self, category: str = 'no_category', stream: str = 'documents', session='magnet', job: bool = None, group_size: int=1):
180180
"""
181181
Connects to the NATS server, subscribes to a specific category in a stream, and consumes messages from that category.
182182
@@ -210,7 +210,7 @@ async def on(self, category: str = 'no_category', stream: str = 'documents', ses
210210
stream=self.stream
211211
, config=self.config
212212
, deliver_subject=self.session
213-
, max_ack_pending=1
213+
, max_ack_pending=group_size
214214
)
215215
except:
216216
_f('warn', f'consumer {self.session} exists, skipping create')

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "llm_magnet"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = "the small distributed language model toolkit. fine-tune state-of-the-art LLMs anywhere, rapidly."
55
readme = "dynamic"
66

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='llm_magnet',
5-
version='0.2.0',
5+
version='0.2.1',
66
description="the small distributed language model toolkit. fine-tune state-of-the-art LLMs anywhere, rapidly.",
77
long_description=open('README.md').read(),
88
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)