Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

def main():
args = define_parser()
train_script = "src/hf_sft_peft_fl.py"
train_script = "client.py"
client_ids = args.client_ids
num_clients = len(client_ids)

Expand Down Expand Up @@ -74,9 +74,9 @@ def main():

# Define the model persistor and send to server
# First send the model to the server
job.to("src/hf_sft_model.py", "server")
job.to("hf_sft_model.py", "server")
# Then send the model persistor to the server
model_args = {"path": "src.hf_sft_model.CausalLMModel", "args": {"model_name_or_path": model_name_or_path}}
model_args = {"path": "hf_sft_model.CausalLMModel", "args": {"model_name_or_path": model_name_or_path}}
job.to(PTFileModelPersistor(model=model_args), "server", id="persistor")

# Add model selection widget and send to server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

def main():
args = define_parser()
train_script = "src/hf_sft_peft_fl.py"
train_script = "client.py"
client_ids = args.client_ids
num_clients = len(client_ids)

Expand Down Expand Up @@ -74,9 +74,9 @@ def main():

# Define the model persistor and send to server
# First send the model to the server
job.to("src/hf_peft_model.py", "server")
job.to("hf_peft_model.py", "server")
# Then send the model persistor to the server
model_args = {"path": "src.hf_peft_model.CausalLMPEFTModel", "args": {"model_name_or_path": model_name_or_path}}
model_args = {"path": "hf_peft_model.CausalLMPEFTModel", "args": {"model_name_or_path": model_name_or_path}}
job.to(PTFileModelPersistor(model=model_args), "server", id="persistor")

# Add model selection widget and send to server
Expand Down
Loading