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: 2 additions & 2 deletions baselines/jft/ood_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ def eval_ood_metrics(ood_ds,

# Computes Maximum softmax probability (MSP)
probs = jax.nn.softmax(logits[0], axis=-1)[masks_bool]
batch_scores['probs'] = probs
batch_scores['logits'] = logits[0][masks_bool]
batch_scores['probs'] = np.asarray(probs)
batch_scores['logits'] = np.asarray(logits)[0][masks_bool]

# Compute Entropy
batch_scores['entropy'] = np.array(
Expand Down
2 changes: 1 addition & 1 deletion baselines/jft/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_config(

config.lr = ml_collections.ConfigDict()
config.lr.base = 0.1
config.lr.warmup_steps = 1
config.lr.warmup_steps = 1 if total_steps > 1 else 0
config.lr.decay_type = 'linear'
config.lr.linear_end = 1e-3

Expand Down