Skip to main content

aimped

aimped

PyPI version Downloads

Welcome to Aimped Inc.: an LLMs-in-the-loop AI Platform.

Aimped is a distinctive AI platform offering model inference and development, harnessing the power of LLMs. Our innovative approach ensures quick, cost-effective, and efficient model training and evaluation. Additionally, we provide user-friendly UI-based AI applications and LLM Agents, making advanced AI accessible and easy to use.

Moreover, we will soon allow model uploads and enable users to earn money. This will encourage the open-source community to share models, reducing redundant training and computing costs while fostering collaboration and innovation.

aimped is a unique python library that provides classes and functions for only exclusively business-tailored AI-based models. In this version, we provide the following features: API service, Sound processing tools and functions, NLP tools and functions, and a pipeline class for NLP tasks.

Installation

pip install aimped

API Usage

Configuration of the Library

from aimped.services.api import AimpedAPI

# Create new instance Aimped
user_key = ''  # user_key received from A3M.
user_secret = ''  # user_secret received from A3M.
BASE_URL = 'https://aimped.ai'  # Aimped domain url

api_service = AimpedAPI(user_key, user_secret, {
  base_url: BASE_URL
})

Preparation of the model input data

model_id = ""   # ID of the model run. The model ID is available on the model description page under API usage. 
payload = {...}  # Model input examples (payload) are available in the api usage tab on the Model description page. 

Usage of API Function

result = api_service.run_mode(model_id, input_data)

Usage of API Callback Function

# return callback function

def callback(event, message, time, data=None):
    if event == 'start':
        print(f'Start event at {time}: {message}')
    elif event == 'proccess':
        print(f'Progress event at {time}: {message}')
    elif event == 'error':
        print(f'Error event at {time}: {message}')
    elif event == 'end':
        print(f'End event at {time}: {message}. Data: {data}')

result = api_service.run_model_callback(model_id, payload, callback)

Usage of API File Upload

Some of the models supports file inputs. These inputs are accepted as URIs. Here is the usage of API for file uploads.

input = api_service.file_upload(
    model_id,
    '/Users/joe/Downloads/xyz.pdf'  # sample file path to upload
    )

Usage of API File Download

Some of the models supports file outputs as result. These outputs are created as URIs. Here is the usage of API for file downloads.

  output_file = api_service.file_download_and_save(
    'input/application/model_{{modelId}}/user_{{userId}}/file_name',  # URI of the model output file in the result
    '/Users/joe/Downloads/123_file_name'  # sample local file path to save
    )

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Metadata

Release files for aimped 0.2.54

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aimped 0.2.54
File Size Uploaded
aimped-0.2.54.tar.gz 42.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aimped 0.2.54
File Interpreter ABI Platform
aimped-0.2.54-py3-none-any.whl Python 3 none any Details

Total release size: 100.5 kB

Release files / aimped-0.2.54.tar.gz

Download URL aimped-0.2.54.tar.gz
Size 42.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cb060800ecaa42e876d8a92a46679fc27efb52d5bb8f4ae29d68b34c9b1bb9ed
BLAKE2b-256 checksum
How to use checksums
38737e68df28f2391420909633d439f5c7d8022629e532998392fe3744c3602a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.18

Release files / aimped-0.2.54-py3-none-any.whl

Download URL aimped-0.2.54-py3-none-any.whl
Size 58.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d678ac784051b746c25893fbcc1889dff3fcbd61dc8531031146ea15997b80f1
BLAKE2b-256 checksum
How to use checksums
2bdfb51623a24e20203ee5918af495582d667ff8c75e117e281fedc541c23965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.2.54 This release

2 release files

0.2.53

2 release files

0.2.51

2 release files

0.2.44

2 release files

0.2.43

2 release files

0.2.41

2 release files

0.2.22

2 release files

0.2.21

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.71

2 release files

0.1.70

2 release files

0.1.69

2 release files

0.1.68

2 release files

0.1.61

2 release files

0.1.59

2 release files

0.1.58

2 release files

0.1.57

2 release files

0.1.56

2 release files

0.1.55

2 release files

0.1.54

2 release files

0.1.53

2 release files

0.1.52

2 release files

0.1.47

2 release files

0.1.46

2 release files

0.1.45

2 release files

0.1.44

2 release files

0.1.43

2 release files

0.1.42

2 release files

0.1.21

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page