算想云对开发者提供的API
This Python package is automatically generated by the OpenAPI Generator project:
- API version: v1
- Package version: 1.0.3
- Generator version: 7.10.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 3.8+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import sxwl_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import sxwl_client
Execute pytest
to run the tests.
Please follow the installation procedure and then run the following:
import sxwl_client
from sxwl_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = sxwl_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with sxwl_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = sxwl_client.SchedulerApiApi(api_client)
adapter_name = 'adapter_name_example' # str |
try:
api_response = api_instance.adapter_by_name(adapter_name)
print("The response of SchedulerApiApi->adapter_by_name:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling SchedulerApiApi->adapter_by_name: %s\n" % e)
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
SchedulerApiApi | adapter_by_name | GET /api/resource/adapter/name | |
SchedulerApiApi | dataset_by_name | GET /api/resource/dataset/name | |
SchedulerApiApi | finetune | POST /api/job/finetune | |
SchedulerApiApi | finetune_status | GET /api/job/finetune/status | |
SchedulerApiApi | gpu_job_status | GET /api/job/gpu/status | |
SchedulerApiApi | gpu_job_stop | POST /api/job/gpu/stop | |
SchedulerApiApi | inference_deploy | POST /api/job/inference | |
SchedulerApiApi | inference_status | GET /api/job/inference/status | |
SchedulerApiApi | inference_stop | POST /api/job/inference/stop | |
SchedulerApiApi | job_create | POST /api/job/training | |
SchedulerApiApi | model_by_name | GET /api/resource/model/name |
- Adapter
- AdapterByNameReq
- AdapterOptional
- BaseResp
- Dataset
- DatasetByNameReq
- DatasetOptional
- FinetuneReq
- FinetuneResp
- FinetuneStatusReq
- FinetuneStatusResp
- GPUJobStatusReq
- GPUJobStatusResp
- GPUJobStopResp
- Hyperparameters
- InferenceDeployReq
- InferenceDeployResp
- InferenceStatusReq
- InferenceStatusResp
- JobCallBackReq
- JobCreateReq
- JobCreateResp
- Model
- ModelByNameReq
- ModelOptional
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header