beyondml
Project description
Model One python wrapper
Model One is a few-shot AutoML system.
Model One can do almost anything that requires understanding or generating natural language. Model One 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 model-one
package allows you to train and apply models.
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.
Get started
Firstly fill out the form to get a key to access the API. We will send you the key within a day.
Install
To install the package just use pip install model-one
.
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
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
Hashes for model_one-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeecd931cb2f75b39e60e28f930dd9d840614920bb80965a7881d9b5f8803cd9 |
|
MD5 | 599f9b1a242bffb2b0688ff55c3db2a8 |
|
BLAKE2b-256 | b1cc61f5895df228c68920554dc11314549d42972228801b173899c7156c1f8b |