clarifai 11.6.0__py3-none-any.whl → 11.6.2__py3-none-any.whl

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.
clarifai/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "11.6.0"
1
+ __version__ = "11.6.2"
clarifai/cli/base.py CHANGED
@@ -6,6 +6,7 @@ import sys
6
6
  import click
7
7
  import yaml
8
8
 
9
+ from clarifai import __version__
9
10
  from clarifai.utils.cli import AliasedGroup, TableFormatter, load_command_modules
10
11
  from clarifai.utils.config import Config, Context
11
12
  from clarifai.utils.constants import DEFAULT_BASE, DEFAULT_CONFIG, DEFAULT_UI
@@ -14,6 +15,7 @@ from clarifai.utils.logging import logger
14
15
 
15
16
  # @click.group(cls=CustomMultiGroup)
16
17
  @click.group(cls=AliasedGroup)
18
+ @click.version_option(version=__version__)
17
19
  @click.option('--config', default=DEFAULT_CONFIG)
18
20
  @click.pass_context
19
21
  def cli(ctx, config):
clarifai/cli/model.py CHANGED
@@ -1,5 +1,6 @@
1
1
  import os
2
2
  import shutil
3
+ import tempfile
3
4
 
4
5
  import click
5
6
 
@@ -16,13 +17,19 @@ from clarifai.utils.constants import (
16
17
  DEFAULT_LOCAL_DEV_NODEPOOL_ID,
17
18
  )
18
19
  from clarifai.utils.logging import logger
20
+ from clarifai.utils.misc import (
21
+ clone_github_repo,
22
+ format_github_repo_url,
23
+ )
19
24
 
20
25
 
21
26
  @cli.group(
22
27
  ['model'], context_settings={'max_content_width': shutil.get_terminal_size().columns - 10}
23
28
  )
24
29
  def model():
25
- """Manage models: upload, test, local dev, predict, etc"""
30
+ """Manage & Develop Models: init, download-checkpoints, signatures, upload\n
31
+ Run & Test Models Locally: local-runner, local-grpc, local-test\n
32
+ Model Inference: list, predict"""
26
33
 
27
34
 
28
35
  @model.command()
@@ -38,7 +45,22 @@ def model():
38
45
  required=False,
39
46
  help='Model type: "mcp" for MCPModelClass, "openai" for OpenAIModelClass, or leave empty for default ModelClass.',
40
47
  )
41
- def init(model_path, model_type_id):
48
+ @click.option(
49
+ '--github-pat',
50
+ required=False,
51
+ help='GitHub Personal Access Token for authentication when cloning private repositories.',
52
+ )
53
+ @click.option(
54
+ '--github-repo',
55
+ required=False,
56
+ help='GitHub repository URL or "user/repo" format to clone a repository from. If provided, the entire repository contents will be copied to the target directory instead of using default templates.',
57
+ )
58
+ @click.option(
59
+ '--branch',
60
+ required=False,
61
+ help='Git branch to clone from the GitHub repository. If not specified, the default branch will be used.',
62
+ )
63
+ def init(model_path, model_type_id, github_pat, github_repo, branch):
42
64
  """Initialize a new model directory structure.
43
65
 
44
66
  Creates the following structure in the specified directory:
@@ -47,65 +69,113 @@ def init(model_path, model_type_id):
47
69
  ├── requirements.txt
48
70
  └── config.yaml
49
71
 
72
+ If --github-repo is provided, the entire repository contents will be copied to the target
73
+ directory instead of using default templates. The --github-pat option can be used for authentication
74
+ when cloning private repositories. The --branch option can be used to specify a specific
75
+ branch to clone from.
76
+
50
77
  MODEL_PATH: Path where to create the model directory structure. If not specified, the current directory is used by default.
51
78
  """
52
- from clarifai.cli.templates.model_templates import (
53
- get_config_template,
54
- get_model_template,
55
- get_requirements_template,
56
- )
57
-
58
79
  # Resolve the absolute path
59
80
  model_path = os.path.abspath(model_path)
60
81
 
61
82
  # Create the model directory if it doesn't exist
62
83
  os.makedirs(model_path, exist_ok=True)
63
84
 
64
- # Create the 1/ subdirectory
65
- model_version_dir = os.path.join(model_path, "1")
66
- os.makedirs(model_version_dir, exist_ok=True)
67
-
68
- # Create model.py
69
- model_py_path = os.path.join(model_version_dir, "model.py")
70
- if os.path.exists(model_py_path):
71
- logger.warning(f"File {model_py_path} already exists, skipping...")
72
- else:
73
- model_template = get_model_template(model_type_id)
74
- with open(model_py_path, 'w') as f:
75
- f.write(model_template)
76
- logger.info(f"Created {model_py_path}")
77
-
78
- # Create requirements.txt
79
- requirements_path = os.path.join(model_path, "requirements.txt")
80
- if os.path.exists(requirements_path):
81
- logger.warning(f"File {requirements_path} already exists, skipping...")
82
- else:
83
- requirements_template = get_requirements_template(model_type_id)
84
- with open(requirements_path, 'w') as f:
85
- f.write(requirements_template)
86
- logger.info(f"Created {requirements_path}")
87
-
88
- # Create config.yaml
89
- config_path = os.path.join(model_path, "config.yaml")
90
- if os.path.exists(config_path):
91
- logger.warning(f"File {config_path} already exists, skipping...")
92
- else:
93
- config_model_type_id = "text-to-text" # default
94
-
95
- config_template = get_config_template(config_model_type_id)
96
- with open(config_path, 'w') as f:
97
- f.write(config_template)
98
- logger.info(f"Created {config_path}")
99
-
100
- logger.info(f"Model initialization complete in {model_path}")
101
- logger.info("Next steps:")
102
- logger.info("1. Search for '# TODO: please fill in' comments in the generated files")
103
- logger.info("2. Update the model configuration in config.yaml")
104
- logger.info("3. Add your model dependencies to requirements.txt")
105
- logger.info("4. Implement your model logic in 1/model.py")
106
-
85
+ # Handle GitHub repository cloning if provided
86
+ if github_repo:
87
+ logger.info(f"Initializing model from GitHub repository: {github_repo}")
88
+
89
+ # Check if it's a local path or normalize the GitHub repo URL
90
+ if os.path.exists(github_repo):
91
+ repo_url = github_repo
92
+ else:
93
+ repo_url = format_github_repo_url(github_repo)
94
+
95
+ # Create a temporary directory for cloning
96
+ with tempfile.TemporaryDirectory() as temp_dir:
97
+ clone_dir = os.path.join(temp_dir, "repo")
98
+
99
+ # Clone the repository
100
+ if not clone_github_repo(repo_url, clone_dir, github_pat, branch):
101
+ logger.error(
102
+ "Failed to clone repository. Falling back to template-based initialization."
103
+ )
104
+ github_repo = None # Fall back to template mode
105
+ else:
106
+ # Copy the entire repository content to target directory (excluding .git)
107
+ for item in os.listdir(clone_dir):
108
+ if item == '.git':
109
+ continue
110
+
111
+ source_path = os.path.join(clone_dir, item)
112
+ target_path = os.path.join(model_path, item)
113
+
114
+ if os.path.isdir(source_path):
115
+ shutil.copytree(source_path, target_path, dirs_exist_ok=True)
116
+ else:
117
+ shutil.copy2(source_path, target_path)
118
+
119
+ logger.info("Model initialization complete with GitHub repository")
120
+ logger.info("Next steps:")
121
+ logger.info("1. Review the model configuration")
122
+ logger.info("2. Install any required dependencies manually")
123
+ logger.info("3. Test the model locally using 'clarifai model local-test'")
124
+ return
125
+
126
+ # Fall back to template-based initialization if no GitHub repo or if GitHub repo failed
127
+ if not github_repo:
128
+ from clarifai.cli.templates.model_templates import (
129
+ get_config_template,
130
+ get_model_template,
131
+ get_requirements_template,
132
+ )
107
133
 
108
- @model.command()
134
+ # Create the 1/ subdirectory
135
+ model_version_dir = os.path.join(model_path, "1")
136
+ os.makedirs(model_version_dir, exist_ok=True)
137
+
138
+ # Create model.py
139
+ model_py_path = os.path.join(model_version_dir, "model.py")
140
+ if os.path.exists(model_py_path):
141
+ logger.warning(f"File {model_py_path} already exists, skipping...")
142
+ else:
143
+ model_template = get_model_template(model_type_id)
144
+ with open(model_py_path, 'w') as f:
145
+ f.write(model_template)
146
+ logger.info(f"Created {model_py_path}")
147
+
148
+ # Create requirements.txt
149
+ requirements_path = os.path.join(model_path, "requirements.txt")
150
+ if os.path.exists(requirements_path):
151
+ logger.warning(f"File {requirements_path} already exists, skipping...")
152
+ else:
153
+ requirements_template = get_requirements_template(model_type_id)
154
+ with open(requirements_path, 'w') as f:
155
+ f.write(requirements_template)
156
+ logger.info(f"Created {requirements_path}")
157
+
158
+ # Create config.yaml
159
+ config_path = os.path.join(model_path, "config.yaml")
160
+ if os.path.exists(config_path):
161
+ logger.warning(f"File {config_path} already exists, skipping...")
162
+ else:
163
+ config_model_type_id = "text-to-text" # default
164
+
165
+ config_template = get_config_template(config_model_type_id)
166
+ with open(config_path, 'w') as f:
167
+ f.write(config_template)
168
+ logger.info(f"Created {config_path}")
169
+
170
+ logger.info(f"Model initialization complete in {model_path}")
171
+ logger.info("Next steps:")
172
+ logger.info("1. Search for '# TODO: please fill in' comments in the generated files")
173
+ logger.info("2. Update the model configuration in config.yaml")
174
+ logger.info("3. Add your model dependencies to requirements.txt")
175
+ logger.info("4. Implement your model logic in 1/model.py")
176
+
177
+
178
+ @model.command(help="Upload a trained model.")
109
179
  @click.argument("model_path", type=click.Path(exists=True), required=False, default=".")
110
180
  @click.option(
111
181
  '--stage',
@@ -138,7 +208,7 @@ def upload(ctx, model_path, stage, skip_dockerfile):
138
208
  )
139
209
 
140
210
 
141
- @model.command()
211
+ @model.command(help="Download model checkpoint files.")
142
212
  @click.argument(
143
213
  "model_path",
144
214
  type=click.Path(exists=True),
@@ -172,7 +242,7 @@ def download_checkpoints(model_path, out_path, stage):
172
242
  builder.download_checkpoints(stage=stage, checkpoint_path_override=out_path)
173
243
 
174
244
 
175
- @model.command()
245
+ @model.command(help="Generate model method signatures.")
176
246
  @click.argument(
177
247
  "model_path",
178
248
  type=click.Path(exists=True),
@@ -203,7 +273,7 @@ def signatures(model_path, out_path):
203
273
  click.echo(signatures)
204
274
 
205
275
 
206
- @model.command()
276
+ @model.command(name="local-test", help="Execute all model unit tests locally.")
207
277
  @click.argument(
208
278
  "model_path",
209
279
  type=click.Path(exists=True),
@@ -262,7 +332,7 @@ def test_locally(model_path, keep_env=False, keep_image=False, mode='env', skip_
262
332
  click.echo(f"Failed to test model locally: {e}", err=True)
263
333
 
264
334
 
265
- @model.command()
335
+ @model.command(name="local-grpc", help="Run the model locally via a gRPC server.")
266
336
  @click.argument(
267
337
  "model_path",
268
338
  type=click.Path(exists=True),
@@ -330,7 +400,7 @@ def run_locally(model_path, port, mode, keep_env, keep_image, skip_dockerfile=Fa
330
400
  click.echo(f"Failed to starts model server locally: {e}", err=True)
331
401
 
332
402
 
333
- @model.command()
403
+ @model.command(name="local-runner", help="Run the model locally for dev, debug, or local compute.")
334
404
  @click.argument(
335
405
  "model_path",
336
406
  type=click.Path(exists=True),
@@ -494,7 +564,13 @@ def local_dev(ctx, model_path):
494
564
  )
495
565
  if y.lower() != 'y':
496
566
  raise click.Abort()
497
- model = app.create_model(model_id, model_type_id=DEFAULT_LOCAL_DEV_MODEL_TYPE)
567
+ try:
568
+ model_type_id = ctx.obj.current.model_type_id
569
+ except AttributeError:
570
+ model_type_id = DEFAULT_LOCAL_DEV_MODEL_TYPE
571
+
572
+ model = app.create_model(model_id, model_type_id=model_type_id)
573
+ ctx.obj.current.CLARIFAI_MODEL_TYPE_ID = model_type_id
498
574
  ctx.obj.current.CLARIFAI_MODEL_ID = model_id
499
575
  ctx.obj.to_yaml() # save to yaml file.
500
576
 
@@ -613,6 +689,7 @@ def local_dev(ctx, model_path):
613
689
  f"config.yaml not found in {model_path}. Please ensure you are passing the correct directory."
614
690
  )
615
691
  config = ModelBuilder._load_config(config_file)
692
+ model_type_id = config.get('model', {}).get('model_type_id', DEFAULT_LOCAL_DEV_MODEL_TYPE)
616
693
  # The config.yaml doens't match what we created above.
617
694
  if 'model' in config and model_id != config['model'].get('id'):
618
695
  logger.info(f"Current model section of config.yaml: {config.get('model', {})}")
@@ -622,7 +699,7 @@ def local_dev(ctx, model_path):
622
699
  if y.lower() != 'y':
623
700
  raise click.Abort()
624
701
  config = ModelBuilder._set_local_dev_model(
625
- config, user_id, app_id, model_id, DEFAULT_LOCAL_DEV_MODEL_TYPE
702
+ config, user_id, app_id, model_id, model_type_id
626
703
  )
627
704
  ModelBuilder._backup_config(config_file)
628
705
  ModelBuilder._save_config(config_file, config)
@@ -663,7 +740,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
663
740
  )
664
741
 
665
742
 
666
- @model.command()
743
+ @model.command(help="Perform a prediction using the model.")
667
744
  @click.option(
668
745
  '--config',
669
746
  type=click.Path(exists=True),
@@ -845,7 +922,7 @@ def predict(
845
922
  )
846
923
  @click.pass_context
847
924
  def list_model(ctx, user_id, app_id):
848
- """List models of user/community
925
+ """List models of user/community.
849
926
 
850
927
  USER_ID: User id. If not specified, the current user is used by default. Set "all" to get all public models in Clarifai platform.
851
928
  """
@@ -8,7 +8,7 @@ from clarifai.utils.logging import logger
8
8
 
9
9
 
10
10
  @cli.group(
11
- ['pipelinestep'],
11
+ ['pipelinestep', 'ps'],
12
12
  context_settings={'max_content_width': shutil.get_terminal_size().columns - 10},
13
13
  )
14
14
  def pipeline_step():
clarifai/client/model.py CHANGED
@@ -66,6 +66,7 @@ class Model(Lister, BaseClient):
66
66
  compute_cluster_id: str = None,
67
67
  nodepool_id: str = None,
68
68
  deployment_id: str = None,
69
+ deployment_user_id: str = None,
69
70
  **kwargs,
70
71
  ):
71
72
  """Initializes a Model object.
@@ -78,6 +79,10 @@ class Model(Lister, BaseClient):
78
79
  pat (str): A personal access token for authentication. Can be set as env var CLARIFAI_PAT
79
80
  token (str): A session token for authentication. Accepts either a session token or a pat. Can be set as env var CLARIFAI_SESSION_TOKEN
80
81
  root_certificates_path (str): Path to the SSL root certificates file, used to establish secure gRPC connections.
82
+ compute_cluster_id (str): Compute cluster ID for runner selector.
83
+ nodepool_id (str): Nodepool ID for runner selector.
84
+ deployment_id (str): Deployment ID for runner selector.
85
+ deployment_user_id (str): User ID to use for runner selector (organization or user). If not provided, defaults to PAT owner user_id.
81
86
  **kwargs: Additional keyword arguments to be passed to the Model.
82
87
  """
83
88
  if url and model_id:
@@ -115,10 +120,13 @@ class Model(Lister, BaseClient):
115
120
  )
116
121
  Lister.__init__(self)
117
122
 
123
+ self.deployment_user_id = deployment_user_id
124
+
118
125
  self._set_runner_selector(
119
126
  compute_cluster_id=compute_cluster_id,
120
127
  nodepool_id=nodepool_id,
121
128
  deployment_id=deployment_id,
129
+ deployment_user_id=deployment_user_id,
122
130
  )
123
131
 
124
132
  @classmethod
@@ -633,9 +641,13 @@ class Model(Lister, BaseClient):
633
641
  compute_cluster_id: str = None,
634
642
  nodepool_id: str = None,
635
643
  deployment_id: str = None,
644
+ deployment_user_id: str = None,
636
645
  ):
637
- # Get UserID
638
- if any([deployment_id, nodepool_id, compute_cluster_id]):
646
+ # Get UserID for runner selector
647
+ user_id = None
648
+ if deployment_user_id:
649
+ user_id = deployment_user_id
650
+ elif any([deployment_id, nodepool_id, compute_cluster_id]):
639
651
  from clarifai.client.user import User
640
652
 
641
653
  user_id = (
@@ -643,13 +655,11 @@ class Model(Lister, BaseClient):
643
655
  .get_user_info(user_id='me')
644
656
  .user.id
645
657
  )
646
-
647
658
  runner_selector = None
648
659
  if deployment_id and (compute_cluster_id or nodepool_id):
649
660
  raise UserError(
650
661
  "You can only specify one of deployment_id or compute_cluster_id and nodepool_id."
651
662
  )
652
-
653
663
  if deployment_id:
654
664
  runner_selector = Deployment.get_runner_selector(
655
665
  user_id=user_id, deployment_id=deployment_id
@@ -658,7 +668,6 @@ class Model(Lister, BaseClient):
658
668
  runner_selector = Nodepool.get_runner_selector(
659
669
  user_id=user_id, compute_cluster_id=compute_cluster_id, nodepool_id=nodepool_id
660
670
  )
661
-
662
671
  # set the runner selector
663
672
  self._runner_selector = runner_selector
664
673
 
@@ -127,7 +127,7 @@ from clarifai.runners.utils import data_types
127
127
 
128
128
  base_url_str = ""
129
129
  if base_url is not None:
130
- base_url_str = f"base_url={base_url},"
130
+ base_url_str = f"base_url='{base_url}',"
131
131
 
132
132
  # Join all non-empty lines
133
133
  optional_lines = "\n ".join(
@@ -321,7 +321,10 @@ def _set_default_value(field_type):
321
321
  default_value = f"{{{', '.join([str(et) for et in element_type_defaults])}}}"
322
322
 
323
323
  if is_iterator:
324
- default_value = f'iter([{default_value}])'
324
+ if field_type == "str":
325
+ default_value = f"iter(['{default_value}'])"
326
+ else:
327
+ default_value = f"iter([{default_value}])"
325
328
  return default_value
326
329
 
327
330
 
@@ -1,4 +1,5 @@
1
1
  import os
2
+ from pathlib import Path
2
3
 
3
4
  DEFAULT_UI = os.environ.get("CLARIFAI_UI", "https://clarifai.com")
4
5
  DEFAULT_BASE = os.environ.get("CLARIFAI_API_BASE", "https://api.clarifai.com")
@@ -10,7 +11,8 @@ CLARIFAI_PAT_ENV_VAR = "CLARIFAI_PAT"
10
11
  CLARIFAI_SESSION_TOKEN_ENV_VAR = "CLARIFAI_SESSION_TOKEN"
11
12
  CLARIFAI_USER_ID_ENV_VAR = "CLARIFAI_USER_ID"
12
13
 
13
- DEFAULT_CONFIG = f'{os.environ["HOME"]}/.config/clarifai/config'
14
+ HOME_PATH = Path.home()
15
+ DEFAULT_CONFIG = HOME_PATH / '.config/clarifai/config'
14
16
 
15
17
  # Default clusters, etc. for local dev runner easy setup
16
18
  DEFAULT_LOCAL_DEV_COMPUTE_CLUSTER_ID = "local-dev-compute-cluster"
@@ -45,7 +47,7 @@ DEFAULT_LOCAL_DEV_NODEPOOL_CONFIG = {
45
47
  },
46
48
  "instance_types": [
47
49
  {
48
- "id": "local-cpu",
50
+ "id": "local",
49
51
  "compute_info": {
50
52
  "cpu_limit": str(os.cpu_count()),
51
53
  "cpu_memory": "16Gi", # made up as we don't schedule based on this for local dev.
clarifai/utils/misc.py CHANGED
@@ -1,11 +1,16 @@
1
1
  import os
2
2
  import re
3
+ import shutil
4
+ import subprocess
5
+ import urllib.parse
3
6
  import uuid
4
7
  from typing import Any, Dict, List
5
8
 
6
9
  from clarifai_grpc.grpc.api.status import status_code_pb2
7
10
 
8
11
  from clarifai.errors import UserError
12
+ from clarifai.utils.constants import HOME_PATH
13
+ from clarifai.utils.logging import logger
9
14
 
10
15
  RETRYABLE_CODES = [
11
16
  status_code_pb2.MODEL_DEPLOYING,
@@ -13,7 +18,7 @@ RETRYABLE_CODES = [
13
18
  status_code_pb2.MODEL_BUSY_PLEASE_RETRY,
14
19
  ]
15
20
 
16
- DEFAULT_CONFIG = f'{os.environ["HOME"]}/.config/clarifai/config'
21
+ DEFAULT_CONFIG = HOME_PATH / '.config/clarifai/config'
17
22
 
18
23
 
19
24
  def status_is_retryable(status_code: int) -> bool:
@@ -104,3 +109,60 @@ def clean_input_id(input_id: str) -> str:
104
109
  input_id = input_id.lower().strip('_-')
105
110
  input_id = re.sub('[^a-z0-9-_]+', '', input_id)
106
111
  return input_id
112
+
113
+
114
+ def format_github_repo_url(github_repo):
115
+ """Format GitHub repository URL to a standard format."""
116
+ if github_repo.startswith('http'):
117
+ return github_repo
118
+ elif '/' in github_repo and not github_repo.startswith('git@'):
119
+ # Handle "user/repo" format
120
+ return f"https://github.com/{github_repo}.git"
121
+ else:
122
+ return github_repo
123
+
124
+
125
+ def clone_github_repo(repo_url, target_dir, github_pat=None, branch=None):
126
+ """Clone a GitHub repository with optional GitHub PAT authentication and branch specification."""
127
+ # Handle local file paths - just copy instead of cloning
128
+ if os.path.exists(repo_url):
129
+ try:
130
+ shutil.copytree(repo_url, target_dir, ignore=shutil.ignore_patterns('.git'))
131
+ logger.info(f"Successfully copied local repository from {repo_url}")
132
+ return True
133
+ except Exception as e:
134
+ logger.error(f"Failed to copy local repository: {e}")
135
+ return False
136
+
137
+ cmd = ["git", "clone"]
138
+
139
+ # Add branch specification if provided
140
+ if branch:
141
+ cmd.extend(["-b", branch])
142
+
143
+ # Handle authentication with GitHub PAT
144
+ if github_pat:
145
+ # Parse the URL and validate the hostname
146
+ parsed_url = urllib.parse.urlparse(repo_url)
147
+ if parsed_url.hostname == "github.com":
148
+ # Insert GitHub PAT into the URL for authentication
149
+ authenticated_url = f"https://{github_pat}@{parsed_url.netloc}{parsed_url.path}"
150
+ cmd.append(authenticated_url)
151
+ else:
152
+ logger.error(f"Invalid repository URL: {repo_url}")
153
+ return False
154
+ else:
155
+ cmd.append(repo_url)
156
+
157
+ cmd.append(target_dir)
158
+
159
+ try:
160
+ result = subprocess.run(cmd, capture_output=True, text=True, check=True)
161
+ if branch:
162
+ logger.info(f"Successfully cloned repository from {repo_url} (branch: {branch})")
163
+ else:
164
+ logger.info(f"Successfully cloned repository from {repo_url}")
165
+ return True
166
+ except subprocess.CalledProcessError as e:
167
+ logger.error(f"Failed to clone repository: {e.stderr}")
168
+ return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clarifai
3
- Version: 11.6.0
3
+ Version: 11.6.2
4
4
  Home-page: https://github.com/Clarifai/clarifai-python
5
5
  Author: Clarifai
6
6
  Author-email: support@clarifai.com
@@ -19,7 +19,7 @@ Classifier: Operating System :: OS Independent
19
19
  Requires-Python: >=3.8
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
- Requires-Dist: clarifai-grpc>=11.5.5
22
+ Requires-Dist: clarifai-grpc>=11.6.0
23
23
  Requires-Dist: clarifai-protocol>=0.0.25
24
24
  Requires-Dist: numpy>=1.22.0
25
25
  Requires-Dist: tqdm>=4.65.0
@@ -1,17 +1,17 @@
1
- clarifai/__init__.py,sha256=kjhthIE5r_ArzQulbcqnrRj4ewlV2jNJYfo-PPrxloM,23
1
+ clarifai/__init__.py,sha256=oRlzSjuWA3FSB8u8EiFTs_Z5cSwME4q7lVIMCuT6tEU,23
2
2
  clarifai/cli.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  clarifai/errors.py,sha256=GXa6D4v_L404J83jnRNFPH7s-1V9lk7w6Ws99f1g-AY,2772
4
4
  clarifai/versions.py,sha256=ecSuEB_nOL2XSoYHDw2n23XUbm_KPOGjudMXmQrGdS8,224
5
5
  clarifai/cli/README.md,sha256=YGApHfeUyu5P0Pdth-mqQCQftWHDxz6bugDlvDXDhOE,1942
6
6
  clarifai/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  clarifai/cli/__main__.py,sha256=7nPbLW7Jr2shkgMPvnxpn4xYGMvIcnqluJ69t9w4H_k,74
8
- clarifai/cli/base.py,sha256=mzfAHRhon6tKntpxk241GD-Sjrb2-V99nAOasElLuuw,8254
8
+ clarifai/cli/base.py,sha256=SNJL5TEcB2rD6pX1v_nrMCH9F7IJ_TD6XXI95cJCi3I,8330
9
9
  clarifai/cli/compute_cluster.py,sha256=8Xss0Obrp6l1XuxJe0luOqU_pf8vXGDRi6jyIe8qR6k,2282
10
10
  clarifai/cli/deployment.py,sha256=9C4I6_kyMxRkWl6h681wc79-3mAtDHtTUaxRv05OZMs,4262
11
- clarifai/cli/model.py,sha256=23h5tTzz2secprPFdYpI48HWQB3gtv5Dvl0WSLyZgaE,31711
11
+ clarifai/cli/model.py,sha256=Kigk6lFy179Puvlgb26Gllra32Sy_WaIayR0ImJ8ZJE,35639
12
12
  clarifai/cli/nodepool.py,sha256=H6OIdUW_EiyDUwZogzEDoYmVwEjLMsgoDlPyE7gjIuU,4245
13
13
  clarifai/cli/pipeline.py,sha256=smWPCK9kLCqnjTCb3w8BAeiAcowY20Bdxfk-OCzCi0I,10601
14
- clarifai/cli/pipeline_step.py,sha256=eOxU4MdPBuB01A00Rz6m9THLyTaTLOTKwGwSVyegkyI,3808
14
+ clarifai/cli/pipeline_step.py,sha256=Unrq63w5rjwyhHHmRhV-enztO1HuVTnimAXltNCotQs,3814
15
15
  clarifai/cli/templates/__init__.py,sha256=HbMlZuYOMyVJde73ijNAevmSRUpIttGlHdwyO4W-JOs,44
16
16
  clarifai/cli/templates/model_templates.py,sha256=_ZonIBnY9KKSJY31KZbUys_uN_k_Txu7Dip12KWfmSU,9633
17
17
  clarifai/cli/templates/pipeline_step_templates.py,sha256=HU1BoU7wG71MviQAvyecxT_qo70XhTtPGYtoIQ-U-l0,1663
@@ -24,7 +24,7 @@ clarifai/client/dataset.py,sha256=OgdpZkQ_vYmRxL8-qphcNozpvPV1bWTlte9Jv6UkKb8,35
24
24
  clarifai/client/deployment.py,sha256=QBf0tzkKBEpzNgmOEmWUJMOlVWdFEFc70Y44o8y75Gs,2875
25
25
  clarifai/client/input.py,sha256=jpX47qwn7aUBBIEuSSLHF5jk70XaWEh0prD065c9b-E,51205
26
26
  clarifai/client/lister.py,sha256=1YEm2suNxPaJO4x9V5szgD_YX6N_00vgSO-7m0HagY8,2208
27
- clarifai/client/model.py,sha256=8D_L6nuL4_hBAKgwseYhoAeKS9u3ky0zczkcJghxFe8,90072
27
+ clarifai/client/model.py,sha256=rGNeMgL8kgEUsB3Y1lSl6CfE1XuXY0me57-8_o2TNn4,90726
28
28
  clarifai/client/model_client.py,sha256=4gIS0mKBdiNMA1x_6Wo6H7WbfLsmQix64EpONcQjQV4,37129
29
29
  clarifai/client/module.py,sha256=jLViQYvVV3FmRN_ivvbk83uwsx7CgYGeEx4dYAr6yD4,4537
30
30
  clarifai/client/nodepool.py,sha256=Y5zQ0JLdTjAp2TmVnx7AAOwaB2YUslk3nl7s6BQ90FQ,16415
@@ -89,7 +89,7 @@ clarifai/runners/pipeline_steps/pipeline_step_builder.py,sha256=E6Ce3b0RolYLMJHa
89
89
  clarifai/runners/pipelines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
90
90
  clarifai/runners/pipelines/pipeline_builder.py,sha256=z_bCwjwQPFa_1AYkorhh5r6t6r5hC5K2D8Z1LTEzIpg,12801
91
91
  clarifai/runners/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
- clarifai/runners/utils/code_script.py,sha256=RxN4UOBIa61WW1U5y-gC-dwr_tY8ZAKr1nR8sySNWt4,13922
92
+ clarifai/runners/utils/code_script.py,sha256=toHoQQ2UGGmAxhFrbHo8217eJpUbAa-8RyPzTzfqXvk,14031
93
93
  clarifai/runners/utils/const.py,sha256=MK7lTzzJKbOiyiUtG_jlJXfz_xNKMn5LjkQ9vjbttXE,1538
94
94
  clarifai/runners/utils/data_utils.py,sha256=HRpMYR2O0OiDpXXhOManLHTeomC4bFnXMHVAiT_12yE,20856
95
95
  clarifai/runners/utils/loader.py,sha256=K5Y8MPbIe5STw2gDnrL8KqFgKNxEo7bz-RV0ip1T4PM,10900
@@ -106,9 +106,9 @@ clarifai/urls/helper.py,sha256=z6LnLGgLHxD8scFtyRdxqYIRJNhxqPkfLe53UtTLUBY,11727
106
106
  clarifai/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
107
  clarifai/utils/cli.py,sha256=7lHajIsWzyEU7jfgH1nykwYG63wcHCZ3ep7a6amWZH4,5413
108
108
  clarifai/utils/config.py,sha256=jMSWYxJfp_D8eoGqz-HTdsngn5bg_1ymjLidYz6rdLA,7073
109
- clarifai/utils/constants.py,sha256=nvKNAOnfvHza03mYHVLfyOfm_AcFiNKr2CzwyEQgoQI,2110
109
+ clarifai/utils/constants.py,sha256=ak-VVsdED4OKpPFbRWNbSBS8SZzGo_yVS3-ODGcPO8Y,2145
110
110
  clarifai/utils/logging.py,sha256=0we53uTqUvzrulC86whu-oeWNxn1JjJL0OQ98Bwf9vo,15198
111
- clarifai/utils/misc.py,sha256=x7JP8oxU672Z9yAav47Y1anFiL4RD8WvlKBHMVlbyZM,3137
111
+ clarifai/utils/misc.py,sha256=ug5A7m_WdLtFip5_U1jbvT6ZsmsCzFQatjE3B-KcaAQ,5387
112
112
  clarifai/utils/model_train.py,sha256=0XSAoTkSsrwf4f-W9yw2mkXZtkal7LBLJSoi86CFCn4,9250
113
113
  clarifai/utils/protobuf.py,sha256=VMhnNsPuWQ16VarKm8BOr5zccXMe26UlrxdJxIzEZNM,6220
114
114
  clarifai/utils/evaluation/__init__.py,sha256=PYkurUrXrGevByj7RFb6CoU1iC7fllyQSfnnlo9WnY8,69
@@ -119,9 +119,9 @@ clarifai/workflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
119
119
  clarifai/workflows/export.py,sha256=HvUYG9N_-UZoRR0-_tdGbZ950_AeBqawSppgUxQebR0,1913
120
120
  clarifai/workflows/utils.py,sha256=ESL3INcouNcLKCh-nMpfXX-YbtCzX7tz7hT57_RGQ3M,2079
121
121
  clarifai/workflows/validate.py,sha256=UhmukyHkfxiMFrPPeBdUTiCOHQT5-shqivlBYEyKTlU,2931
122
- clarifai-11.6.0.dist-info/licenses/LICENSE,sha256=mUqF_d12-qE2n41g7C5_sq-BMLOcj6CNN-jevr15YHU,555
123
- clarifai-11.6.0.dist-info/METADATA,sha256=PPsStGThhQJq7knvZFbIoQL0JfEACgAPaUrWAH1I8CQ,22737
124
- clarifai-11.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
125
- clarifai-11.6.0.dist-info/entry_points.txt,sha256=X9FZ4Z-i_r2Ud1RpZ9sNIFYuu_-9fogzCMCRUD9hyX0,51
126
- clarifai-11.6.0.dist-info/top_level.txt,sha256=wUMdCQGjkxaynZ6nZ9FAnvBUCgp5RJUVFSy2j-KYo0s,9
127
- clarifai-11.6.0.dist-info/RECORD,,
122
+ clarifai-11.6.2.dist-info/licenses/LICENSE,sha256=mUqF_d12-qE2n41g7C5_sq-BMLOcj6CNN-jevr15YHU,555
123
+ clarifai-11.6.2.dist-info/METADATA,sha256=kTK4jHcDxTNvtoqcZVZ3Th80hByozBNF1H4nENvSLiU,22737
124
+ clarifai-11.6.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
125
+ clarifai-11.6.2.dist-info/entry_points.txt,sha256=X9FZ4Z-i_r2Ud1RpZ9sNIFYuu_-9fogzCMCRUD9hyX0,51
126
+ clarifai-11.6.2.dist-info/top_level.txt,sha256=wUMdCQGjkxaynZ6nZ9FAnvBUCgp5RJUVFSy2j-KYo0s,9
127
+ clarifai-11.6.2.dist-info/RECORD,,