Skip to content

Commit

Permalink
Loosen Mixtral loss
Browse files Browse the repository at this point in the history
  • Loading branch information
gongy committed Feb 15, 2024
1 parent aaa3b68 commit b03e00c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ci/check_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@

output = subprocess.check_output(["modal", "run", "src.inference", "--run-folder", f"/runs/{run_name}", "--prompt", prompt])

print("Asserting that output contains [SQ] SELECT ... [/SQL]")

assert b"[SQL] SELECT" in output and b"[/SQL]" in output
5 changes: 4 additions & 1 deletion ci/check_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@
train_loss = float(results["TrainingLoss"].iloc[-1])
val_loss = float(results["ValidationLoss"].iloc[-1])

# Arbitrary threshold
max_loss = 0.8 if b"Mixtral" in contents else 0.25

print(f"Loss: {train_loss:.2f} (training), {val_loss:.2f} (validation)")
sys.exit(val_loss > 0.4) # Arbitrary threshold
sys.exit(val_loss > max_loss)

0 comments on commit b03e00c

Please sign in to comment.