opengradient 0.3.0__tar.gz → 0.3.1__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.
Files changed (21) hide show
  1. {opengradient-0.3.0/src/opengradient.egg-info → opengradient-0.3.1}/PKG-INFO +18 -8
  2. {opengradient-0.3.0 → opengradient-0.3.1}/README.md +18 -8
  3. {opengradient-0.3.0 → opengradient-0.3.1}/pyproject.toml +1 -1
  4. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient/__init__.py +2 -2
  5. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient/client.py +2 -2
  6. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient/defaults.py +1 -2
  7. {opengradient-0.3.0 → opengradient-0.3.1/src/opengradient.egg-info}/PKG-INFO +18 -8
  8. {opengradient-0.3.0 → opengradient-0.3.1}/LICENSE +0 -0
  9. {opengradient-0.3.0 → opengradient-0.3.1}/setup.cfg +0 -0
  10. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient/abi/inference.abi +0 -0
  11. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient/abi/llm.abi +0 -0
  12. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient/account.py +0 -0
  13. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient/cli.py +0 -0
  14. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient/exceptions.py +0 -0
  15. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient/types.py +0 -0
  16. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient/utils.py +0 -0
  17. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient.egg-info/SOURCES.txt +0 -0
  18. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient.egg-info/dependency_links.txt +0 -0
  19. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient.egg-info/entry_points.txt +0 -0
  20. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient.egg-info/requires.txt +0 -0
  21. {opengradient-0.3.0 → opengradient-0.3.1}/src/opengradient.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: opengradient
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Python SDK for OpenGradient decentralized model management & inference services
5
5
  Author-email: OpenGradient <oliver@opengradient.ai>
6
6
  License: MIT License
@@ -135,21 +135,27 @@ Requires-Dist: websockets==13.1
135
135
  Requires-Dist: xattr==1.1.0
136
136
  Requires-Dist: yarl==1.13.1
137
137
 
138
- # OpenGradient SDK
139
-
140
- Python SDK for OpenGradient decentralized model management & inference services.
138
+ # OpenGradient Python SDK
139
+ Python SDK for the OpenGradient platform provides decentralized model management & inference services. Python SDK allows programmatic access to our model repository and decentralized AI infrastructure.
141
140
 
142
141
  ## Installation
142
+
143
+ To install Python SDK and CLI, run the following command:
143
144
  ```python
144
145
  pip install opengradient
145
146
  ```
146
147
 
147
148
  ## Quick Start
149
+
150
+ To get started, run:
151
+
148
152
  ```python
149
153
  import opengradient as og
150
- og.init(email="<email>", password="<password>")
154
+ og.init(private_key="<private_key>", email="<email>", password="<password>")
151
155
  ```
152
156
 
157
+ The following commands show how to use Python SDK.
158
+
153
159
  ### Create a Model
154
160
  ```python
155
161
  og.create_model(model_name="<model_name>", model_desc="<model_description>")
@@ -180,6 +186,8 @@ og.list_files(model_name="<model_name>", version="<version>")
180
186
  inference_mode = og.InferenceMode.VANILLA
181
187
  og.infer(model_cid, model_inputs, inference_mode)
182
188
  ```
189
+ - inference mode can be `VANILLA`, `ZKML`, or `TEE`
190
+
183
191
 
184
192
  ## Using the CLI
185
193
 
@@ -188,15 +196,15 @@ export OPENGRADIENT_EMAIL="<email>"
188
196
  export OPENGRADIENT_PASSWORD="<password>"
189
197
  ```
190
198
 
191
- #### Creating a Model
199
+ #### Creating a Model Repo
192
200
  ```bash
193
- opengradient create_model "<model_name>" "<description>"
201
+ opengradient create_model_repo "<model_name>" "<description>"
194
202
  ```
195
203
  - creating a model automatically initializes version `v0.01`
196
204
 
197
205
  #### Creating a Version
198
206
  ```bash
199
- opengradient create_model "<model_name>" "<description>"
207
+ opengradient create_model_repo "<model_name>" "<description>"
200
208
  ```
201
209
 
202
210
  #### Upload a File
@@ -218,3 +226,5 @@ opengradient infer QmbUqS93oc4JTLMHwpVxsE39mhNxy6hpf6Py3r9oANr8aZ VANILLA '{"num
218
226
  ```bash
219
227
  opengradient infer QmbUqS93oc4JTLMHwpVxsE39mhNxy6hpf6Py3r9oANr8aZ VANILLA --input_file input.json
220
228
  ```
229
+
230
+ For more information read the OpenGradient [documentation](https://docs.opengradient.ai/).
@@ -1,18 +1,24 @@
1
- # OpenGradient SDK
2
-
3
- Python SDK for OpenGradient decentralized model management & inference services.
1
+ # OpenGradient Python SDK
2
+ Python SDK for the OpenGradient platform provides decentralized model management & inference services. Python SDK allows programmatic access to our model repository and decentralized AI infrastructure.
4
3
 
5
4
  ## Installation
5
+
6
+ To install Python SDK and CLI, run the following command:
6
7
  ```python
7
8
  pip install opengradient
8
9
  ```
9
10
 
10
11
  ## Quick Start
12
+
13
+ To get started, run:
14
+
11
15
  ```python
12
16
  import opengradient as og
13
- og.init(email="<email>", password="<password>")
17
+ og.init(private_key="<private_key>", email="<email>", password="<password>")
14
18
  ```
15
19
 
20
+ The following commands show how to use Python SDK.
21
+
16
22
  ### Create a Model
17
23
  ```python
18
24
  og.create_model(model_name="<model_name>", model_desc="<model_description>")
@@ -43,6 +49,8 @@ og.list_files(model_name="<model_name>", version="<version>")
43
49
  inference_mode = og.InferenceMode.VANILLA
44
50
  og.infer(model_cid, model_inputs, inference_mode)
45
51
  ```
52
+ - inference mode can be `VANILLA`, `ZKML`, or `TEE`
53
+
46
54
 
47
55
  ## Using the CLI
48
56
 
@@ -51,15 +59,15 @@ export OPENGRADIENT_EMAIL="<email>"
51
59
  export OPENGRADIENT_PASSWORD="<password>"
52
60
  ```
53
61
 
54
- #### Creating a Model
62
+ #### Creating a Model Repo
55
63
  ```bash
56
- opengradient create_model "<model_name>" "<description>"
64
+ opengradient create_model_repo "<model_name>" "<description>"
57
65
  ```
58
66
  - creating a model automatically initializes version `v0.01`
59
67
 
60
68
  #### Creating a Version
61
69
  ```bash
62
- opengradient create_model "<model_name>" "<description>"
70
+ opengradient create_model_repo "<model_name>" "<description>"
63
71
  ```
64
72
 
65
73
  #### Upload a File
@@ -80,4 +88,6 @@ opengradient infer QmbUqS93oc4JTLMHwpVxsE39mhNxy6hpf6Py3r9oANr8aZ VANILLA '{"num
80
88
  #### CLI infer using file path input
81
89
  ```bash
82
90
  opengradient infer QmbUqS93oc4JTLMHwpVxsE39mhNxy6hpf6Py3r9oANr8aZ VANILLA --input_file input.json
83
- ```
91
+ ```
92
+
93
+ For more information read the OpenGradient [documentation](https://docs.opengradient.ai/).
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "opengradient"
7
- version = "0.3.0"
7
+ version = "0.3.1"
8
8
  description = "Python SDK for OpenGradient decentralized model management & inference services"
9
9
  authors = [{name = "OpenGradient", email = "oliver@opengradient.ai"}]
10
10
  license = {file = "LICENSE"}
@@ -2,13 +2,13 @@ from .client import Client
2
2
  from .defaults import *
3
3
  from .types import InferenceMode
4
4
  from typing import List, Dict
5
- __version__ = "0.3.0"
5
+ __version__ = "0.3.1"
6
6
 
7
7
  _client = None
8
8
 
9
9
  def init(email: str,
10
10
  password: str,
11
- private_key=DEFAULT_PRIVATE_KEY,
11
+ private_key: str,
12
12
  rpc_url=DEFAULT_RPC_URL,
13
13
  contract_address=DEFAULT_INFERENCE_CONTRACT_ADDRESS):
14
14
  global _client
@@ -32,6 +32,8 @@ class Client:
32
32
  email (str, optional): Email for authentication. Defaults to "test@test.com".
33
33
  password (str, optional): Password for authentication. Defaults to "Test-123".
34
34
  """
35
+ self.email = email
36
+ self.password = password
35
37
  self.private_key = private_key
36
38
  self.rpc_url = rpc_url
37
39
  self.contract_address = contract_address
@@ -41,8 +43,6 @@ class Client:
41
43
  self.firebase_app = firebase.initialize_app(self.FIREBASE_CONFIG)
42
44
  self.auth = self.firebase_app.auth()
43
45
  self.user = None
44
- self.email = email
45
- self.password = password
46
46
 
47
47
  logging.debug("Initialized client with parameters:\n"
48
48
  "private key: %s\n"
@@ -1,7 +1,6 @@
1
1
 
2
2
  # Default variables
3
- DEFAULT_PRIVATE_KEY="cd09980ef6e280afc3900d2d6801f9e9c5d858a5deaeeab74a65643f5ff1a4c1"
4
3
  DEFAULT_RPC_URL="http://18.218.115.248:8545"
5
4
  DEFAULT_OG_FAUCET_URL="http://18.218.115.248:8080/?address="
6
5
  DEFAULT_HUB_SIGNUP_URL="https://hub.opengradient.ai/signup"
7
- DEFAULT_INFERENCE_CONTRACT_ADDRESS="0x75D0266DAb643417e9FFD828A1A31C1E039a966c"
6
+ DEFAULT_INFERENCE_CONTRACT_ADDRESS="0x350E0A430b2B1563481833a99523Cfd17a530e4e"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: opengradient
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Python SDK for OpenGradient decentralized model management & inference services
5
5
  Author-email: OpenGradient <oliver@opengradient.ai>
6
6
  License: MIT License
@@ -135,21 +135,27 @@ Requires-Dist: websockets==13.1
135
135
  Requires-Dist: xattr==1.1.0
136
136
  Requires-Dist: yarl==1.13.1
137
137
 
138
- # OpenGradient SDK
139
-
140
- Python SDK for OpenGradient decentralized model management & inference services.
138
+ # OpenGradient Python SDK
139
+ Python SDK for the OpenGradient platform provides decentralized model management & inference services. Python SDK allows programmatic access to our model repository and decentralized AI infrastructure.
141
140
 
142
141
  ## Installation
142
+
143
+ To install Python SDK and CLI, run the following command:
143
144
  ```python
144
145
  pip install opengradient
145
146
  ```
146
147
 
147
148
  ## Quick Start
149
+
150
+ To get started, run:
151
+
148
152
  ```python
149
153
  import opengradient as og
150
- og.init(email="<email>", password="<password>")
154
+ og.init(private_key="<private_key>", email="<email>", password="<password>")
151
155
  ```
152
156
 
157
+ The following commands show how to use Python SDK.
158
+
153
159
  ### Create a Model
154
160
  ```python
155
161
  og.create_model(model_name="<model_name>", model_desc="<model_description>")
@@ -180,6 +186,8 @@ og.list_files(model_name="<model_name>", version="<version>")
180
186
  inference_mode = og.InferenceMode.VANILLA
181
187
  og.infer(model_cid, model_inputs, inference_mode)
182
188
  ```
189
+ - inference mode can be `VANILLA`, `ZKML`, or `TEE`
190
+
183
191
 
184
192
  ## Using the CLI
185
193
 
@@ -188,15 +196,15 @@ export OPENGRADIENT_EMAIL="<email>"
188
196
  export OPENGRADIENT_PASSWORD="<password>"
189
197
  ```
190
198
 
191
- #### Creating a Model
199
+ #### Creating a Model Repo
192
200
  ```bash
193
- opengradient create_model "<model_name>" "<description>"
201
+ opengradient create_model_repo "<model_name>" "<description>"
194
202
  ```
195
203
  - creating a model automatically initializes version `v0.01`
196
204
 
197
205
  #### Creating a Version
198
206
  ```bash
199
- opengradient create_model "<model_name>" "<description>"
207
+ opengradient create_model_repo "<model_name>" "<description>"
200
208
  ```
201
209
 
202
210
  #### Upload a File
@@ -218,3 +226,5 @@ opengradient infer QmbUqS93oc4JTLMHwpVxsE39mhNxy6hpf6Py3r9oANr8aZ VANILLA '{"num
218
226
  ```bash
219
227
  opengradient infer QmbUqS93oc4JTLMHwpVxsE39mhNxy6hpf6Py3r9oANr8aZ VANILLA --input_file input.json
220
228
  ```
229
+
230
+ For more information read the OpenGradient [documentation](https://docs.opengradient.ai/).
File without changes
File without changes