We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents acb82d2 + 4df8d49 commit fee48b5Copy full SHA for fee48b5
.gitignore
@@ -134,6 +134,6 @@ wandb-debug.log
134
wandb/
135
136
# hf
137
-cache-
138
-.lock
139
-.arrow
+*cache-*
+*.lock
+*.arrow
src/hf_trainer.py
@@ -119,7 +119,7 @@ def compute_loss(
119
try:
120
temp_coef = temp_coef_fn.get_temp_coef()
121
except AttributeError:
122
- temp_coef = None
+ temp_coef = torch.Tensor([0.0]).to(contrastive_loss.device)
123
124
return contrastive_loss, {
125
"source_embedding": normalized_source_embedding,
0 commit comments