llm-annotator 0.2.3__tar.gz → 0.2.4__tar.gz
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.
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/PKG-INFO +3 -3
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/pyproject.toml +2 -2
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/src/llm_annotator/annotator.py +5 -0
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/.gitignore +0 -0
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/.pre-commit-config.yaml +0 -0
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/LICENSE +0 -0
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/Makefile +0 -0
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/README.md +0 -0
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/examples/sentiment.py +0 -0
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/src/llm_annotator/__init__.py +0 -0
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/src/llm_annotator/utils.py +0 -0
- {llm_annotator-0.2.3 → llm_annotator-0.2.4}/tests/conftest.py +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: llm-annotator
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: An easy-to-extend LLM annotator for robust, resumable data annotation.
|
|
5
5
|
Author-email: Bram Vanroy <2779410+BramVanroy@users.noreply.github.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
7
7
|
License-File: LICENSE
|
|
8
8
|
Requires-Python: >=3.12
|
|
9
9
|
Requires-Dist: datasets<5,>=4.1.1
|
|
10
|
-
Requires-Dist: hf-transfer<
|
|
10
|
+
Requires-Dist: hf-transfer<1,>=0.1.9
|
|
11
11
|
Requires-Dist: hf-xet<2,>=1.1.10
|
|
12
|
-
Requires-Dist: vllm<0.
|
|
12
|
+
Requires-Dist: vllm<0.12,>=0.11
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
15
|
# A simple, extensible LLM Annotator
|
|
@@ -11,9 +11,9 @@ license-files = ["LICEN[CS]E*"]
|
|
|
11
11
|
requires-python = ">=3.12"
|
|
12
12
|
dependencies = [
|
|
13
13
|
"datasets>=4.1.1,<5",
|
|
14
|
-
"hf-transfer>=0.1.9,<
|
|
14
|
+
"hf-transfer>=0.1.9,<1",
|
|
15
15
|
"hf-xet>=1.1.10,<2",
|
|
16
|
-
"vllm>=0.
|
|
16
|
+
"vllm>=0.11,<0.12",
|
|
17
17
|
]
|
|
18
18
|
|
|
19
19
|
[dependency-groups]
|
|
@@ -413,6 +413,11 @@ class Annotator:
|
|
|
413
413
|
"""
|
|
414
414
|
if isinstance(self.pipe, LLM):
|
|
415
415
|
destroy_model_parallel()
|
|
416
|
+
try:
|
|
417
|
+
self.pipe.llm_engine.model_executor.shutdown()
|
|
418
|
+
del self.pipe.llm_engine.model_executor
|
|
419
|
+
except Exception:
|
|
420
|
+
pass
|
|
416
421
|
del self.pipe.llm_engine
|
|
417
422
|
del self.pipe
|
|
418
423
|
gc.collect()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|