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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tune_the_model-0.1.19.tar.gz
.
File metadata
- Download URL: tune_the_model-0.1.19.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60bcaf9ffd4c3aa34451355809d2ccc2287782ff34c203b10fbf04bb09ed4b7d |
|
MD5 | ec7b978130270b4399bdd5b959673ca2 |
|
BLAKE2b-256 | b7091907cf3b948dba56a2b7641dec04472e441545da43127ec763340c767974 |
File details
Details for the file tune_the_model-0.1.19-py3-none-any.whl
.
File metadata
- Download URL: tune_the_model-0.1.19-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c546eddb76df6fb7f3367b308b31be29c583f23e80102ab85aa6c0ab82877e5 |
|
MD5 | 2ef662c191bc7b3cae3fde4f3204f2c5 |
|
BLAKE2b-256 | addf7940a33d9b0096f694ddaeb027a81a8cd2227afe4032ad0252c841353089 |