Note
Click here to download the full example code
Hyperparameter tuning with Ray Tune¶
Created On: Aug 31, 2020 | Last Updated: Oct 31, 2024 | Last Verified: Nov 05, 2024
Hyperparameter tuning can make the difference between an average model and a highly accurate one. Often simple things like choosing a different learning rate or changing a network layer size can have a dramatic impact on your model performance.
Fortunately, there are tools that help with finding the best combination of parameters. Ray Tune is an industry standard tool for distributed hyperparameter tuning. Ray Tune includes the latest hyperparameter search algorithms, integrates with various analysis libraries, and natively supports distributed training through Ray’s distributed machine learning engine.
In this tutorial, we will show you how to integrate Ray Tune into your PyTorch training workflow. We will extend this tutorial from the PyTorch documentation for training a CIFAR10 image classifier.
As you will see, we only need to add some slight modifications. In particular, we need to
wrap data loading and training in functions,
make some network parameters configurable,
add checkpointing (optional),
and define the search space for the model tuning
To run this tutorial, please make sure the following packages are installed:
ray[tune]
: Distributed hyperparameter tuning librarytorchvision
: For the data transformers
Setup / Imports¶
Let’s start with the imports:
from functools import partial
import os
import tempfile
from pathlib import Path
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import random_split
import torchvision
import torchvision.transforms as transforms
from ray import tune
from ray import train
from ray.train import Checkpoint, get_checkpoint
from ray.tune.schedulers import ASHAScheduler
import ray.cloudpickle as pickle
Most of the imports are needed for building the PyTorch model. Only the last imports are for Ray Tune.
Data loaders¶
We wrap the data loaders in their own function and pass a global data directory. This way we can share a data directory between different trials.
def load_data(data_dir="./data"):
transform = transforms.Compose(
[transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]
)
trainset = torchvision.datasets.CIFAR10(
root=data_dir, train=True, download=True, transform=transform
)
testset = torchvision.datasets.CIFAR10(
root=data_dir, train=False, download=True, transform=transform
)
return trainset, testset
Configurable neural network¶
We can only tune those parameters that are configurable. In this example, we can specify the layer sizes of the fully connected layers:
class Net(nn.Module):
def __init__(self, l1=120, l2=84):
super(Net, self).__init__()
self.conv1 = nn.Conv2d(3, 6, 5)
self.pool = nn.MaxPool2d(2, 2)
self.conv2 = nn.Conv2d(6, 16, 5)
self.fc1 = nn.Linear(16 * 5 * 5, l1)
self.fc2 = nn.Linear(l1, l2)
self.fc3 = nn.Linear(l2, 10)
def forward(self, x):
x = self.pool(F.relu(self.conv1(x)))
x = self.pool(F.relu(self.conv2(x)))
x = torch.flatten(x, 1) # flatten all dimensions except batch
x = F.relu(self.fc1(x))
x = F.relu(self.fc2(x))
x = self.fc3(x)
return x
The train function¶
Now it gets interesting, because we introduce some changes to the example from the PyTorch documentation.
We wrap the training script in a function train_cifar(config, data_dir=None)
.
The config
parameter will receive the hyperparameters we would like to
train with. The data_dir
specifies the directory where we load and store the data,
so that multiple runs can share the same data source.
We also load the model and optimizer state at the start of the run, if a checkpoint
is provided. Further down in this tutorial you will find information on how
to save the checkpoint and what it is used for.
net = Net(config["l1"], config["l2"])
checkpoint = get_checkpoint()
if checkpoint:
with checkpoint.as_directory() as checkpoint_dir:
data_path = Path(checkpoint_dir) / "data.pkl"
with open(data_path, "rb") as fp:
checkpoint_state = pickle.load(fp)
start_epoch = checkpoint_state["epoch"]
net.load_state_dict(checkpoint_state["net_state_dict"])
optimizer.load_state_dict(checkpoint_state["optimizer_state_dict"])
else:
start_epoch = 0
The learning rate of the optimizer is made configurable, too:
optimizer = optim.SGD(net.parameters(), lr=config["lr"], momentum=0.9)
We also split the training data into a training and validation subset. We thus train on 80% of the data and calculate the validation loss on the remaining 20%. The batch sizes with which we iterate through the training and test sets are configurable as well.
Adding (multi) GPU support with DataParallel¶
Image classification benefits largely from GPUs. Luckily, we can continue to use
PyTorch’s abstractions in Ray Tune. Thus, we can wrap our model in nn.DataParallel
to support data parallel training on multiple GPUs:
device = "cpu"
if torch.cuda.is_available():
device = "cuda:0"
if torch.cuda.device_count() > 1:
net = nn.DataParallel(net)
net.to(device)
By using a device
variable we make sure that training also works when we have
no GPUs available. PyTorch requires us to send our data to the GPU memory explicitly,
like this:
for i, data in enumerate(trainloader, 0):
inputs, labels = data
inputs, labels = inputs.to(device), labels.to(device)
The code now supports training on CPUs, on a single GPU, and on multiple GPUs. Notably, Ray also supports fractional GPUs so we can share GPUs among trials, as long as the model still fits on the GPU memory. We’ll come back to that later.
Communicating with Ray Tune¶
The most interesting part is the communication with Ray Tune:
checkpoint_data = {
"epoch": epoch,
"net_state_dict": net.state_dict(),
"optimizer_state_dict": optimizer.state_dict(),
}
with tempfile.TemporaryDirectory() as checkpoint_dir:
data_path = Path(checkpoint_dir) / "data.pkl"
with open(data_path, "wb") as fp:
pickle.dump(checkpoint_data, fp)
checkpoint = Checkpoint.from_directory(checkpoint_dir)
train.report(
{"loss": val_loss / val_steps, "accuracy": correct / total},
checkpoint=checkpoint,
)
Here we first save a checkpoint and then report some metrics back to Ray Tune. Specifically, we send the validation loss and accuracy back to Ray Tune. Ray Tune can then use these metrics to decide which hyperparameter configuration lead to the best results. These metrics can also be used to stop bad performing trials early in order to avoid wasting resources on those trials.
The checkpoint saving is optional, however, it is necessary if we wanted to use advanced schedulers like Population Based Training. Also, by saving the checkpoint we can later load the trained models and validate them on a test set. Lastly, saving checkpoints is useful for fault tolerance, and it allows us to interrupt training and continue training later.
Full training function¶
The full code example looks like this:
def train_cifar(config, data_dir=None):
net = Net(config["l1"], config["l2"])
device = "cpu"
if torch.cuda.is_available():
device = "cuda:0"
if torch.cuda.device_count() > 1:
net = nn.DataParallel(net)
net.to(device)
criterion = nn.CrossEntropyLoss()
optimizer = optim.SGD(net.parameters(), lr=config["lr"], momentum=0.9)
checkpoint = get_checkpoint()
if checkpoint:
with checkpoint.as_directory() as checkpoint_dir:
data_path = Path(checkpoint_dir) / "data.pkl"
with open(data_path, "rb") as fp:
checkpoint_state = pickle.load(fp)
start_epoch = checkpoint_state["epoch"]
net.load_state_dict(checkpoint_state["net_state_dict"])
optimizer.load_state_dict(checkpoint_state["optimizer_state_dict"])
else:
start_epoch = 0
trainset, testset = load_data(data_dir)
test_abs = int(len(trainset) * 0.8)
train_subset, val_subset = random_split(
trainset, [test_abs, len(trainset) - test_abs]
)
trainloader = torch.utils.data.DataLoader(
train_subset, batch_size=int(config["batch_size"]), shuffle=True, num_workers=8
)
valloader = torch.utils.data.DataLoader(
val_subset, batch_size=int(config["batch_size"]), shuffle=True, num_workers=8
)
for epoch in range(start_epoch, 10): # loop over the dataset multiple times
running_loss = 0.0
epoch_steps = 0
for i, data in enumerate(trainloader, 0):
# get the inputs; data is a list of [inputs, labels]
inputs, labels = data
inputs, labels = inputs.to(device), labels.to(device)
# zero the parameter gradients
optimizer.zero_grad()
# forward + backward + optimize
outputs = net(inputs)
loss = criterion(outputs, labels)
loss.backward()
optimizer.step()
# print statistics
running_loss += loss.item()
epoch_steps += 1
if i % 2000 == 1999: # print every 2000 mini-batches
print(
"[%d, %5d] loss: %.3f"
% (epoch + 1, i + 1, running_loss / epoch_steps)
)
running_loss = 0.0
# Validation loss
val_loss = 0.0
val_steps = 0
total = 0
correct = 0
for i, data in enumerate(valloader, 0):
with torch.no_grad():
inputs, labels = data
inputs, labels = inputs.to(device), labels.to(device)
outputs = net(inputs)
_, predicted = torch.max(outputs.data, 1)
total += labels.size(0)
correct += (predicted == labels).sum().item()
loss = criterion(outputs, labels)
val_loss += loss.cpu().numpy()
val_steps += 1
checkpoint_data = {
"epoch": epoch,
"net_state_dict": net.state_dict(),
"optimizer_state_dict": optimizer.state_dict(),
}
with tempfile.TemporaryDirectory() as checkpoint_dir:
data_path = Path(checkpoint_dir) / "data.pkl"
with open(data_path, "wb") as fp:
pickle.dump(checkpoint_data, fp)
checkpoint = Checkpoint.from_directory(checkpoint_dir)
train.report(
{"loss": val_loss / val_steps, "accuracy": correct / total},
checkpoint=checkpoint,
)
print("Finished Training")
As you can see, most of the code is adapted directly from the original example.
Test set accuracy¶
Commonly the performance of a machine learning model is tested on a hold-out test set with data that has not been used for training the model. We also wrap this in a function:
def test_accuracy(net, device="cpu"):
trainset, testset = load_data()
testloader = torch.utils.data.DataLoader(
testset, batch_size=4, shuffle=False, num_workers=2
)
correct = 0
total = 0
with torch.no_grad():
for data in testloader:
images, labels = data
images, labels = images.to(device), labels.to(device)
outputs = net(images)
_, predicted = torch.max(outputs.data, 1)
total += labels.size(0)
correct += (predicted == labels).sum().item()
return correct / total
The function also expects a device
parameter, so we can do the
test set validation on a GPU.
Configuring the search space¶
Lastly, we need to define Ray Tune’s search space. Here is an example:
config = {
"l1": tune.choice([2 ** i for i in range(9)]),
"l2": tune.choice([2 ** i for i in range(9)]),
"lr": tune.loguniform(1e-4, 1e-1),
"batch_size": tune.choice([2, 4, 8, 16])
}
The tune.choice()
accepts a list of values that are uniformly sampled from.
In this example, the l1
and l2
parameters
should be powers of 2 between 4 and 256, so either 4, 8, 16, 32, 64, 128, or 256.
The lr
(learning rate) should be uniformly sampled between 0.0001 and 0.1. Lastly,
the batch size is a choice between 2, 4, 8, and 16.
At each trial, Ray Tune will now randomly sample a combination of parameters from these
search spaces. It will then train a number of models in parallel and find the best
performing one among these. We also use the ASHAScheduler
which will terminate bad
performing trials early.
We wrap the train_cifar
function with functools.partial
to set the constant
data_dir
parameter. We can also tell Ray Tune what resources should be
available for each trial:
gpus_per_trial = 2
# ...
result = tune.run(
partial(train_cifar, data_dir=data_dir),
resources_per_trial={"cpu": 8, "gpu": gpus_per_trial},
config=config,
num_samples=num_samples,
scheduler=scheduler,
checkpoint_at_end=True)
You can specify the number of CPUs, which are then available e.g.
to increase the num_workers
of the PyTorch DataLoader
instances. The selected
number of GPUs are made visible to PyTorch in each trial. Trials do not have access to
GPUs that haven’t been requested for them - so you don’t have to care about two trials
using the same set of resources.
Here we can also specify fractional GPUs, so something like gpus_per_trial=0.5
is
completely valid. The trials will then share GPUs among each other.
You just have to make sure that the models still fit in the GPU memory.
After training the models, we will find the best performing one and load the trained network from the checkpoint file. We then obtain the test set accuracy and report everything by printing.
The full main function looks like this:
def main(num_samples=10, max_num_epochs=10, gpus_per_trial=2):
data_dir = os.path.abspath("./data")
load_data(data_dir)
config = {
"l1": tune.choice([2**i for i in range(9)]),
"l2": tune.choice([2**i for i in range(9)]),
"lr": tune.loguniform(1e-4, 1e-1),
"batch_size": tune.choice([2, 4, 8, 16]),
}
scheduler = ASHAScheduler(
metric="loss",
mode="min",
max_t=max_num_epochs,
grace_period=1,
reduction_factor=2,
)
result = tune.run(
partial(train_cifar, data_dir=data_dir),
resources_per_trial={"cpu": 2, "gpu": gpus_per_trial},
config=config,
num_samples=num_samples,
scheduler=scheduler,
)
best_trial = result.get_best_trial("loss", "min", "last")
print(f"Best trial config: {best_trial.config}")
print(f"Best trial final validation loss: {best_trial.last_result['loss']}")
print(f"Best trial final validation accuracy: {best_trial.last_result['accuracy']}")
best_trained_model = Net(best_trial.config["l1"], best_trial.config["l2"])
device = "cpu"
if torch.cuda.is_available():
device = "cuda:0"
if gpus_per_trial > 1:
best_trained_model = nn.DataParallel(best_trained_model)
best_trained_model.to(device)
best_checkpoint = result.get_best_checkpoint(trial=best_trial, metric="accuracy", mode="max")
with best_checkpoint.as_directory() as checkpoint_dir:
data_path = Path(checkpoint_dir) / "data.pkl"
with open(data_path, "rb") as fp:
best_checkpoint_data = pickle.load(fp)
best_trained_model.load_state_dict(best_checkpoint_data["net_state_dict"])
test_acc = test_accuracy(best_trained_model, device)
print("Best trial test set accuracy: {}".format(test_acc))
if __name__ == "__main__":
# You can change the number of GPUs per trial here:
main(num_samples=10, max_num_epochs=10, gpus_per_trial=0)
Downloading https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz to /var/lib/workspace/beginner_source/data/cifar-10-python.tar.gz
0% 0.00/170M [00:00<?, ?B/s]
0% 459k/170M [00:00<00:37, 4.51MB/s]
3% 5.64M/170M [00:00<00:05, 32.1MB/s]
7% 12.7M/170M [00:00<00:03, 49.5MB/s]
11% 19.6M/170M [00:00<00:02, 57.2MB/s]
16% 26.8M/170M [00:00<00:02, 62.4MB/s]
20% 33.6M/170M [00:00<00:02, 64.1MB/s]
24% 41.0M/170M [00:00<00:01, 67.4MB/s]
28% 47.7M/170M [00:00<00:01, 67.2MB/s]
32% 55.0M/170M [00:00<00:01, 68.7MB/s]
36% 61.8M/170M [00:01<00:01, 68.4MB/s]
41% 69.1M/170M [00:01<00:01, 69.6MB/s]
45% 76.1M/170M [00:01<00:01, 69.0MB/s]
49% 83.3M/170M [00:01<00:01, 69.9MB/s]
53% 90.3M/170M [00:01<00:01, 69.8MB/s]
57% 97.3M/170M [00:01<00:01, 69.5MB/s]
61% 104M/170M [00:01<00:00, 70.2MB/s]
67% 115M/170M [00:01<00:00, 79.2MB/s]
74% 126M/170M [00:01<00:00, 90.1MB/s]
81% 137M/170M [00:01<00:00, 96.8MB/s]
87% 149M/170M [00:02<00:00, 103MB/s]
94% 160M/170M [00:02<00:00, 105MB/s]
100% 170M/170M [00:02<00:00, 77.4MB/s]
Extracting /var/lib/workspace/beginner_source/data/cifar-10-python.tar.gz to /var/lib/workspace/beginner_source/data
Files already downloaded and verified
2024-12-17 23:00:24,967 WARNING services.py:1889 -- WARNING: The object store is using /tmp instead of /dev/shm because /dev/shm has only 2147479552 bytes available. This will harm performance! You may be able to free up space by deleting files in /dev/shm. If you are inside a Docker container, you can increase /dev/shm size by passing '--shm-size=10.24gb' to 'docker run' (or add it to the run_options list in a Ray cluster config). Make sure to set this to more than 30% of available RAM.
2024-12-17 23:00:25,226 INFO worker.py:1642 -- Started a local Ray instance.
2024-12-17 23:00:26,540 INFO tune.py:228 -- Initializing Ray automatically. For cluster usage or custom Ray initialization, call `ray.init(...)` before `tune.run(...)`.
2024-12-17 23:00:26,542 INFO tune.py:654 -- [output] This will use the new output engine with verbosity 2. To disable the new output and use the legacy output engine, set the environment variable RAY_AIR_NEW_OUTPUT=0. For more information, please see https://github.com/ray-project/ray/issues/36949
+--------------------------------------------------------------------+
| Configuration for experiment train_cifar_2024-12-17_23-00-26 |
+--------------------------------------------------------------------+
| Search algorithm BasicVariantGenerator |
| Scheduler AsyncHyperBandScheduler |
| Number of trials 10 |
+--------------------------------------------------------------------+
View detailed results here: /var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26
To visualize your results with TensorBoard, run: `tensorboard --logdir /var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26`
Trial status: 10 PENDING
Current time: 2024-12-17 23:00:26. Total running time: 0s
Logical resource usage: 0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+-------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size |
+-------------------------------------------------------------------------------+
| train_cifar_b4458_00000 PENDING 16 1 0.00213327 2 |
| train_cifar_b4458_00001 PENDING 1 2 0.013416 4 |
| train_cifar_b4458_00002 PENDING 256 64 0.0113784 2 |
| train_cifar_b4458_00003 PENDING 64 256 0.0274071 8 |
| train_cifar_b4458_00004 PENDING 16 2 0.056666 4 |
| train_cifar_b4458_00005 PENDING 8 64 0.000353097 4 |
| train_cifar_b4458_00006 PENDING 16 4 0.000147684 8 |
| train_cifar_b4458_00007 PENDING 256 256 0.00477469 8 |
| train_cifar_b4458_00008 PENDING 128 256 0.0306227 8 |
| train_cifar_b4458_00009 PENDING 2 16 0.0286986 2 |
+-------------------------------------------------------------------------------+
Trial train_cifar_b4458_00000 started with configuration:
+--------------------------------------------------+
| Trial train_cifar_b4458_00000 config |
+--------------------------------------------------+
| batch_size 2 |
| l1 16 |
| l2 1 |
| lr 0.00213 |
+--------------------------------------------------+
Trial train_cifar_b4458_00003 started with configuration:
+--------------------------------------------------+
| Trial train_cifar_b4458_00003 config |
+--------------------------------------------------+
| batch_size 8 |
| l1 64 |
| l2 256 |
| lr 0.02741 |
+--------------------------------------------------+
Trial train_cifar_b4458_00001 started with configuration:
+--------------------------------------------------+
| Trial train_cifar_b4458_00001 config |
+--------------------------------------------------+
| batch_size 4 |
| l1 1 |
| l2 2 |
| lr 0.01342 |
+--------------------------------------------------+
Trial train_cifar_b4458_00006 started with configuration:
+--------------------------------------------------+
| Trial train_cifar_b4458_00006 config |
+--------------------------------------------------+
| batch_size 8 |
| l1 16 |
| l2 4 |
| lr 0.00015 |
+--------------------------------------------------+
Trial train_cifar_b4458_00002 started with configuration:
+--------------------------------------------------+
| Trial train_cifar_b4458_00002 config |
+--------------------------------------------------+
| batch_size 2 |
| l1 256 |
| l2 64 |
| lr 0.01138 |
+--------------------------------------------------+
Trial train_cifar_b4458_00004 started with configuration:
+--------------------------------------------------+
| Trial train_cifar_b4458_00004 config |
+--------------------------------------------------+
| batch_size 4 |
| l1 16 |
| l2 2 |
| lr 0.05667 |
+--------------------------------------------------+
(func pid=4864) Files already downloaded and verified
Trial train_cifar_b4458_00005 started with configuration:
+--------------------------------------------------+
| Trial train_cifar_b4458_00005 config |
+--------------------------------------------------+
| batch_size 4 |
| l1 8 |
| l2 64 |
| lr 0.00035 |
+--------------------------------------------------+
Trial train_cifar_b4458_00007 started with configuration:
+--------------------------------------------------+
| Trial train_cifar_b4458_00007 config |
+--------------------------------------------------+
| batch_size 8 |
| l1 256 |
| l2 256 |
| lr 0.00477 |
+--------------------------------------------------+
(func pid=4864) [1, 2000] loss: 2.322
(func pid=4872) Files already downloaded and verified [repeated 15x across cluster] (Ray deduplicates logs by default. Set RAY_DEDUP_LOGS=0 to disable log deduplication, or see https://docs.ray.io/en/master/ray-observability/ray-logging.html#log-deduplication for more options.)
Trial status: 8 RUNNING | 2 PENDING
Current time: 2024-12-17 23:00:56. Total running time: 30s
Logical resource usage: 16.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+-------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size |
+-------------------------------------------------------------------------------+
| train_cifar_b4458_00000 RUNNING 16 1 0.00213327 2 |
| train_cifar_b4458_00001 RUNNING 1 2 0.013416 4 |
| train_cifar_b4458_00002 RUNNING 256 64 0.0113784 2 |
| train_cifar_b4458_00003 RUNNING 64 256 0.0274071 8 |
| train_cifar_b4458_00004 RUNNING 16 2 0.056666 4 |
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 |
| train_cifar_b4458_00008 PENDING 128 256 0.0306227 8 |
| train_cifar_b4458_00009 PENDING 2 16 0.0286986 2 |
+-------------------------------------------------------------------------------+
(func pid=4864) [1, 4000] loss: 1.152 [repeated 8x across cluster]
(func pid=4867) [1, 4000] loss: 1.040 [repeated 6x across cluster]
(func pid=4864) [1, 6000] loss: 0.769 [repeated 2x across cluster]
Trial status: 8 RUNNING | 2 PENDING
Current time: 2024-12-17 23:01:26. Total running time: 1min 0s
Logical resource usage: 16.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+-------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size |
+-------------------------------------------------------------------------------+
| train_cifar_b4458_00000 RUNNING 16 1 0.00213327 2 |
| train_cifar_b4458_00001 RUNNING 1 2 0.013416 4 |
| train_cifar_b4458_00002 RUNNING 256 64 0.0113784 2 |
| train_cifar_b4458_00003 RUNNING 64 256 0.0274071 8 |
| train_cifar_b4458_00004 RUNNING 16 2 0.056666 4 |
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 |
| train_cifar_b4458_00008 PENDING 128 256 0.0306227 8 |
| train_cifar_b4458_00009 PENDING 2 16 0.0286986 2 |
+-------------------------------------------------------------------------------+
Trial train_cifar_b4458_00006 finished iteration 1 at 2024-12-17 23:01:27. Total running time: 1min 0s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00006 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000000 |
| time_this_iter_s 54.55414 |
| time_total_s 54.55414 |
| training_iteration 1 |
| accuracy 0.1448 |
| loss 2.23835 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00006 saved a checkpoint for iteration 1 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000000
(func pid=4886) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000000)
Trial train_cifar_b4458_00003 finished iteration 1 at 2024-12-17 23:01:28. Total running time: 1min 1s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00003 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000000 |
| time_this_iter_s 56.00674 |
| time_total_s 56.00674 |
| training_iteration 1 |
| accuracy 0.2292 |
| loss 2.04919 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00003 saved a checkpoint for iteration 1 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00003_3_batch_size=8,l1=64,l2=256,lr=0.0274_2024-12-17_23-00-26/checkpoint_000000
Trial train_cifar_b4458_00007 finished iteration 1 at 2024-12-17 23:01:29. Total running time: 1min 2s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00007 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000000 |
| time_this_iter_s 55.63285 |
| time_total_s 55.63285 |
| training_iteration 1 |
| accuracy 0.4886 |
| loss 1.41569 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00007 saved a checkpoint for iteration 1 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000000
(func pid=4864) [1, 8000] loss: 0.576 [repeated 5x across cluster]
(func pid=4866) [1, 8000] loss: 0.560 [repeated 4x across cluster]
(func pid=4864) [1, 10000] loss: 0.461 [repeated 4x across cluster]
Trial status: 8 RUNNING | 2 PENDING
Current time: 2024-12-17 23:01:56. Total running time: 1min 30s
Logical resource usage: 16.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+----------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+----------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00000 RUNNING 16 1 0.00213327 2 |
| train_cifar_b4458_00001 RUNNING 1 2 0.013416 4 |
| train_cifar_b4458_00002 RUNNING 256 64 0.0113784 2 |
| train_cifar_b4458_00003 RUNNING 64 256 0.0274071 8 1 56.0067 2.04919 0.2292 |
| train_cifar_b4458_00004 RUNNING 16 2 0.056666 4 |
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 1 54.5541 2.23835 0.1448 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 1 55.6328 1.41569 0.4886 |
| train_cifar_b4458_00008 PENDING 128 256 0.0306227 8 |
| train_cifar_b4458_00009 PENDING 2 16 0.0286986 2 |
+----------------------------------------------------------------------------------------------------------------------------------+
(func pid=4872) [1, 10000] loss: 0.467 [repeated 3x across cluster]
(func pid=4887) [2, 4000] loss: 0.666 [repeated 3x across cluster]
Trial train_cifar_b4458_00001 finished iteration 1 at 2024-12-17 23:02:09. Total running time: 1min 43s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00001 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000000 |
| time_this_iter_s 97.01923 |
| time_total_s 97.01923 |
| training_iteration 1 |
| accuracy 0.102 |
| loss 2.31055 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00001 saved a checkpoint for iteration 1 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00001_1_batch_size=4,l1=1,l2=2,lr=0.0134_2024-12-17_23-00-26/checkpoint_000000
Trial train_cifar_b4458_00001 completed after 1 iterations at 2024-12-17 23:02:09. Total running time: 1min 43s
Trial train_cifar_b4458_00008 started with configuration:
+--------------------------------------------------+
| Trial train_cifar_b4458_00008 config |
+--------------------------------------------------+
| batch_size 8 |
| l1 128 |
| l2 256 |
| lr 0.03062 |
+--------------------------------------------------+
(func pid=4865) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00001_1_batch_size=4,l1=1,l2=2,lr=0.0134_2024-12-17_23-00-26/checkpoint_000000) [repeated 3x across cluster]
(func pid=4865) Files already downloaded and verified
(func pid=4864) [1, 12000] loss: 0.384 [repeated 2x across cluster]
Trial train_cifar_b4458_00005 finished iteration 1 at 2024-12-17 23:02:10. Total running time: 1min 43s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00005 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000000 |
| time_this_iter_s 96.96295 |
| time_total_s 96.96295 |
| training_iteration 1 |
| accuracy 0.332 |
| loss 1.75381 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00005 saved a checkpoint for iteration 1 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000000
(func pid=4865) Files already downloaded and verified
Trial train_cifar_b4458_00004 finished iteration 1 at 2024-12-17 23:02:11. Total running time: 1min 45s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00004 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000000 |
| time_this_iter_s 98.56619 |
| time_total_s 98.56619 |
| training_iteration 1 |
| accuracy 0.1019 |
| loss 2.32721 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00004 saved a checkpoint for iteration 1 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00004_4_batch_size=4,l1=16,l2=2,lr=0.0567_2024-12-17_23-00-26/checkpoint_000000
Trial train_cifar_b4458_00004 completed after 1 iterations at 2024-12-17 23:02:11. Total running time: 1min 45s
Trial train_cifar_b4458_00009 started with configuration:
+-------------------------------------------------+
| Trial train_cifar_b4458_00009 config |
+-------------------------------------------------+
| batch_size 2 |
| l1 2 |
| l2 16 |
| lr 0.0287 |
+-------------------------------------------------+
Trial train_cifar_b4458_00006 finished iteration 2 at 2024-12-17 23:02:19. Total running time: 1min 53s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00006 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000001 |
| time_this_iter_s 52.57781 |
| time_total_s 107.13195 |
| training_iteration 2 |
| accuracy 0.1907 |
| loss 2.1176 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00006 saved a checkpoint for iteration 2 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000001
(func pid=4886) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000001) [repeated 3x across cluster]
(func pid=4872) Files already downloaded and verified [repeated 2x across cluster]
(func pid=4866) [1, 12000] loss: 0.382
Trial train_cifar_b4458_00007 finished iteration 2 at 2024-12-17 23:02:21. Total running time: 1min 54s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00007 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000001 |
| time_this_iter_s 52.37434 |
| time_total_s 108.00719 |
| training_iteration 2 |
| accuracy 0.5394 |
| loss 1.28661 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00007 saved a checkpoint for iteration 2 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000001
(func pid=4864) [1, 14000] loss: 0.329
Trial train_cifar_b4458_00003 finished iteration 2 at 2024-12-17 23:02:24. Total running time: 1min 58s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00003 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000001 |
| time_this_iter_s 56.10444 |
| time_total_s 112.11118 |
| training_iteration 2 |
| accuracy 0.2245 |
| loss 2.03574 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00003 saved a checkpoint for iteration 2 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00003_3_batch_size=8,l1=64,l2=256,lr=0.0274_2024-12-17_23-00-26/checkpoint_000001
Trial train_cifar_b4458_00003 completed after 2 iterations at 2024-12-17 23:02:24. Total running time: 1min 58s
(func pid=4881)
Trial status: 7 RUNNING | 3 TERMINATED
Current time: 2024-12-17 23:02:27. Total running time: 2min 0s
Logical resource usage: 14.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00000 RUNNING 16 1 0.00213327 2 |
| train_cifar_b4458_00002 RUNNING 256 64 0.0113784 2 |
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 1 96.9629 1.75381 0.332 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 2 107.132 2.1176 0.1907 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 2 108.007 1.28661 0.5394 |
| train_cifar_b4458_00008 RUNNING 128 256 0.0306227 8 |
| train_cifar_b4458_00009 RUNNING 2 16 0.0286986 2 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4872) [1, 2000] loss: 2.338 [repeated 2x across cluster]
(func pid=4864) [1, 16000] loss: 0.288 [repeated 2x across cluster]
(func pid=4872) [1, 4000] loss: 1.167 [repeated 5x across cluster]
(func pid=4864) [1, 18000] loss: 0.256 [repeated 2x across cluster]
(func pid=4881) [2, 6000] loss: 0.547 [repeated 4x across cluster]
Trial status: 7 RUNNING | 3 TERMINATED
Current time: 2024-12-17 23:02:57. Total running time: 2min 30s
Logical resource usage: 14.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00000 RUNNING 16 1 0.00213327 2 |
| train_cifar_b4458_00002 RUNNING 256 64 0.0113784 2 |
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 1 96.9629 1.75381 0.332 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 2 107.132 2.1176 0.1907 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 2 108.007 1.28661 0.5394 |
| train_cifar_b4458_00008 RUNNING 128 256 0.0306227 8 |
| train_cifar_b4458_00009 RUNNING 2 16 0.0286986 2 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
+------------------------------------------------------------------------------------------------------------------------------------+
Trial train_cifar_b4458_00008 finished iteration 1 at 2024-12-17 23:03:00. Total running time: 2min 34s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00008 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000000 |
| time_this_iter_s 50.98883 |
| time_total_s 50.98883 |
| training_iteration 1 |
| accuracy 0.2365 |
| loss 2.02427 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00008 saved a checkpoint for iteration 1 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00008_8_batch_size=8,l1=128,l2=256,lr=0.0306_2024-12-17_23-00-26/checkpoint_000000
(func pid=4865) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00008_8_batch_size=8,l1=128,l2=256,lr=0.0306_2024-12-17_23-00-26/checkpoint_000000) [repeated 3x across cluster]
(func pid=4864) [1, 20000] loss: 0.230 [repeated 2x across cluster]
Trial train_cifar_b4458_00006 finished iteration 3 at 2024-12-17 23:03:05. Total running time: 2min 38s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00006 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000002 |
| time_this_iter_s 45.43909 |
| time_total_s 152.57103 |
| training_iteration 3 |
| accuracy 0.2755 |
| loss 1.90975 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00006 saved a checkpoint for iteration 3 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000002
Trial train_cifar_b4458_00007 finished iteration 3 at 2024-12-17 23:03:07. Total running time: 2min 40s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00007 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000002 |
| time_this_iter_s 46.13031 |
| time_total_s 154.1375 |
| training_iteration 3 |
| accuracy 0.5598 |
| loss 1.24237 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00007 saved a checkpoint for iteration 3 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000002
(func pid=4887) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000002) [repeated 2x across cluster]
(func pid=4881) [2, 8000] loss: 0.401
(func pid=4872) [1, 8000] loss: 0.583
(func pid=4865) [2, 2000] loss: 2.055 [repeated 2x across cluster]
Trial train_cifar_b4458_00000 finished iteration 1 at 2024-12-17 23:03:23. Total running time: 2min 56s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00000 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000000 |
| time_this_iter_s 170.67247 |
| time_total_s 170.67247 |
| training_iteration 1 |
| accuracy 0.1047 |
| loss 2.30767 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00000 saved a checkpoint for iteration 1 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00000_0_batch_size=2,l1=16,l2=1,lr=0.0021_2024-12-17_23-00-26/checkpoint_000000
Trial train_cifar_b4458_00000 completed after 1 iterations at 2024-12-17 23:03:23. Total running time: 2min 56s
(func pid=4864) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00000_0_batch_size=2,l1=16,l2=1,lr=0.0021_2024-12-17_23-00-26/checkpoint_000000)
(func pid=4887) [4, 2000] loss: 1.128 [repeated 4x across cluster]
Trial status: 4 TERMINATED | 6 RUNNING
Current time: 2024-12-17 23:03:27. Total running time: 3min 0s
Logical resource usage: 12.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00002 RUNNING 256 64 0.0113784 2 |
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 1 96.9629 1.75381 0.332 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 3 152.571 1.90975 0.2755 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 3 154.138 1.24237 0.5598 |
| train_cifar_b4458_00008 RUNNING 128 256 0.0306227 8 1 50.9888 2.02427 0.2365 |
| train_cifar_b4458_00009 RUNNING 2 16 0.0286986 2 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
+------------------------------------------------------------------------------------------------------------------------------------+
Trial train_cifar_b4458_00005 finished iteration 2 at 2024-12-17 23:03:31. Total running time: 3min 5s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00005 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000001 |
| time_this_iter_s 81.54065 |
| time_total_s 178.5036 |
| training_iteration 2 |
| accuracy 0.4471 |
| loss 1.49849 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00005 saved a checkpoint for iteration 2 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000001
(func pid=4881) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000001)
(func pid=4865) [2, 4000] loss: 1.026 [repeated 2x across cluster]
Trial train_cifar_b4458_00002 finished iteration 1 at 2024-12-17 23:03:44. Total running time: 3min 17s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00002 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000000 |
| time_this_iter_s 191.44281 |
| time_total_s 191.44281 |
| training_iteration 1 |
| accuracy 0.101 |
| loss 2.32586 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00002 saved a checkpoint for iteration 1 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00002_2_batch_size=2,l1=256,l2=64,lr=0.0114_2024-12-17_23-00-26/checkpoint_000000
Trial train_cifar_b4458_00002 completed after 1 iterations at 2024-12-17 23:03:44. Total running time: 3min 17s
(func pid=4866) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00002_2_batch_size=2,l1=256,l2=64,lr=0.0114_2024-12-17_23-00-26/checkpoint_000000)
(func pid=4881) [3, 2000] loss: 1.508 [repeated 4x across cluster]
Trial train_cifar_b4458_00006 finished iteration 4 at 2024-12-17 23:03:46. Total running time: 3min 19s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00006 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000003 |
| time_this_iter_s 41.23392 |
| time_total_s 193.80496 |
| training_iteration 4 |
| accuracy 0.3074 |
| loss 1.81494 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00006 saved a checkpoint for iteration 4 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000003
(func pid=4886) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000003)
Trial train_cifar_b4458_00008 finished iteration 2 at 2024-12-17 23:03:47. Total running time: 3min 20s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00008 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000001 |
| time_this_iter_s 46.36372 |
| time_total_s 97.35254 |
| training_iteration 2 |
| accuracy 0.2096 |
| loss 2.01933 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00008 saved a checkpoint for iteration 2 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00008_8_batch_size=8,l1=128,l2=256,lr=0.0306_2024-12-17_23-00-26/checkpoint_000001
Trial train_cifar_b4458_00008 completed after 2 iterations at 2024-12-17 23:03:47. Total running time: 3min 20s
Trial train_cifar_b4458_00007 finished iteration 4 at 2024-12-17 23:03:49. Total running time: 3min 22s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00007 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000003 |
| time_this_iter_s 42.01581 |
| time_total_s 196.15332 |
| training_iteration 4 |
| accuracy 0.5755 |
| loss 1.21404 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00007 saved a checkpoint for iteration 4 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000003
(func pid=4881) [3, 4000] loss: 0.739 [repeated 2x across cluster]
Trial status: 6 TERMINATED | 4 RUNNING
Current time: 2024-12-17 23:03:57. Total running time: 3min 30s
Logical resource usage: 8.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 2 178.504 1.49849 0.4471 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 4 193.805 1.81494 0.3074 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 4 196.153 1.21404 0.5755 |
| train_cifar_b4458_00009 RUNNING 2 16 0.0286986 2 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4887) [5, 2000] loss: 1.060 [repeated 3x across cluster]
(func pid=4886) [5, 4000] loss: 0.890 [repeated 3x across cluster]
(func pid=4872) [1, 20000] loss: 0.233 [repeated 2x across cluster]
Trial train_cifar_b4458_00006 finished iteration 5 at 2024-12-17 23:04:20. Total running time: 3min 53s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00006 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000004 |
| time_this_iter_s 33.69266 |
| time_total_s 227.49762 |
| training_iteration 5 |
| accuracy 0.3295 |
| loss 1.77351 |
+------------------------------------------------------------+
(func pid=4886) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000004) [repeated 3x across cluster]
Trial train_cifar_b4458_00006 saved a checkpoint for iteration 5 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000004
Trial train_cifar_b4458_00007 finished iteration 5 at 2024-12-17 23:04:25. Total running time: 3min 58s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00007 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000004 |
| time_this_iter_s 35.92106 |
| time_total_s 232.07437 |
| training_iteration 5 |
| accuracy 0.5794 |
| loss 1.23407 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00007 saved a checkpoint for iteration 5 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000004
(func pid=4887) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000004)
Trial status: 6 TERMINATED | 4 RUNNING
Current time: 2024-12-17 23:04:27. Total running time: 4min 0s
Logical resource usage: 8.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 2 178.504 1.49849 0.4471 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 5 227.498 1.77351 0.3295 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 5 232.074 1.23407 0.5794 |
| train_cifar_b4458_00009 RUNNING 2 16 0.0286986 2 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4881) [3, 10000] loss: 0.283 [repeated 2x across cluster]
Trial train_cifar_b4458_00009 finished iteration 1 at 2024-12-17 23:04:31. Total running time: 4min 5s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00009 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000000 |
| time_this_iter_s 139.96306 |
| time_total_s 139.96306 |
| training_iteration 1 |
| accuracy 0.1017 |
| loss 2.31454 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00009 saved a checkpoint for iteration 1 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00009_9_batch_size=2,l1=2,l2=16,lr=0.0287_2024-12-17_23-00-26/checkpoint_000000
Trial train_cifar_b4458_00009 completed after 1 iterations at 2024-12-17 23:04:31. Total running time: 4min 5s
(func pid=4872) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00009_9_batch_size=2,l1=2,l2=16,lr=0.0287_2024-12-17_23-00-26/checkpoint_000000)
Trial train_cifar_b4458_00005 finished iteration 3 at 2024-12-17 23:04:35. Total running time: 4min 9s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00005 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000002 |
| time_this_iter_s 63.78408 |
| time_total_s 242.28767 |
| training_iteration 3 |
| accuracy 0.4776 |
| loss 1.4167 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00005 saved a checkpoint for iteration 3 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000002
(func pid=4887) [6, 2000] loss: 0.994 [repeated 2x across cluster]
(func pid=4886) [6, 4000] loss: 0.862
(func pid=4881) [4, 2000] loss: 1.394
Trial train_cifar_b4458_00006 finished iteration 6 at 2024-12-17 23:04:52. Total running time: 4min 25s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00006 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000005 |
| time_this_iter_s 31.88692 |
| time_total_s 259.38454 |
| training_iteration 6 |
| accuracy 0.3498 |
| loss 1.7185 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00006 saved a checkpoint for iteration 6 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000005
(func pid=4886) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000005) [repeated 2x across cluster]
(func pid=4881) [4, 4000] loss: 0.681 [repeated 2x across cluster]
Trial status: 7 TERMINATED | 3 RUNNING
Current time: 2024-12-17 23:04:57. Total running time: 4min 30s
Logical resource usage: 6.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 3 242.288 1.4167 0.4776 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 6 259.385 1.7185 0.3498 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 5 232.074 1.23407 0.5794 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
Trial train_cifar_b4458_00007 finished iteration 6 at 2024-12-17 23:04:59. Total running time: 4min 32s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00007 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000005 |
| time_this_iter_s 33.81136 |
| time_total_s 265.88574 |
| training_iteration 6 |
| accuracy 0.5759 |
| loss 1.23602 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00007 saved a checkpoint for iteration 6 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000005
(func pid=4887) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000005)
(func pid=4886) [7, 2000] loss: 1.679
(func pid=4881) [4, 6000] loss: 0.449
(func pid=4887) [7, 2000] loss: 0.948
(func pid=4886) [7, 4000] loss: 0.833
(func pid=4887) [7, 4000] loss: 0.508 [repeated 2x across cluster]
Trial train_cifar_b4458_00006 finished iteration 7 at 2024-12-17 23:05:23. Total running time: 4min 56s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00006 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000006 |
| time_this_iter_s 31.48156 |
| time_total_s 290.8661 |
| training_iteration 7 |
| accuracy 0.3741 |
| loss 1.65979 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00006 saved a checkpoint for iteration 7 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000006
(func pid=4886) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000006)
Trial status: 7 TERMINATED | 3 RUNNING
Current time: 2024-12-17 23:05:27. Total running time: 5min 1s
Logical resource usage: 6.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 3 242.288 1.4167 0.4776 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 7 290.866 1.65979 0.3741 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 6 265.886 1.23602 0.5759 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
Trial train_cifar_b4458_00005 finished iteration 4 at 2024-12-17 23:05:32. Total running time: 5min 5s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00005 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000003 |
| time_this_iter_s 56.58443 |
| time_total_s 298.8721 |
| training_iteration 4 |
| accuracy 0.5041 |
| loss 1.34064 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00005 saved a checkpoint for iteration 4 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000003
Trial train_cifar_b4458_00007 finished iteration 7 at 2024-12-17 23:05:32. Total running time: 5min 5s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00007 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000006 |
| time_this_iter_s 33.02271 |
| time_total_s 298.90845 |
| training_iteration 7 |
| accuracy 0.5813 |
| loss 1.24452 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00007 saved a checkpoint for iteration 7 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000006
(func pid=4881) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000003)
(func pid=4887) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000006)
(func pid=4886) [8, 2000] loss: 1.644 [repeated 2x across cluster]
(func pid=4881) [5, 2000] loss: 1.304
(func pid=4887) [8, 2000] loss: 0.916
(func pid=4881) [5, 4000] loss: 0.657 [repeated 2x across cluster]
Trial train_cifar_b4458_00006 finished iteration 8 at 2024-12-17 23:05:55. Total running time: 5min 28s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00006 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000007 |
| time_this_iter_s 31.49073 |
| time_total_s 322.35683 |
| training_iteration 8 |
| accuracy 0.3918 |
| loss 1.6124 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00006 saved a checkpoint for iteration 8 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000007
(func pid=4886) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000007)
Trial status: 7 TERMINATED | 3 RUNNING
Current time: 2024-12-17 23:05:57. Total running time: 5min 31s
Logical resource usage: 6.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 4 298.872 1.34064 0.5041 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 8 322.357 1.6124 0.3918 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 7 298.908 1.24452 0.5813 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4881) [5, 6000] loss: 0.436 [repeated 2x across cluster]
Trial train_cifar_b4458_00007 finished iteration 8 at 2024-12-17 23:06:05. Total running time: 5min 38s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00007 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000007 |
| time_this_iter_s 33.06327 |
| time_total_s 331.97171 |
| training_iteration 8 |
| accuracy 0.5738 |
| loss 1.27747 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00007 saved a checkpoint for iteration 8 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000007
(func pid=4887) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000007)
(func pid=4881) [5, 8000] loss: 0.318 [repeated 2x across cluster]
(func pid=4887) [9, 2000] loss: 0.890
(func pid=4886) [9, 4000] loss: 0.792
Trial train_cifar_b4458_00006 finished iteration 9 at 2024-12-17 23:06:26. Total running time: 5min 59s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00006 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000008 |
| time_this_iter_s 31.46484 |
| time_total_s 353.82167 |
| training_iteration 9 |
| accuracy 0.4122 |
| loss 1.57488 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00006 saved a checkpoint for iteration 9 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000008
(func pid=4886) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000008)
Trial status: 7 TERMINATED | 3 RUNNING
Current time: 2024-12-17 23:06:27. Total running time: 6min 1s
Logical resource usage: 6.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 4 298.872 1.34064 0.5041 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 9 353.822 1.57488 0.4122 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 8 331.972 1.27747 0.5738 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4887) [9, 4000] loss: 0.478 [repeated 2x across cluster]
Trial train_cifar_b4458_00005 finished iteration 5 at 2024-12-17 23:06:28. Total running time: 6min 2s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00005 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000004 |
| time_this_iter_s 56.64038 |
| time_total_s 355.51248 |
| training_iteration 5 |
| accuracy 0.5393 |
| loss 1.26059 |
+------------------------------------------------------------+
(func pid=4881) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000004)
Trial train_cifar_b4458_00005 saved a checkpoint for iteration 5 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000004
(func pid=4886) [10, 2000] loss: 1.552
Trial train_cifar_b4458_00007 finished iteration 9 at 2024-12-17 23:06:38. Total running time: 6min 12s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00007 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000008 |
| time_this_iter_s 33.19818 |
| time_total_s 365.16989 |
| training_iteration 9 |
| accuracy 0.5924 |
| loss 1.24984 |
+------------------------------------------------------------+
(func pid=4887) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000008)
Trial train_cifar_b4458_00007 saved a checkpoint for iteration 9 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000008
(func pid=4881) [6, 2000] loss: 1.240
(func pid=4881) [6, 4000] loss: 0.633
(func pid=4886) [10, 4000] loss: 0.781
Trial status: 7 TERMINATED | 3 RUNNING
Current time: 2024-12-17 23:06:57. Total running time: 6min 31s
Logical resource usage: 6.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 5 355.512 1.26059 0.5393 |
| train_cifar_b4458_00006 RUNNING 16 4 0.000147684 8 9 353.822 1.57488 0.4122 |
| train_cifar_b4458_00007 RUNNING 256 256 0.00477469 8 9 365.17 1.24984 0.5924 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4881) [6, 6000] loss: 0.423 [repeated 2x across cluster]
Trial train_cifar_b4458_00006 finished iteration 10 at 2024-12-17 23:06:57. Total running time: 6min 31s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00006 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000009 |
| time_this_iter_s 31.3871 |
| time_total_s 385.20877 |
| training_iteration 10 |
| accuracy 0.4203 |
| loss 1.55305 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00006 saved a checkpoint for iteration 10 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000009
Trial train_cifar_b4458_00006 completed after 10 iterations at 2024-12-17 23:06:57. Total running time: 6min 31s
(func pid=4886) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00006_6_batch_size=8,l1=16,l2=4,lr=0.0001_2024-12-17_23-00-26/checkpoint_000009)
(func pid=4881) [6, 8000] loss: 0.310 [repeated 2x across cluster]
Trial train_cifar_b4458_00007 finished iteration 10 at 2024-12-17 23:07:09. Total running time: 6min 43s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00007 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000009 |
| time_this_iter_s 31.31451 |
| time_total_s 396.4844 |
| training_iteration 10 |
| accuracy 0.5825 |
| loss 1.31288 |
+------------------------------------------------------------+
(func pid=4887) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000009)
Trial train_cifar_b4458_00007 saved a checkpoint for iteration 10 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00007_7_batch_size=8,l1=256,l2=256,lr=0.0048_2024-12-17_23-00-26/checkpoint_000009
Trial train_cifar_b4458_00007 completed after 10 iterations at 2024-12-17 23:07:09. Total running time: 6min 43s
(func pid=4881) [6, 10000] loss: 0.249
Trial train_cifar_b4458_00005 finished iteration 6 at 2024-12-17 23:07:20. Total running time: 6min 54s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00005 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000005 |
| time_this_iter_s 51.82327 |
| time_total_s 407.33576 |
| training_iteration 6 |
| accuracy 0.5314 |
| loss 1.28758 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00005 saved a checkpoint for iteration 6 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000005
(func pid=4881) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000005)
Trial status: 9 TERMINATED | 1 RUNNING
Current time: 2024-12-17 23:07:27. Total running time: 7min 1s
Logical resource usage: 2.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 6 407.336 1.28758 0.5314 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00006 TERMINATED 16 4 0.000147684 8 10 385.209 1.55305 0.4203 |
| train_cifar_b4458_00007 TERMINATED 256 256 0.00477469 8 10 396.484 1.31288 0.5825 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4881) [7, 2000] loss: 1.224
(func pid=4881) [7, 4000] loss: 0.615
(func pid=4881) [7, 6000] loss: 0.407
(func pid=4881) [7, 8000] loss: 0.301
Trial status: 9 TERMINATED | 1 RUNNING
Current time: 2024-12-17 23:07:57. Total running time: 7min 31s
Logical resource usage: 2.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 6 407.336 1.28758 0.5314 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00006 TERMINATED 16 4 0.000147684 8 10 385.209 1.55305 0.4203 |
| train_cifar_b4458_00007 TERMINATED 256 256 0.00477469 8 10 396.484 1.31288 0.5825 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4881) [7, 10000] loss: 0.246
Trial train_cifar_b4458_00005 finished iteration 7 at 2024-12-17 23:08:06. Total running time: 7min 39s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00005 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000006 |
| time_this_iter_s 45.70899 |
| time_total_s 453.04475 |
| training_iteration 7 |
| accuracy 0.559 |
| loss 1.20697 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00005 saved a checkpoint for iteration 7 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000006
(func pid=4881) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000006)
(func pid=4881) [8, 2000] loss: 1.208
(func pid=4881) [8, 4000] loss: 0.593
Trial status: 9 TERMINATED | 1 RUNNING
Current time: 2024-12-17 23:08:27. Total running time: 8min 1s
Logical resource usage: 2.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 7 453.045 1.20697 0.559 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00006 TERMINATED 16 4 0.000147684 8 10 385.209 1.55305 0.4203 |
| train_cifar_b4458_00007 TERMINATED 256 256 0.00477469 8 10 396.484 1.31288 0.5825 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4881) [8, 6000] loss: 0.398
(func pid=4881) [8, 8000] loss: 0.298
(func pid=4881) [8, 10000] loss: 0.241
Trial train_cifar_b4458_00005 finished iteration 8 at 2024-12-17 23:08:52. Total running time: 8min 25s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00005 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000007 |
| time_this_iter_s 45.78979 |
| time_total_s 498.83454 |
| training_iteration 8 |
| accuracy 0.5528 |
| loss 1.21842 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00005 saved a checkpoint for iteration 8 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000007
(func pid=4881) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000007)
Trial status: 9 TERMINATED | 1 RUNNING
Current time: 2024-12-17 23:08:57. Total running time: 8min 31s
Logical resource usage: 2.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 8 498.835 1.21842 0.5528 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00006 TERMINATED 16 4 0.000147684 8 10 385.209 1.55305 0.4203 |
| train_cifar_b4458_00007 TERMINATED 256 256 0.00477469 8 10 396.484 1.31288 0.5825 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4881) [9, 2000] loss: 1.166
(func pid=4881) [9, 4000] loss: 0.590
(func pid=4881) [9, 6000] loss: 0.385
(func pid=4881) [9, 8000] loss: 0.296
Trial status: 9 TERMINATED | 1 RUNNING
Current time: 2024-12-17 23:09:27. Total running time: 9min 1s
Logical resource usage: 2.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 8 498.835 1.21842 0.5528 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00006 TERMINATED 16 4 0.000147684 8 10 385.209 1.55305 0.4203 |
| train_cifar_b4458_00007 TERMINATED 256 256 0.00477469 8 10 396.484 1.31288 0.5825 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4881) [9, 10000] loss: 0.236
Trial train_cifar_b4458_00005 finished iteration 9 at 2024-12-17 23:09:38. Total running time: 9min 11s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00005 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000008 |
| time_this_iter_s 45.85216 |
| time_total_s 544.6867 |
| training_iteration 9 |
| accuracy 0.5603 |
| loss 1.23212 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00005 saved a checkpoint for iteration 9 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000008
(func pid=4881) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000008)
(func pid=4881) [10, 2000] loss: 1.138
(func pid=4881) [10, 4000] loss: 0.569
Trial status: 9 TERMINATED | 1 RUNNING
Current time: 2024-12-17 23:09:58. Total running time: 9min 31s
Logical resource usage: 2.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00005 RUNNING 8 64 0.000353097 4 9 544.687 1.23212 0.5603 |
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00006 TERMINATED 16 4 0.000147684 8 10 385.209 1.55305 0.4203 |
| train_cifar_b4458_00007 TERMINATED 256 256 0.00477469 8 10 396.484 1.31288 0.5825 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
(func pid=4881) [10, 6000] loss: 0.390
(func pid=4881) [10, 8000] loss: 0.290
(func pid=4881) [10, 10000] loss: 0.233
Trial train_cifar_b4458_00005 finished iteration 10 at 2024-12-17 23:10:24. Total running time: 9min 58s
+------------------------------------------------------------+
| Trial train_cifar_b4458_00005 result |
+------------------------------------------------------------+
| checkpoint_dir_name checkpoint_000009 |
| time_this_iter_s 46.61067 |
| time_total_s 591.29737 |
| training_iteration 10 |
| accuracy 0.5545 |
| loss 1.22359 |
+------------------------------------------------------------+
Trial train_cifar_b4458_00005 saved a checkpoint for iteration 10 at: (local)/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000009
Trial train_cifar_b4458_00005 completed after 10 iterations at 2024-12-17 23:10:24. Total running time: 9min 58s
Trial status: 10 TERMINATED
Current time: 2024-12-17 23:10:24. Total running time: 9min 58s
Logical resource usage: 2.0/16 CPUs, 0/1 GPUs (0.0/1.0 accelerator_type:M60)
+------------------------------------------------------------------------------------------------------------------------------------+
| Trial name status l1 l2 lr batch_size iter total time (s) loss accuracy |
+------------------------------------------------------------------------------------------------------------------------------------+
| train_cifar_b4458_00000 TERMINATED 16 1 0.00213327 2 1 170.672 2.30767 0.1047 |
| train_cifar_b4458_00001 TERMINATED 1 2 0.013416 4 1 97.0192 2.31055 0.102 |
| train_cifar_b4458_00002 TERMINATED 256 64 0.0113784 2 1 191.443 2.32586 0.101 |
| train_cifar_b4458_00003 TERMINATED 64 256 0.0274071 8 2 112.111 2.03574 0.2245 |
| train_cifar_b4458_00004 TERMINATED 16 2 0.056666 4 1 98.5662 2.32721 0.1019 |
| train_cifar_b4458_00005 TERMINATED 8 64 0.000353097 4 10 591.297 1.22359 0.5545 |
| train_cifar_b4458_00006 TERMINATED 16 4 0.000147684 8 10 385.209 1.55305 0.4203 |
| train_cifar_b4458_00007 TERMINATED 256 256 0.00477469 8 10 396.484 1.31288 0.5825 |
| train_cifar_b4458_00008 TERMINATED 128 256 0.0306227 8 2 97.3525 2.01933 0.2096 |
| train_cifar_b4458_00009 TERMINATED 2 16 0.0286986 2 1 139.963 2.31454 0.1017 |
+------------------------------------------------------------------------------------------------------------------------------------+
Best trial config: {'l1': 8, 'l2': 64, 'lr': 0.0003530972286268149, 'batch_size': 4}
Best trial final validation loss: 1.2235883222103119
Best trial final validation accuracy: 0.5545
(func pid=4881) Checkpoint successfully created at: Checkpoint(filesystem=local, path=/var/lib/ci-user/ray_results/train_cifar_2024-12-17_23-00-26/train_cifar_b4458_00005_5_batch_size=4,l1=8,l2=64,lr=0.0004_2024-12-17_23-00-26/checkpoint_000009)
Files already downloaded and verified
Files already downloaded and verified
Best trial test set accuracy: 0.5687
If you run the code, an example output could look like this:
Number of trials: 10/10 (10 TERMINATED)
+-----+--------------+------+------+-------------+--------+---------+------------+
| ... | batch_size | l1 | l2 | lr | iter | loss | accuracy |
|-----+--------------+------+------+-------------+--------+---------+------------|
| ... | 2 | 1 | 256 | 0.000668163 | 1 | 2.31479 | 0.0977 |
| ... | 4 | 64 | 8 | 0.0331514 | 1 | 2.31605 | 0.0983 |
| ... | 4 | 2 | 1 | 0.000150295 | 1 | 2.30755 | 0.1023 |
| ... | 16 | 32 | 32 | 0.0128248 | 10 | 1.66912 | 0.4391 |
| ... | 4 | 8 | 128 | 0.00464561 | 2 | 1.7316 | 0.3463 |
| ... | 8 | 256 | 8 | 0.00031556 | 1 | 2.19409 | 0.1736 |
| ... | 4 | 16 | 256 | 0.00574329 | 2 | 1.85679 | 0.3368 |
| ... | 8 | 2 | 2 | 0.00325652 | 1 | 2.30272 | 0.0984 |
| ... | 2 | 2 | 2 | 0.000342987 | 2 | 1.76044 | 0.292 |
| ... | 4 | 64 | 32 | 0.003734 | 8 | 1.53101 | 0.4761 |
+-----+--------------+------+------+-------------+--------+---------+------------+
Best trial config: {'l1': 64, 'l2': 32, 'lr': 0.0037339984519545164, 'batch_size': 4}
Best trial final validation loss: 1.5310075663924216
Best trial final validation accuracy: 0.4761
Best trial test set accuracy: 0.4737
Most trials have been stopped early in order to avoid wasting resources. The best performing trial achieved a validation accuracy of about 47%, which could be confirmed on the test set.
So that’s it! You can now tune the parameters of your PyTorch models.
Total running time of the script: ( 10 minutes 16.380 seconds)