Skip to content

Commit bd11c3e

Browse files
committed
fix an unpinned dependency. bump version to 0.3.1
1 parent 120ce2c commit bd11c3e

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ __pycache__
44
venv
55
testenv
66
testenv-whl
7+
testenv-prod
78
.env
89
dist
910
build

latentscope/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.3.0'
1+
__version__ = '0.3.1'

latentscope/scripts/label_clusters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def labeler(dataset_id, text_column="text", cluster_id="cluster-001", model_id="
9292
The user will submit a bulleted list of items and you should choose a label that best summarizes the theme of the list so that someone browsing the labels will have a good idea of what is in the list.
9393
Do not use punctuation, Do not explain yourself, respond with only a few words that summarize the list."""}
9494

95-
# TODO: why the extra 10 for openai?
96-
max_tokens = model.params["max_tokens"] - len(enc.encode(system_prompt["content"])) - 10
95+
# TODO: why the extra 50 for openai?
96+
max_tokens = model.params["max_tokens"] - len(enc.encode(system_prompt["content"])) - 50
9797

9898
# Create the lists of items we will send for summarization
9999
# Current looks like:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
numpy~=1.26.4
2-
accelerate
2+
accelerate~=0.31.0
33
aiohttp~=3.9.1
44
aiolimiter~=1.1.0
55
aiosignal~=1.3.1

0 commit comments

Comments
 (0)