Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
72266c76
Commit
72266c76
authored
Aug 25, 2023
by
Michael Yang
Browse files
bump chunk size to 95MB
parent
d3b838ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
server/upload.go
server/upload.go
+2
-1
No files found.
server/upload.go
View file @
72266c76
...
...
@@ -56,7 +56,8 @@ func uploadBlobChunked(ctx context.Context, mp ModelPath, requestURL *url.URL, l
defer
f
.
Close
()
var
completed
int64
chunkSize
:=
10
*
1024
*
1024
// 95MB chunk size
chunkSize
:=
95
*
1024
*
1024
for
{
chunk
:=
int64
(
layer
.
Size
)
-
completed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment