mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
lower aria interval
This commit is contained in:
parent
8b141d8647
commit
740f91e3fd
1 changed files with 2 additions and 2 deletions
|
@ -5985,7 +5985,7 @@ def downloader_internal(input_url, output_filename, capture_output, min_file_siz
|
||||||
a2cexe = (os.path.join(basepath, "aria2c-win.exe"))
|
a2cexe = (os.path.join(basepath, "aria2c-win.exe"))
|
||||||
if os.path.exists(a2cexe): #on windows try using embedded a2cexe
|
if os.path.exists(a2cexe): #on windows try using embedded a2cexe
|
||||||
rc = subprocess.run([
|
rc = subprocess.run([
|
||||||
a2cexe, "-x", "16", "-s", "16", "--summary-interval=20", "--console-log-level=error", "--log-level=error",
|
a2cexe, "-x", "16", "-s", "16", "--summary-interval=15", "--console-log-level=error", "--log-level=error",
|
||||||
"--download-result=default", "--allow-overwrite=true", "--file-allocation=none", "--max-tries=3", "-o", output_filename, input_url
|
"--download-result=default", "--allow-overwrite=true", "--file-allocation=none", "--max-tries=3", "-o", output_filename, input_url
|
||||||
], capture_output=capture_output, text=True, check=True, encoding='utf-8')
|
], capture_output=capture_output, text=True, check=True, encoding='utf-8')
|
||||||
dl_success = (rc.returncode == 0 and os.path.exists(output_filename) and os.path.getsize(output_filename) > min_file_size)
|
dl_success = (rc.returncode == 0 and os.path.exists(output_filename) and os.path.getsize(output_filename) > min_file_size)
|
||||||
|
@ -5995,7 +5995,7 @@ def downloader_internal(input_url, output_filename, capture_output, min_file_siz
|
||||||
try:
|
try:
|
||||||
if not dl_success and shutil.which("aria2c") is not None:
|
if not dl_success and shutil.which("aria2c") is not None:
|
||||||
rc = subprocess.run([
|
rc = subprocess.run([
|
||||||
"aria2c", "-x", "16", "-s", "16", "--summary-interval=30", "--console-log-level=error", "--log-level=error",
|
"aria2c", "-x", "16", "-s", "16", "--summary-interval=15", "--console-log-level=error", "--log-level=error",
|
||||||
"--download-result=default", "--allow-overwrite=true", "--file-allocation=none", "--max-tries=3", "-o", output_filename, input_url
|
"--download-result=default", "--allow-overwrite=true", "--file-allocation=none", "--max-tries=3", "-o", output_filename, input_url
|
||||||
], capture_output=capture_output, text=True, check=True, encoding='utf-8')
|
], capture_output=capture_output, text=True, check=True, encoding='utf-8')
|
||||||
dl_success = (rc.returncode == 0 and os.path.exists(output_filename) and os.path.getsize(output_filename) > min_file_size)
|
dl_success = (rc.returncode == 0 and os.path.exists(output_filename) and os.path.getsize(output_filename) > min_file_size)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue