-
Notifications
You must be signed in to change notification settings - Fork 109
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
[UI] Issues in uploading large files and inconsistent UI behavior #54
Comments
we should hide tmp files |
I wonder if this loop needs to be there:
|
This change resolves smallcloudai/issues/54 The code in `tab_upload.py` reads uploaded files 1024 bytes at a time. This is not efficient for large files on modern systems. `UploadFile.read()` maps to `RawIOBase.read()` which handles multiple reads to a stream internally. This change delegates stream io to the lower levels of the runtime.
@hazratisulton have you tried "Download from URL"? |
@gardner Your pr didn't fix the problem. Still have tmp file. Just need bigger file. Used not 2 Gb, but 10 Gb zip to reproduce the problem. |
@hazratisulton more than 5 min? |
Ha ha then there will be no way for user to delete it :D |
@k3KAW8Pnf7mkmdSMPHz27 more than 20 min. |
@hazratisulton Implemented in #136 |
@valaises if I am not mistaken there are three issues here,
@valaises I believe the PR notifies the user once the file is unpacked? @hazratisulton please confirm if this is correct, or if I am hijacking your issue (in which case I apologize 😳 ) |
i. Uploading from a URL is faster indeed, FastAPI's built-in seems less perfect but it will do. Temp files are needed to avoid file conflicts when different entities are manipulating the same files. ii. In my environment, in case 1.4G zip file it took roughly 20s to move-unpack it up. IMO, no extra progress bars or detailed statuses for each step are needed. Spinner is just fine 👌 iii. "Error:No train files have been provided for filtering" is not gonna appear anymore as this section has moved to Finetune Tab 😀 |
|
fixed in v1.1.0 |
Steps:
Add a big file to the list.
Wait for the upload progress to reach 100%.
When upload a large file and upload progress reaches 100%, the window may remain displayed for a few more minutes (3+ minutes for 2 Gb file). I would like to better understand what is happening and how much longer to wait for the end:
When upload a large file interface is not blocked. It's possible to hidden "Upload file" window from previous screen and then how to figure out what is going on:
If then open the "Upload file" window again while in list displayed .tmp file, there is no progress bar or working status:
If wait a few minutes, then eventually the file will be uploaded:
Also on all screenshots can see the error "No train files..." left from the previous time. The interface has not been updated.
The text was updated successfully, but these errors were encountered: