Skip to main content
# autotune
Hyperparameter tuning on GPUs

[![Build Status](https://travis-ci.org/vzhong/autotune.svg?branch=master)](https://travis-ci.org/vzhong/autotune)

## Installation

```bash
pip install pip install git+git://github.com/vzhong/autotune.git
```

## Usage

You can use the binary:

```bash
autotune -h
```

Or use it programmatically:

```python
from autotune.tuner import RandomSearch
from autotune.spec import Spec

config = Spec.load('myconf.json')
tuner = RandomSearch('myprog.bin', config)
tuner.tune(2, out='output')
```

where `myconf.json` looks something like:

```json
{
"foo": [-1, 1],
"bar": [2.0, 3.0]
}
```

This will run 2 commands `myprog.bin --foo $FOO --bar $BAR` where `$FOO` is an integer sampled between `-1` and `1` and `$BAR` is a float sampled between `2.0` and `3.0`.
You can pass in an optional parameter `name='nickname'`, which will add to the command `--nickname $HASH`, where `$HASH` is a hash of the specific parameters used for this command.
You can also pass in an optional parameter `gpu=True`, which will queue jobs onto aavailable GPUs.
The command then becomes `CUDA_VISIBLE_DEVICES=$GPU myprog.bin --foo $FOO --bar $BAR --gpu 0`, where `$GPU` is a free GPU (e.g. no memory usage).


Metadata

Release files for autotune 0.0.2

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

Built distribution (wheel)

Table of built distributions (wheels) for autotune 0.0.2
File Interpreter ABI Platform Actions
autotune-0.0.2-py3-none-any.whl Python 3 none any Details for autotune-0.0.2-py3-none-any.whl

Release files / autotune-0.0.2-py3-none-any.whl

Download URL autotune-0.0.2-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c4fb6a692bfa1dd0f6e3ef2bd56e927eb9dbc6140c869f3c8bbee66fdbca092
BLAKE2b-256 checksum
How to use checksums
caa798629019520143fd311c3f6631c555b56f4d12ae8d94458903aba26c3372
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for autotune 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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