{% extends "base.html" %} {% block title %}群组详情{% endblock %} {% block content %}
← 返回群组列表

{{ group.name }}

组长:{{ group.leader.username }} · 加入码:{{ group.join_code }}
{% if group.description %}
{{ group.description }}
{% endif %}
{% csrf_token %}
{% if member.role == 'leader' %}
{% csrf_token %}
{% endif %}

成员状态

{% for m in members %}
{{ m.user.username }}{% if m.role == 'leader' %}(组长){% endif %}
{% if m.is_ready %}已就绪{% else %}未就绪{% endif %}
{% endfor %}
{% if current_task %}

当前任务:{{ current_task.name }}

联邦任务 {{ current_task.get_status_display }} {{ current_task.get_aggregation_method_display }}
轮次:{{ current_task.current_round }}/{{ current_task.total_rounds }} · 本地 Epoch:{{ current_task.local_epochs }} · Batch:{{ current_task.batch_size }} · 输入尺寸:{{ current_task.image_size }}
{{ current_task.progress_message }}{% if current_task.progress_updated_at %}(更新:{{ current_task.progress_updated_at|date:"H:i:s" }}){% endif %}
{% if current_round %}
当前轮已收到 {{ current_round.submissions.count }}/{{ members|length }} 份客户端更新。
{% endif %}
成员下载客户端并启动后,客户端会自动拉取当前任务、自动本地训练、自动上传更新;服务器收齐后会自动聚合并进入下一轮。
{% if current_task.global_model_file %} {% endif %} {% if member.role == 'leader' and current_round and current_round.submissions.count >= members|length %}
{% csrf_token %}
{% endif %} {% if member.role == 'leader' and current_task.status == 'running' %}
{% csrf_token %}
{% endif %}
{% if submissions %}
本轮已上传更新
{% for item in submissions %}
{{ item.member.user.username }}
{{ item.training_samples }} 样本 · {{ item.submitted_at|date:"Y-m-d H:i:s" }}
{{ item.notes|default:'自动上传' }}
{% endfor %}
{% endif %} {% if current_task.status == 'failed' and current_task.error_message %}
失败原因:{{ current_task.error_message }}
{% endif %}
{% else %}
当前没有进行中的任务。
{% endif %}

最近任务

{% if tasks %}
{% for task in tasks %}
{{ task.name }}
联邦任务 · {{ task.get_status_display }} · {{ task.current_round }}/{{ task.total_rounds }}
{{ task.progress_message }}
{% if task.global_model_file %} {% endif %} {% if member.role == 'leader' and task.status != 'running' and task.status != 'pending' %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% else %}
暂无任务
{% endif %}

步骤 1:配置并下载自动客户端

先在网页里保存客户端要使用的数据集路径或已保存的数据地址,再下载客户端包。客户端包已经写好服务器地址、群组 ID、token 和数据集配置。启动后会自动拉取任务、自动训练、自动上传。
{% csrf_token %}
数据集优先级:你手动填写的本机路径 > 你选择的已保存数据地址。
Python 环境优先级:你手动填写的 Python 路径 > 自动搜索本机 Python / conda 环境中的 GPU PyTorch > 自动回退 CPU 环境。
当前将写入客户端下载包:
当前已保存数据地址:{% if selected_private_dataset %}{{ selected_private_dataset.name }}{% else %}未选择{% endif %}
当前本机路径覆盖:{{ client_profile.dataset_root_override|default:'未填写' }}
当前首选 Python 路径:{{ client_profile.preferred_python_path|default:'未填写,将自动搜索' }}
下载后只需要双击 一键启动客户端.bat。
下载我的联邦客户端包
{% if member.role == 'leader' %}

步骤 2:启动联邦任务

这里只保留真实联邦学习流程。组长选择基础模型并设置训练参数后,成员客户端会自动拉取任务并完成本地训练与上传。
{% csrf_token %}
{% if not all_ready %}
当前还有成员未就绪,暂时不能启动。
{% endif %}
{% endif %}
{% endblock %}