8000 chore: revert upload column again by SAKURA-CAT · Pull Request #974 · SwanHubX/SwanLab · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: revert upload column again #974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged

Conversation

SAKURA-CAT
Copy link
Member

This pull request introduces a batch processing mechanism for column uploads, updates related references, and adjusts a default setting for log uploads. The most important changes are grouped and summarized below:

Batch Processing for Column Uploads

  • Modified upload_column to upload_columns in swanlab/api/upload/__init__.py, enabling batch uploads with a configurable maximum length per request (per_request_len). Columns are split into smaller lists and uploaded sequentially.
  • Updated the UploadType.COLUMN configuration in swanlab/data/cloud/task_types.py to reference the new upload_columns function.

Code Cleanup

  • Removed the unused ApiError import from swanlab/api/upload/__init__.py.

Log Upload Settings Adjustment

  • Changed the default upload_interval in swanlab/swanlab_settings.py from 1 second to 3 seconds, increasing the interval between log uploads.

We will allow the concurrent creation of columns to reach 3000 per request.

closes #888

@SAKURA-CAT SAKURA-CAT requested a review from Zeyi-Lin May 12, 2025 10:01
@SAKURA-CAT SAKURA-CAT self-assigned this May 12, 2025
@SAKURA-CAT SAKURA-CAT added the 💪 enhancement New feature or request label May 12, 2025
@SAKURA-CAT SAKURA-CAT merged commit f69bbed into main May 13, 2025
5 checks passed
@SAKURA-CAT SAKURA-CAT deleted the chore/revert-upload-columns branch May 13, 2025 09:13
@SAKURA-CAT SAKURA-CAT restored the chore/revert-upload-columns branch May 13, 2025 09:15
@SAKURA-CAT SAKURA-CAT deleted the chore/revert-upload-columns branch May 13, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REQUEST] 优化SDK在大量key情况的性能
2 participants
0