Skip to main content

beyondml

Project description

Tune The Model python wrapper

Tune The Model is a few-shot AutoML system.

Tune The Model can do almost anything that requires understanding or generating natural language. It is able to solve tasks in 12 languages: English, Spanish, Portuguese, Russian, Turkish, French, German, Italian, Arabic, Polish, Dutch, and Hebrew.

This package provides a simple wrapper for using our api.

Using tune-the-model package allows you to train and apply models.

Documentation

You can find the documentation at our Tune The Model API docs site.

Just try

We have fine-tuned several models. You can use the notebook to try them out. You can get the token to fine tune your own model.

Getting started

Firstly fill out the form to get a key to access the API. We will send you the key within a day.

Installation

To install the package just use pip install -U tune-the-model.

Usage

import model_one
import pandas as pd

model_one.set_api_key('YOUR_API_KEY')

# load datasets
tdf = pd.read_csv('train.csv')
vdf = pd.read_csv('test.csv')

# Call one method. It will do everything for you:
# create a model, save it to the file, upload datasets and put the model in the queue for training.
model = model_one.train_generator(
    'filename.json',
    tdf['inputs'], tdf['outputs'],
    vdf['inputs'], vdf['outputs']
)

# wait...
# a few hours
# while our GPUs train your model
model.wait_for_training_finish()

print(model.status)
print(model.is_ready)

# inference!
the_answer = model.generate('The Answer to the Ultimate Question of Life, the Universe, and Everything')
print(the_answer)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tune_the_model-0.1.16.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

tune_the_model-0.1.16-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file tune_the_model-0.1.16.tar.gz.

File metadata

  • Download URL: tune_the_model-0.1.16.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for tune_the_model-0.1.16.tar.gz
Algorithm Hash digest
SHA256 eda786b5bbb510c3f9b59ec1e88154ca4ef8c7c929c20afbb7f7cd4a865579e7
MD5 a933a4b2c6c34858e28e81b11c1e9d6a
BLAKE2b-256 4bab1988a52cb15295cf1d1f29ee88cdce87583883a01216ded923e3230c5f83

See more details on using hashes here.

File details

Details for the file tune_the_model-0.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for tune_the_model-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 d3611d6c27e601c6e0b36b3639c70ab023339833fe8a17f757130270f51750c7
MD5 79a8b11891be63502f1a1384562baf7d
BLAKE2b-256 0f5a8fe29e92aaf9fa7964106afbf2cc5a185fa58fd4665516fe01c411aefea0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page