flwr-nightly 1.16.0.dev20250213__py3-none-any.whl → 1.16.0.dev20250217__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
flwr/cli/new/new.py CHANGED
@@ -213,7 +213,7 @@ def new(
213
213
  else:
214
214
  challenge_name = "Code"
215
215
  num_clients = "10"
216
- dataset_name = "lucasmccabe-lmi/CodeAlpaca-20k"
216
+ dataset_name = "flwrlabs/code-alpaca-20k"
217
217
 
218
218
  context["llm_challenge_str"] = llm_challenge_str
219
219
  context["fraction_fit"] = fraction_fit
@@ -208,6 +208,13 @@ class ServerAppIoServicer(serverappio_pb2_grpc.ServerAppIoServicer):
208
208
  # Read from state
209
209
  task_res_list: list[TaskRes] = state.get_task_res(task_ids=message_ids)
210
210
 
211
+ # Delete the TaskIns/TaskRes pairs if TaskRes is found
212
+ task_ins_ids_to_delete = {
213
+ UUID(task_res.task.ancestry[0]) for task_res in task_res_list
214
+ }
215
+
216
+ state.delete_tasks(task_ins_ids=task_ins_ids_to_delete)
217
+
211
218
  # Convert to Messages
212
219
  messages_list = []
213
220
  while task_res_list:
@@ -220,13 +227,6 @@ class ServerAppIoServicer(serverappio_pb2_grpc.ServerAppIoServicer):
220
227
  message = message_from_taskres(taskres=task_res)
221
228
  messages_list.append(message_to_proto(message))
222
229
 
223
- # Delete the TaskIns/TaskRes pairs if TaskRes is found
224
- task_ins_ids_to_delete = {
225
- UUID(task_res.task.ancestry[0]) for task_res in task_res_list
226
- }
227
-
228
- state.delete_tasks(task_ins_ids=task_ins_ids_to_delete)
229
-
230
230
  return PullResMessagesResponse(messages_list=messages_list)
231
231
 
232
232
  def GetRun(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: flwr-nightly
3
- Version: 1.16.0.dev20250213
3
+ Version: 1.16.0.dev20250217
4
4
  Summary: Flower: A Friendly Federated AI Framework
5
5
  Home-page: https://flower.ai
6
6
  License: Apache-2.0
@@ -14,7 +14,7 @@ flwr/cli/login/__init__.py,sha256=6_9zOzbPOAH72K2wX3-9dXTAbS7Mjpa5sEn2lA6eHHI,80
14
14
  flwr/cli/login/login.py,sha256=iNnNF1bvV0n8Z-vNc89azFNA73JqKZlO1s5OF2atsTc,3917
15
15
  flwr/cli/ls.py,sha256=cm3NuY1sFq51xVRhUG0MbAfVTrRSjJ1HMIubde80LuY,11433
16
16
  flwr/cli/new/__init__.py,sha256=pOQtPT9W4kCIttcKne5m-FtJbvTqdjTVJxzQ9AUYK8I,790
17
- flwr/cli/new/new.py,sha256=scyyKt8mzkc3El1bypgkHjKwVQEc2-q4I50PxriPFdI,9922
17
+ flwr/cli/new/new.py,sha256=Az-Imr_H2BqTiuGEF5spmlLeqnVb4JYIXSlkZDZ_7T8,9916
18
18
  flwr/cli/new/templates/__init__.py,sha256=4luU8RL-CK8JJCstQ_ON809W9bNTkY1l9zSaPKBkgwY,725
19
19
  flwr/cli/new/templates/app/.gitignore.tpl,sha256=HZJcGQoxp7aUzaPg8Uqch3kNrIESwr9yjimDxJYgXVY,3104
20
20
  flwr/cli/new/templates/app/LICENSE.tpl,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
@@ -265,7 +265,7 @@ flwr/server/strategy/strategy.py,sha256=cXapkD5uDrt5C-RbmWDn9FLoap3Q41i7GKvbmfbC
265
265
  flwr/server/superlink/__init__.py,sha256=8tHYCfodUlRD8PCP9fHgvu8cz5N31A2QoRVL0jDJ15E,707
266
266
  flwr/server/superlink/driver/__init__.py,sha256=5soEK5QSvxNjmJQ-CGTWROc4alSAeU0e9Ad9RDhsd3E,717
267
267
  flwr/server/superlink/driver/serverappio_grpc.py,sha256=UzHwo6qYZMeOhr7nn1iZbcyDSmwvnq_kpYH0mEAndW0,2173
268
- flwr/server/superlink/driver/serverappio_servicer.py,sha256=Ld_d4ygbvJ7YmsIA8O9oD3E4tBKDY7MlpQzBjDUyvi0,13116
268
+ flwr/server/superlink/driver/serverappio_servicer.py,sha256=hT_fM32ya3SxZFHNmfI7u2qQ_apbNHTUZB3cw6WRsmw,13116
269
269
  flwr/server/superlink/ffs/__init__.py,sha256=FAY-zShcfPmOxosok2QyT6hTNMNctG8cH9s_nIl8jkI,840
270
270
  flwr/server/superlink/ffs/disk_ffs.py,sha256=n_Ah0sQwXGVQ9wj5965nLjdkQQbpoHCljjXKFnwftsU,3297
271
271
  flwr/server/superlink/ffs/ffs.py,sha256=qLI1UfosJugu2BKOJWqHIhafTm-YiuKqGf3OGWPH0NM,2395
@@ -327,8 +327,8 @@ flwr/superexec/exec_servicer.py,sha256=X10ILT-AoGMrB3IgI2mBe9i-QcIVUAl9bucuqVOPY
327
327
  flwr/superexec/exec_user_auth_interceptor.py,sha256=K06OU-l4LnYhTDg071hGJuOaQWEJbZsYi5qxUmmtiG0,3704
328
328
  flwr/superexec/executor.py,sha256=_B55WW2TD1fBINpabSSDRenVHXYmvlfhv-k8hJKU4lQ,3115
329
329
  flwr/superexec/simulation.py,sha256=WQDon15oqpMopAZnwRZoTICYCfHqtkvFSqiTQ2hLD_g,4088
330
- flwr_nightly-1.16.0.dev20250213.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
331
- flwr_nightly-1.16.0.dev20250213.dist-info/METADATA,sha256=LzNrmrFtN1S3jw0Jhj2MIusrQTiMRITrn3yHDG-bhdc,15873
332
- flwr_nightly-1.16.0.dev20250213.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
333
- flwr_nightly-1.16.0.dev20250213.dist-info/entry_points.txt,sha256=JlNxX3qhaV18_2yj5a3kJW1ESxm31cal9iS_N_pf1Rk,538
334
- flwr_nightly-1.16.0.dev20250213.dist-info/RECORD,,
330
+ flwr_nightly-1.16.0.dev20250217.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
331
+ flwr_nightly-1.16.0.dev20250217.dist-info/METADATA,sha256=wA_2csr5FFwpiVqbZxeS_s5iPehA-ClzAbp-ZbAWqw8,15873
332
+ flwr_nightly-1.16.0.dev20250217.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
333
+ flwr_nightly-1.16.0.dev20250217.dist-info/entry_points.txt,sha256=JlNxX3qhaV18_2yj5a3kJW1ESxm31cal9iS_N_pf1Rk,538
334
+ flwr_nightly-1.16.0.dev20250217.dist-info/RECORD,,