MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / train

Function train

trainer/src/trainer/main.py:26–36  ·  view source on GitHub ↗
(fine_tune_id: str, base_url: str)

Source from the content-addressed store, hash-verified

24 volumes={"/models": stub.volume, "/root/.fireworks": stub.fireworks_auth_volume},
25)
26def train(fine_tune_id: str, base_url: str):
27 from .train import do_train
28
29 do_train(fine_tune_id, base_url)
30
31 # Save the model to the cache volume
32 logging.info("Persisting model cache")
33 stub.volume.commit()
34 logging.info("Cache persisted")
35
36 return {"status": "done"}
37
38
39@stub.function(

Callers 1

visitMethod · 0.85

Calls 1

do_trainFunction · 0.85

Tested by

no test coverage detected