Skip to content

Commit c8ebf73

Browse files
authored
update CI to match modal SDK changes (#84)
* replace lookup with from_name * resolve deprecation warning for direct module execution
1 parent 9e97704 commit c8ebf73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/check_inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
prompt += " [/INST]"
1515

1616
p = subprocess.Popen(
17-
["modal", "run", "src.inference", "--prompt", prompt],
17+
["modal", "run", "-m", "src.inference", "--prompt", prompt],
1818
stdout=subprocess.PIPE,
1919
)
2020
output = ""

ci/check_loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
with open(".last_run_name", "r") as f:
1212
run_name = f.read().strip()
1313

14-
vol = Volume.lookup("example-runs-vol")
14+
vol = Volume.from_name("example-runs-vol")
1515
contents = b""
1616
for chunk in vol.read_file(f"{run_name}/lora-out/README.md"):
1717
contents += chunk

0 commit comments

Comments
 (0)