seekrai 0.1.0__tar.gz → 0.1.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.
- {seekrai-0.1.0 → seekrai-0.1.1}/PKG-INFO +4 -8
- {seekrai-0.1.0 → seekrai-0.1.1}/README.md +3 -7
- {seekrai-0.1.0 → seekrai-0.1.1}/pyproject.toml +1 -1
- {seekrai-0.1.0 → seekrai-0.1.1}/LICENSE +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/__init__.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/abstract/__init__.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/abstract/api_requestor.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/client.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/constants.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/error.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/filemanager.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/resources/__init__.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/resources/chat/__init__.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/resources/chat/completions.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/resources/completions.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/resources/embeddings.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/resources/files.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/resources/finetune.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/resources/images.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/resources/models.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/seekrflow_response.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/__init__.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/abstract.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/chat_completions.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/common.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/completions.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/embeddings.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/error.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/files.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/finetune.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/images.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/types/models.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/utils/__init__.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/utils/_log.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/utils/api_helpers.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/utils/files.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/utils/tools.py +0 -0
- {seekrai-0.1.0 → seekrai-0.1.1}/src/seekrai/version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: seekrai
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Python client for SeekrAI
|
|
5
5
|
Home-page: https://gitlab.cb.ntent.com/ml/seekr-py
|
|
6
6
|
License: Apache-2.0
|
|
@@ -59,8 +59,6 @@ from seekrai import SeekrFlow
|
|
|
59
59
|
client = SeekrFlow(api_key="xxxxx")
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
This library contains both a python library and a CLI. We'll demonstrate how to use both below.
|
|
63
|
-
|
|
64
62
|
# Usage – Python Client
|
|
65
63
|
|
|
66
64
|
## Chat Completions
|
|
@@ -128,7 +126,7 @@ asyncio.run(async_chat_completion(messages))
|
|
|
128
126
|
|
|
129
127
|
## Files
|
|
130
128
|
|
|
131
|
-
The files API is used for fine-tuning and allows developers to upload data to fine-tune on. It also has several methods to list all files,
|
|
129
|
+
The files API is used for fine-tuning and allows developers to upload data to fine-tune on. It also has several methods to list all files, retrieve files, and delete files
|
|
132
130
|
|
|
133
131
|
```python
|
|
134
132
|
import os
|
|
@@ -136,7 +134,7 @@ from seekrai import SeekrFlow
|
|
|
136
134
|
|
|
137
135
|
client = SeekrFlow(api_key=os.environ.get("SEEKR_API_KEY"))
|
|
138
136
|
|
|
139
|
-
client.files.upload(file="somedata.
|
|
137
|
+
client.files.upload(file="somedata.parquet") # uploads a file
|
|
140
138
|
client.files.list() # lists all uploaded files
|
|
141
139
|
client.files.retrieve(id="file-d0d318cb-b7d9-493a-bd70-1cfe089d3815") # retrieves a specific file
|
|
142
140
|
client.files.delete(id="file-d0d318cb-b7d9-493a-bd70-1cfe089d3815") # deletes a file
|
|
@@ -144,7 +142,7 @@ client.files.delete(id="file-d0d318cb-b7d9-493a-bd70-1cfe089d3815") # deletes a
|
|
|
144
142
|
|
|
145
143
|
## Fine-tunes
|
|
146
144
|
|
|
147
|
-
The finetune API is used for fine-tuning and allows developers to create finetuning jobs. It also has several methods to list all jobs,
|
|
145
|
+
The finetune API is used for fine-tuning and allows developers to create finetuning jobs. It also has several methods to list all jobs, retrieve statuses and get checkpoints.
|
|
148
146
|
|
|
149
147
|
```python
|
|
150
148
|
import os
|
|
@@ -160,10 +158,8 @@ client.fine_tuning.create(
|
|
|
160
158
|
batch_size=4,
|
|
161
159
|
learning_rate=1e-5,
|
|
162
160
|
suffix='my-demo-finetune',
|
|
163
|
-
wandb_api_key='1a2b3c4d5e.......',
|
|
164
161
|
)
|
|
165
162
|
client.fine_tuning.list() # lists all fine-tuned jobs
|
|
166
163
|
client.fine_tuning.retrieve(id="ft-c66a5c18-1d6d-43c9-94bd-32d756425b4b") # retrieves information on finetune event
|
|
167
|
-
client.fine_tuning.list_events(id="ft-c66a5c18-1d6d-43c9-94bd-32d756425b4b") # Lists events of a fine-tune job
|
|
168
164
|
```
|
|
169
165
|
|
|
@@ -26,8 +26,6 @@ from seekrai import SeekrFlow
|
|
|
26
26
|
client = SeekrFlow(api_key="xxxxx")
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
This library contains both a python library and a CLI. We'll demonstrate how to use both below.
|
|
30
|
-
|
|
31
29
|
# Usage – Python Client
|
|
32
30
|
|
|
33
31
|
## Chat Completions
|
|
@@ -95,7 +93,7 @@ asyncio.run(async_chat_completion(messages))
|
|
|
95
93
|
|
|
96
94
|
## Files
|
|
97
95
|
|
|
98
|
-
The files API is used for fine-tuning and allows developers to upload data to fine-tune on. It also has several methods to list all files,
|
|
96
|
+
The files API is used for fine-tuning and allows developers to upload data to fine-tune on. It also has several methods to list all files, retrieve files, and delete files
|
|
99
97
|
|
|
100
98
|
```python
|
|
101
99
|
import os
|
|
@@ -103,7 +101,7 @@ from seekrai import SeekrFlow
|
|
|
103
101
|
|
|
104
102
|
client = SeekrFlow(api_key=os.environ.get("SEEKR_API_KEY"))
|
|
105
103
|
|
|
106
|
-
client.files.upload(file="somedata.
|
|
104
|
+
client.files.upload(file="somedata.parquet") # uploads a file
|
|
107
105
|
client.files.list() # lists all uploaded files
|
|
108
106
|
client.files.retrieve(id="file-d0d318cb-b7d9-493a-bd70-1cfe089d3815") # retrieves a specific file
|
|
109
107
|
client.files.delete(id="file-d0d318cb-b7d9-493a-bd70-1cfe089d3815") # deletes a file
|
|
@@ -111,7 +109,7 @@ client.files.delete(id="file-d0d318cb-b7d9-493a-bd70-1cfe089d3815") # deletes a
|
|
|
111
109
|
|
|
112
110
|
## Fine-tunes
|
|
113
111
|
|
|
114
|
-
The finetune API is used for fine-tuning and allows developers to create finetuning jobs. It also has several methods to list all jobs,
|
|
112
|
+
The finetune API is used for fine-tuning and allows developers to create finetuning jobs. It also has several methods to list all jobs, retrieve statuses and get checkpoints.
|
|
115
113
|
|
|
116
114
|
```python
|
|
117
115
|
import os
|
|
@@ -127,9 +125,7 @@ client.fine_tuning.create(
|
|
|
127
125
|
batch_size=4,
|
|
128
126
|
learning_rate=1e-5,
|
|
129
127
|
suffix='my-demo-finetune',
|
|
130
|
-
wandb_api_key='1a2b3c4d5e.......',
|
|
131
128
|
)
|
|
132
129
|
client.fine_tuning.list() # lists all fine-tuned jobs
|
|
133
130
|
client.fine_tuning.retrieve(id="ft-c66a5c18-1d6d-43c9-94bd-32d756425b4b") # retrieves information on finetune event
|
|
134
|
-
client.fine_tuning.list_events(id="ft-c66a5c18-1d6d-43c9-94bd-32d756425b4b") # Lists events of a fine-tune job
|
|
135
131
|
```
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|