controlmt 0.1.0__tar.gz → 0.1.2__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.
- {controlmt-0.1.0 → controlmt-0.1.2}/PKG-INFO +2 -2
- {controlmt-0.1.0 → controlmt-0.1.2}/README.md +1 -1
- controlmt-0.1.2/src/controlmt/_version.py +1 -0
- {controlmt-0.1.0 → controlmt-0.1.2}/src/controlmt/client.py +1 -1
- {controlmt-0.1.0 → controlmt-0.1.2}/src/controlmt/device.py +4 -3
- {controlmt-0.1.0 → controlmt-0.1.2}/src/controlmt.egg-info/PKG-INFO +2 -2
- controlmt-0.1.0/src/controlmt/_version.py +0 -1
- {controlmt-0.1.0 → controlmt-0.1.2}/pyproject.toml +0 -0
- {controlmt-0.1.0 → controlmt-0.1.2}/setup.cfg +0 -0
- {controlmt-0.1.0 → controlmt-0.1.2}/src/controlmt/__init__.py +0 -0
- {controlmt-0.1.0 → controlmt-0.1.2}/src/controlmt/batching.py +0 -0
- {controlmt-0.1.0 → controlmt-0.1.2}/src/controlmt.egg-info/SOURCES.txt +0 -0
- {controlmt-0.1.0 → controlmt-0.1.2}/src/controlmt.egg-info/dependency_links.txt +0 -0
- {controlmt-0.1.0 → controlmt-0.1.2}/src/controlmt.egg-info/requires.txt +0 -0
- {controlmt-0.1.0 → controlmt-0.1.2}/src/controlmt.egg-info/top_level.txt +0 -0
- {controlmt-0.1.0 → controlmt-0.1.2}/tests/test_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: controlmt
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Python SDK for the ControlMT v2.3 Kannada↔English translator
|
|
5
5
|
Author: Anand Kaman
|
|
6
6
|
License: Apache-2.0
|
|
@@ -128,7 +128,7 @@ decoder-only LM. That means:
|
|
|
128
128
|
- ✅ Works: this SDK, raw Transformers, FastAPI, Docker, HF Inference Endpoints
|
|
129
129
|
- ❌ Doesn't work without significant adapter work: vLLM, Ollama, llama.cpp/GGUF, HF TGI
|
|
130
130
|
|
|
131
|
-
See [DEPLOYMENT.md](https://huggingface.co/anandkaman/controlmt-v2.3/blob/main/DEPLOYMENT.md)
|
|
131
|
+
See [DEPLOYMENT.md](https://huggingface.co/anandkaman/controlmt-v2.3/blob/main/DEPLOYMENT.md) Section 9 for the full "not supported" table and why.
|
|
132
132
|
|
|
133
133
|
## License
|
|
134
134
|
|
|
@@ -100,7 +100,7 @@ decoder-only LM. That means:
|
|
|
100
100
|
- ✅ Works: this SDK, raw Transformers, FastAPI, Docker, HF Inference Endpoints
|
|
101
101
|
- ❌ Doesn't work without significant adapter work: vLLM, Ollama, llama.cpp/GGUF, HF TGI
|
|
102
102
|
|
|
103
|
-
See [DEPLOYMENT.md](https://huggingface.co/anandkaman/controlmt-v2.3/blob/main/DEPLOYMENT.md)
|
|
103
|
+
See [DEPLOYMENT.md](https://huggingface.co/anandkaman/controlmt-v2.3/blob/main/DEPLOYMENT.md) Section 9 for the full "not supported" table and why.
|
|
104
104
|
|
|
105
105
|
## License
|
|
106
106
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.2"
|
|
@@ -120,7 +120,7 @@ class ControlMT:
|
|
|
120
120
|
) -> list[str]:
|
|
121
121
|
"""Translate a batch. User must supply batch_size, or auto_batch=True on GPU.
|
|
122
122
|
|
|
123
|
-
Policy (matching DEPLOYMENT.md
|
|
123
|
+
Policy (matching DEPLOYMENT.md Section 11):
|
|
124
124
|
- batch_size=None and auto_batch=False → batch_size=1 (one at a time, safe)
|
|
125
125
|
- batch_size=N → uses N concurrent translations
|
|
126
126
|
- auto_batch=True → GPU: probe free VRAM, pick N; CPU: warn + N=1
|
|
@@ -41,7 +41,7 @@ def resolve(
|
|
|
41
41
|
else float32
|
|
42
42
|
- quant: "int8" / "int8-dynamic" only valid on CPU. GPU + int8 = silently
|
|
43
43
|
falls back to fp16 with a warning (custom-arch incompat with bitsandbytes —
|
|
44
|
-
see DEPLOYMENT.md
|
|
44
|
+
see DEPLOYMENT.md Section 9).
|
|
45
45
|
"""
|
|
46
46
|
import torch
|
|
47
47
|
|
|
@@ -71,7 +71,7 @@ def resolve(
|
|
|
71
71
|
if quant == "int8-dynamic" and resolved_device == "cuda":
|
|
72
72
|
warnings.warn(
|
|
73
73
|
"int8 dynamic quantization is CPU-only on this model "
|
|
74
|
-
"(see DEPLOYMENT.md
|
|
74
|
+
"(see DEPLOYMENT.md Section 9). Falling back to fp16 on GPU.",
|
|
75
75
|
RuntimeWarning, stacklevel=2)
|
|
76
76
|
quant = "none"
|
|
77
77
|
|
|
@@ -113,7 +113,8 @@ def detect_libraries() -> dict:
|
|
|
113
113
|
"""Probe what's installed. Used for the SDK's status banner + auto-picking
|
|
114
114
|
code paths (e.g. if onnxruntime is present, future ONNX backend can be used)."""
|
|
115
115
|
out = {}
|
|
116
|
-
for name in ("torch", "transformers", "
|
|
116
|
+
for name in ("torch", "transformers", "sentencepiece", "safetensors",
|
|
117
|
+
"huggingface_hub", "accelerate", "bitsandbytes", "onnxruntime"):
|
|
117
118
|
try:
|
|
118
119
|
mod = __import__(name)
|
|
119
120
|
out[name] = getattr(mod, "__version__", "?")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: controlmt
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Python SDK for the ControlMT v2.3 Kannada↔English translator
|
|
5
5
|
Author: Anand Kaman
|
|
6
6
|
License: Apache-2.0
|
|
@@ -128,7 +128,7 @@ decoder-only LM. That means:
|
|
|
128
128
|
- ✅ Works: this SDK, raw Transformers, FastAPI, Docker, HF Inference Endpoints
|
|
129
129
|
- ❌ Doesn't work without significant adapter work: vLLM, Ollama, llama.cpp/GGUF, HF TGI
|
|
130
130
|
|
|
131
|
-
See [DEPLOYMENT.md](https://huggingface.co/anandkaman/controlmt-v2.3/blob/main/DEPLOYMENT.md)
|
|
131
|
+
See [DEPLOYMENT.md](https://huggingface.co/anandkaman/controlmt-v2.3/blob/main/DEPLOYMENT.md) Section 9 for the full "not supported" table and why.
|
|
132
132
|
|
|
133
133
|
## License
|
|
134
134
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.0"
|
|
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
|