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 tune_the_model as ttm
import pandas as pd

ttm.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 = ttm.tune_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.31.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

tune_the_model-0.1.31-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tune_the_model-0.1.31.tar.gz
  • Upload date:
  • Size: 14.8 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.31.tar.gz
Algorithm Hash digest
SHA256 148b3f3b045859c8cabeb7d89424a33195656077b04dc6906607f3613c049a70
MD5 f7a3607ce8134442da8d0740c48c94a6
BLAKE2b-256 f4a93a429883bce16bcea93339056d895ef50e8978f7344107c4de60369f6eb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tune_the_model-0.1.31-py3-none-any.whl
Algorithm Hash digest
SHA256 c7419bc37593f8f049dea973ffd7ab7d15ed1de84c22b0f70ca463d78c3bcc1f
MD5 584d77266c34e50b7b4dd5c60e882846
BLAKE2b-256 537671773e3bf58978f8aa48bfe4f3cd2e6a5702a11911d23c606683aabadc14

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