Skip to main content
Until Repoch Middleware is available, you can pull models from the Repoch server to evaluate them on real hardware.

Pull Model

Download a trained model that was pushed to Repoch during training.
1

Import and create client

from pathlib import Path
from repoch.client_api import RepochClient

client = RepochClient()
2

Download model

Pass the model ID from the Repoch dashboard:
model_path = client.models.prepare_repoch_model(
    model_id="your_model_id",
    root=Path("./models/my_policy"),
)
Files are cached locally so subsequent calls skip the download.
3

Load model files

import torch

checkpoint = torch.load(model_path / "model.pt")

Next Steps

Share with Team

Share your sessions, datasets, and models with your team or the community