sutro 0.1.14__tar.gz → 0.1.15__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.

Potentially problematic release.


This version of sutro might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sutro
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
4
  Summary: Sutro Python SDK
5
5
  Project-URL: Homepage, https://sutro.sh
6
6
  Project-URL: Documentation, https://docs.sutro.sh
@@ -9,7 +9,7 @@ installer = "uv"
9
9
 
10
10
  [project]
11
11
  name = "sutro"
12
- version = "0.1.14"
12
+ version = "0.1.15"
13
13
  description = "Sutro Python SDK"
14
14
  readme = "README.md"
15
15
  requires-python = ">=3.10"
@@ -30,6 +30,25 @@ def is_jupyter() -> bool:
30
30
  YASPIN_COLOR = None if is_jupyter() else "blue"
31
31
  SPINNER = Spinners.dots14
32
32
 
33
+ # Models available for inference. Keep in sync with the backend configuration
34
+ # so users get helpful autocompletion when selecting a model.
35
+ ModelOptions = Literal[
36
+ "llama-3.2-3b",
37
+ "llama-3.1-8b",
38
+ "llama-3.3-70b-8k",
39
+ "llama-3.3-70b-64k",
40
+ "qwen-qwq-32b-8k",
41
+ "qwen-3-4b",
42
+ "qwen-3-32b",
43
+ "qwen-3-4b-thinking",
44
+ "qwen-3-32b-thinking",
45
+ "gemma-3-4b-it",
46
+ "gemma-3-27b-it-16k",
47
+ "gemma-3-27b-it-128k",
48
+ "multilingual-e5-large-instruct",
49
+ "gte-qwen2-7b-instruct",
50
+ ]
51
+
33
52
 
34
53
  def to_colored_text(
35
54
  text: str, state: Optional[Literal["success", "fail"]] = None
@@ -156,7 +175,7 @@ class Sutro:
156
175
  def infer(
157
176
  self,
158
177
  data: Union[List, pd.DataFrame, pl.DataFrame, str],
159
- model: str = "llama-3.1-8b",
178
+ model: ModelOptions = "llama-3.1-8b",
160
179
  column: str = None,
161
180
  output_column: str = "inference_result",
162
181
  job_priority: int = 0,
@@ -176,7 +195,7 @@ class Sutro:
176
195
 
177
196
  Args:
178
197
  data (Union[List, pd.DataFrame, pl.DataFrame, str]): The data to run inference on.
179
- model (str, optional): The model to use for inference. Defaults to "llama-3.1-8b".
198
+ model (ModelOptions, optional): The model to use for inference. Defaults to "llama-3.1-8b".
180
199
  column (str, optional): The column name to use for inference. Required if data is a DataFrame, file path, or dataset.
181
200
  output_column (str, optional): The column name to store the inference results in if the input is a DataFrame. Defaults to "inference_result".
182
201
  job_priority (int, optional): The priority of the job. Defaults to 0.
File without changes
File without changes
File without changes
File without changes
File without changes