Skip to main content

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.

Documentation

You can find the documentation at our ModelOne 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 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)

Metadata

Release files for model-one 0.1.14

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

Source distribution (sdist)

Source distribution for model-one 0.1.14
File Size Uploaded
model_one-0.1.14.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for model-one 0.1.14
File Interpreter ABI Platform
model_one-0.1.14-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / model_one-0.1.14.tar.gz

Download URL model_one-0.1.14.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
01b6f18e6ae88a7aa080822bde2ae8c239abd658cfbe45828504901cdac2cba7
BLAKE2b-256 checksum
How to use checksums
a14751285ef847e5da6454f86b6ede1eb69105f62c72db66c110e0b626a28506
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / model_one-0.1.14-py3-none-any.whl

Download URL model_one-0.1.14-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29c41c8dfccc0e3d48a49d2d0c1478b36179f7df9dab287a6f23105d037fc151
BLAKE2b-256 checksum
How to use checksums
cde7389e136e68af421fffb079a27277be13af419bbb1c716053cd4d486bb727
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.14 This release

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

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.4

2 release files

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