Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.11", "3.13", "3.14"]

steps:
- uses: actions/checkout@v7
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ env.DOCKER_HUB_USERNAME }}/${{ env.DOCKER_HUB_REPOSITORY }}:python-slim
- name: Build and push pytorch1.13.1-cu116 version
uses: docker/build-push-action@v7
with:
context: .
file: ./pytorch1.13.1-cu116.Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ env.DOCKER_HUB_USERNAME }}/${{ env.DOCKER_HUB_REPOSITORY }}:pytorch1.13.1-cu116
- name: Build and push pytorch2-latest version
uses: docker/build-push-action@v7
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.11", "3.13", "3.14"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-apfl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ditto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-fedcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-feddc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-feddr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-feddyn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-fedopt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-fedpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-fedprox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-fedsplit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-fpfc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ifca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-pfedmac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-pfedme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-proxskip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-scaffold.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-threads-executor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.13"]
algorithm: [fedopt, fedpd, apfl]

steps:
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sphinx-design
sphinx-emoji-favicon
sphinx-intl
sphinxcontrib-napoleon
sphinxcontrib-tikz
sphinxcontrib-tikz>=0.4.20
sphinxcontrib-bibtex
sphinxcontrib-proof
sphinxcontrib-pseudocode2
Expand Down
2 changes: 1 addition & 1 deletion docs/source/install.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Installation instructions
^^^^^^^^^^^^^^^^^^^^^^^^^

:code:`fl-sim` requires **Python 3.10+** and is available through pip:
:code:`fl-sim` requires **Python 3.11+** and is available through pip:

.. code-block:: bash

Expand Down
15 changes: 9 additions & 6 deletions docs/source/locale/zh_CN/LC_MESSAGES/install.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: fl-sim\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-06 01:22+0800\n"
"POT-Creation-Date: 2026-11-01 15:54+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: zh <LL@li.org>\n"
Expand All @@ -17,23 +17,26 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Generated-By: Babel 2.16.0\n"
"Generated-By: Babel 2.18.0\n"

#: ../../source/install.rst:2
msgid "Installation instructions"
msgstr "安装说明"

#: ../../source/install.rst:4
msgid ":code:`fl-sim` requires **Python 3.10+** and is available through pip:"
msgstr ":code:`fl-sim` 需要 **Python 3.10+** ,可通过 pip 安装:"
msgid ":code:`fl-sim` requires **Python 3.11+** and is available through pip:"
msgstr ":code:`fl-sim` 需要 **Python 3.11+** ,可通过 pip 安装:"

#: ../../source/install.rst:10
msgid "or clone the repository and run"
msgstr "或克隆仓库后运行"

#: ../../source/install.rst:16
msgid "Alternatively, one can use the Docker image `wenh06/fl-sim <https://hub.docker.com/r/wenh06/fl-sim>`_ to run the code. The image is built with the `Docker Image CI action <https://github.com/wenh06/fl-sim/actions/workflows/docker-image.yml>`_. To pull the image, run the following command:"
msgstr "或者,可以使用 Docker 镜像 `wenh06/fl-sim <https://hub.docker.com/r/wenh06/fl-sim>`_ 来运行代码。镜像由 `Docker Image CI action <https://github.com/wenh06/fl-sim/actions/workflows/docker-image.yml>`_ 构建。拉取镜像请运行以下命令:"
msgid ""
"Alternatively, one can use the Docker image `wenh06/fl-sim <https://hub.docker.com/r/wenh06/fl-sim>`_ to run the code. The image is built with the `Docker Image CI action "
"<https://github.com/wenh06/fl-sim/actions/workflows/docker-image.yml>`_. To pull the image, run the following command:"
msgstr ""
"或者,可以使用 Docker 镜像 `wenh06/fl-sim <https://hub.docker.com/r/wenh06/fl-sim>`_ 来运行代码。镜像由 `Docker Image CI action <https://github.com/wenh06/fl-sim/actions/workflows/docker-image.yml>`_ 构建。拉取镜像请运行以下命令:"

#: ../../source/install.rst:24
msgid "For the usage (interactive mode), run the following command:"
Expand Down
9 changes: 5 additions & 4 deletions docs/source/locale/zh_CN/LC_MESSAGES/quickstart.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: fl-sim\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-28 23:45+0800\n"
"POT-Creation-Date: 2026-11-01 15:54+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: zh_CN <LL@li.org>\n"
Expand All @@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Generated-By: Babel 2.16.0\n"
"Generated-By: Babel 2.18.0\n"

#: ../../source/quickstart.rst:4
msgid "Quickstart"
Expand All @@ -38,8 +38,8 @@ msgid "Prerequisites"
msgstr "准备条件"

#: ../../source/quickstart.rst:17
msgid "Install fl-sim following :doc:`install` (``pip install git+https://github.com/wenh06/fl-sim.git``). Python 3.10+ with PyTorch is required."
msgstr "按照 :doc:`install` 安装 fl-sim(``pip install git+https://github.com/wenh06/fl-sim.git``)。需要 Python 3.10+ 与 PyTorch。"
msgid "Install fl-sim following :doc:`install` (``pip install git+https://github.com/wenh06/fl-sim.git``). Python 3.11+ with PyTorch is required."
msgstr "按照 :doc:`install` 安装 fl-sim(``pip install git+https://github.com/wenh06/fl-sim.git``)。需要 Python 3.11+ 与 PyTorch。"

#: ../../source/quickstart.rst:21
msgid "Train your first model"
Expand Down Expand Up @@ -84,6 +84,7 @@ msgid "a ``.txt`` log with the human-readable console history;"
msgstr "一个 ``.txt`` 日志,保存人类可读的控制台历史;"

#: ../../source/quickstart.rst:65
#, python-brace-format
msgid ""
"a ``.json`` log with the full metrics history, structured as ``{\"train\": {...}, \"val\": {\"Server\": [...], \"Client0\": [...], ...}}`` — one dict per evaluation, holding ``step``, ``acc``, "
"``loss``, etc. This file is the input for visualization;"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Prerequisites
-------------

Install fl-sim following :doc:`install` (``pip install git+https://github.com/wenh06/fl-sim.git``).
Python 3.10+ with PyTorch is required.
Python 3.11+ with PyTorch is required.

Train your first model
----------------------
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dynamic = ["version"]
description = "A Simple Simulation Framework for Federated Learning Based on PyTorch"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
requires-python = ">=3.11"
authors = [
{ name = "wenh06", email = "wenh06@gmail.com" },
]
Expand All @@ -17,10 +17,10 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"beautifulsoup4",
Expand Down
2 changes: 1 addition & 1 deletion python-slim.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FROM pytorch/pytorch:1.8.0-cuda11.1-cudnn8-devel
# FROM pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime
FROM python:3.10-slim
FROM python:3.13-slim

## The MAINTAINER instruction sets the author field of the generated images.
LABEL maintainer="wenh06@gmail.com"
Expand Down
55 changes: 0 additions & 55 deletions pytorch1.13.1-cu116.Dockerfile

This file was deleted.

Loading
Loading