Commit Graph

58 Commits

Author SHA1 Message Date
c852b8e021 server: always print upload/download part info (#8832) 2025-02-04 19:30:49 -08:00
9fddef3731 server: limit upload parts to 16 (#6411) 2024-08-19 09:20:52 -07:00
7edaf6e7e8 manifest: Store layers inside manifests consistently as values.
Commit 1829fb61 ("manifest: Fix crash on startup when trying to clean up
unused files (#5840)") changed the config layer stored in manifests
from a pointer to a value. This was done in order to avoid potential
nil pointer dereferences after it is deserialized from JSON in the
event that the field is missing.

This changes the Layers slice to also be stored by value. This enables
consistency in handling across the two objects.
2024-08-07 17:03:06 -07:00
b732beba6a lint 2024-08-01 17:06:06 -07:00
a622c47bd3 fix nil deref in auth.go 2024-07-26 14:14:48 -07:00
e40145a39d lint 2024-06-04 11:13:30 -07:00
8ffb51749f nolintlint 2024-06-04 11:13:30 -07:00
1b272d5bcd change github.com/jmorganca/ollama to github.com/ollama/ollama (#3347) 2024-03-26 13:04:17 -07:00
fc06205971 Revert "adjust download and upload concurrency based on available bandwidth" (#2995) 2024-03-07 18:10:16 -08:00
084d846621 refactor 2024-02-21 13:42:48 -08:00
6a4b994433 lint 2024-02-21 13:42:48 -08:00
bea007deb7 use LimitGroup for uploads 2024-02-21 13:42:48 -08:00
210b65268e replace strings buffer with hasher (#2437)
the buffered value is going into the hasher eventually so write directly
to the hasher instead
2024-02-20 19:07:50 -05:00
e43648afe5 rerefactor 2024-02-15 05:56:45 +00:00
f397e0e988 Move hub auth out to new package 2024-02-15 05:56:45 +00:00
fedd705aea Mechanical switch from log to slog
A few obvious levels were adjusted, but generally everything mapped to "info" level.
2024-01-18 14:12:57 -08:00
2bb2bdd5d4 fix lint 2024-01-09 09:36:58 -08:00
acfc376efd add .golangci.yaml 2024-01-09 09:36:58 -08:00
13efd5f218 upload: fix PUT retry 2023-11-29 16:38:35 -08:00
c4bdfffd96 upload: separate progress tracking 2023-11-29 16:38:33 -08:00
26c63418e0 new hasher 2023-11-29 14:52:41 -08:00
2799784ac8 revert checksum calculation to calculate-as-you-go 2023-11-29 13:47:58 -08:00
35c4b5ec16 calculate hash separately from http request 2023-11-20 15:45:11 -05:00
9d73d3a6b5 add back part.Reset() 2023-11-19 14:32:19 -05:00
72cd336410 dont retry on upload complete context cancel 2023-11-19 14:32:19 -05:00
1bd594b2fa revert to using one open file for blob uploads 2023-11-19 14:32:19 -05:00
9a8c21ac3d use exponential everywhere 2023-11-19 14:32:19 -05:00
f6b317e8c9 fix sending too little data in chunk upload body 2023-11-19 14:32:19 -05:00
ac5076ce1e exponential backoff up to 30s 2023-11-19 14:32:19 -05:00
42c2e3a624 upload: retry complete upload 2023-11-19 14:32:19 -05:00
cb42589792 adjust download/upload parts 2023-11-19 14:32:19 -05:00
e1d7056496 update progress statuses 2023-11-19 09:21:13 -05:00
d6ecaa2cbf update progress responses 2023-11-17 10:06:19 -08:00
a5ccf742c1 fix cross repo mounts 2023-11-16 16:33:30 -05:00
e33ef391cd fix push scope error for inherited model 2023-11-16 16:33:30 -05:00
434a6f9d46 return last error 2023-11-03 16:49:51 -07:00
84725ec7e3 refactor part reset 2023-11-03 09:20:32 -07:00
fe5a872444 fix upload 2023-11-02 13:25:58 -07:00
60bb3c03a1 use http.Method 2023-11-02 13:12:45 -07:00
c4cc738cbf fix log 2023-11-01 17:18:11 -07:00
115fc56eb7 calculate and verify md5 checksum 2023-10-27 17:07:33 -07:00
186f685224 retry PUT 2023-10-27 17:07:33 -07:00
12efcbb057 comments 2023-10-27 17:07:33 -07:00
4e09aab8b9 concurrent uploads 2023-10-27 17:07:33 -07:00
8544edca21 parallel chunked downloads 2023-10-06 12:56:43 -07:00
f40b3de758 use int64 consistently 2023-09-28 11:07:24 -07:00
499e9007a5 pick chunksize based on location 2023-09-20 11:10:24 -07:00
aa45d7c1df draft: explicitly follow upload redirects 2023-09-19 13:36:58 -07:00
08d7c2a944 fix error on upload chunk 2023-09-15 15:59:30 -07:00
e53bc57d4d split uploadBlobChunked 2023-09-14 17:22:05 -07:00