Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
This is the code used for the paper [Towards Learning Universal Hyperparameter Optimizers with Transformers (NeurIPS 2022)](https://arxiv.org/abs/2205.13320).

# Installation
All base dependencies can be installed from `requirements.txt`. Afterwards, [T5X](https://github.com/google-research/t5x) must be manually installed.
To get started, manually install [T5X](https://github.com/google-research/t5x). Afterwards, install OptFormer with ``pip install -e .``.



# Usage

Expand Down
3 changes: 1 addition & 2 deletions optformer/t5x/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,8 @@ def _thompson_sampling(
return max_funs

def update(
self, completed: vza.CompletedTrials, all_active: vza.ActiveTrials
self, completed: vza.CompletedTrials
) -> None:
del all_active
completed_trials = []
for trial in completed.trials:
# A completed trial either has a final_measurement or is marked as
Expand Down
8 changes: 6 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# T5X prerequisite.
seqio # Always compatible with most up-to-date version.
t5
seqio==0.0.13 # Always compatible with most up-to-date version.

# OSS Vizier
google-vizier # Use latest version.
google-vizier==0.0.20 # Use latest version.

# Proto
protobuf>=3.6,<4.0

# For the notebook
matplotlib

# Autodiff and numerical packages.
numpy>=1.21.5
tensorflow>=2.9.1
Expand Down