Recent Releases of cog

cog - v0.16.6

  • e862f4ee download llms.txt from docs when running cog init (#2504)
  • 17968a81 docs: update cog init AGENTS.md to latest (#2503)
  • 807d521b feat: make cog init -x--pipelines include AGENTS.md (#2499)

- Go
Published by zeke 9 months ago

cog - v0.16.5

Changelog

  • 0a6d85677912b8364bd6959e9827a8782ae36c1c Do not compare build metadata if null (#2501)

- Go
Published by github-actions[bot] 9 months ago

cog - v0.16.3

Changelog

  • b9e72144787b8118495324aebf1556109119908b Add integration test for float with cog-runtime (#2486)
  • c0d3dd46d80d19dd52d38be4133bc9ae50e5012e Disable cog-runtime prompt for now
  • 73b3a8545152a9b338bed002f64257e1103cdaf9 Fix spelling error in Secret type documentation
  • e61c02852f059534cff4c369b4ece81fbd2d8120 Fix version check integration test (#2492)
  • ffbf3e2722dea818129b193b75e91e94b181454c Make cog_runtime warning more passive aggressive

- Go
Published by github-actions[bot] 10 months ago

cog - v0.16.2

Changelog

  • 23b93cc6f6db5cd64d39991b49b312be2dfc30e0 Add integration test for 3.13 base images (#2485)
  • 4af2e08c8bcdf2809965a9c578521ed81aad0205 Allow wheel >= 1 to be installed (#2481)
  • 19c5b31ff1d02236376ea572fb74070d62357707 Bump OpenCV (#2479)
  • 67d6e4323d5320313f5cdab43da1be30215e7032 Determine correct python version for compatibility (#2483)
  • 72dda0db6544b03a02a4f3b6865924617983eb04 Fix python 3.13 base image builds (#2482)
  • d4be027a347304aa1a78913f4904aa55861b1649 Install opencv related build packages (#2480)
  • e9584e3ce627d462fe40e5bd06cef77a7bb84295 Install pip/setuptools/wheel (#2478)

- Go
Published by github-actions[bot] 10 months ago

cog - v0.16.1

Changelog

  • 9d5593105fe45874fc3bb02fb1376ad7c9f1fe69 Deduplicate includes (#2470)
  • 79ce15778cd309279238cadcdc9898fa91149396 Fix-up cog init --x-pipelines (#2473)

- Go
Published by github-actions[bot] 10 months ago

cog - v0.16.0

Changelog

  • c40d9534542b9912b929dd06efe088caa76f961f Add warning for cog_runtime flag
  • 94f2a7d53270a30d0af49a7031fd8c8545a8367a Create CLAUDE.md (#2469)
  • 57a3feda493d38fea70775447c41084dccaa6acd Include cog login in error message (#2468)

- Go
Published by github-actions[bot] 10 months ago

cog - v0.15.11

Changelog

  • 52a64d21ad566db53ab8f1b6bca9bac582d17bf3 Add cog_runtime flag
  • 3108959d4c0c83e1a51d98cba0b931782c5aa9d4 Add doc on Optional
  • 097da31a25e26dde31add661cfcbbc237d4b7081 Fix torch compatibility matrix generation script (#2459)
  • 2c5cd3b4aea6ce9e129d863d4dfb460c6c7c68c6 Login to docker hub (#2443)
  • a6ff3c4da7a2dcfec427734b8070d4e7a3c78de0 Remove python 3.12 from older torch versions (#2455)
  • e2e78065bead7304f3726239a7edd11340abd4fc Remove sending dependencies in client (#2464)
  • 3209e4922b5295db09e5693a605731018fc88a63 Send back relative path in download (#2460)
  • 8c6ee90db825184e201acfea80bc5716f14cf040 clog cog-runtime

- Go
Published by github-actions[bot] 11 months ago

cog - v0.15.10

Changelog

  • 39583000c73f98911ae12aeeecb1e60411d4591e Add Torch 2.7.1 base images (#2438)
  • 91d7351f4b2b9ea5276573f1f200b09f2e90e323 Add torch 2.7.1 cuda 12.8 int test (#2449)
  • dc7bfae0e79c1c6873bf2a3d5a02f9e56192be47 Determine docker host via env then context (#2444)
  • bfe0c01c3e011be17c7e5652c37d5cf045cfdd56 Fix coglet stomping on cog installation (#2431)
  • 0a24824f1aecfe4600ff48ae8613160de3ed35c3 Fix torch vision compatibility matrix (#2448)
  • b16c1b075687137333e86125af5f655b8c3a2b71 Handle overriding docker host if required (#2436)
  • 93be60db5c3af288467eb96373ceb168e3d4bb2d Move to CDN for monobase matrix.json
  • 5f59cbcd94b2bf1a2079a66967318949c57c616e No cog base images (#2440)
  • 0d06f91e51e49cae376d91888ee8af3a63883057 Skip extra validation when generating base images (#2445)
  • fdd1fd86128e0b1213b8120042bf2b89c2a0b5e1 Support running pipelines locally (#2426)
  • 0bc917dd1619c8befa4778d10b10f5904b7b9914 change warn to debug, more logging (#2446)
  • 3e6d5e6b9117af96b414fc670fcbd372c90222d5 feat: add ability to skip files that already exist, overwrite or quit (#2430)
  • 138ec81a9a33c4ae556e730520799f2feaef7b33 feat: support cog init with pipeline template (#2437)
  • dbaf98192ac5065bcf4be3a4234aa1f413611625 fix: handle error messages better for cog push with pipelines (#2435)

- Go
Published by github-actions[bot] 11 months ago

cog - v0.15.9

Changelog

  • b737a7bb1fd72ac31a19840ac8769f10fc79d29f Add specific handling for pushing procedure with versions (#2421)
  • 7022b15a2b770409ca60cae949f644ab48efa41c Docker client fixes (#2419)
  • b6f67fc1f4ce5299f6b8e93cf62c1e98868f9700 Enable docker api client by default (#2417)
  • 414766d2d8296f22dac1a817039df418e91ddf8d Fix flakey integration tests (#2420)
  • 07f6a7833b5932222b7e46292ae9976f98164e05 move tty raw/restore outside stdin copy goroutine (#2424)

- Go
Published by github-actions[bot] 11 months ago

cog - v0.15.8

Changelog

  • a57a47d63cd8349d59f1f3a3b2fcf71d7f5d513f Skip analysing packages with @ (#2416)

- Go
Published by github-actions[bot] 12 months ago

cog - v0.15.7

Changelog

  • a433dddf60a561f24be0699fa1cee6ffb64bba83 Document the cog CLI (#2411)
  • 61cb550ec573f6adaf20b335d40be9d99da73205 Filter editable commands out of read requirements (#2414)
  • 0e0a0a58269816d624c06056bddec23695fe514e In event of error, check equality (#2415)

- Go
Published by github-actions[bot] 12 months ago

cog - v0.15.6

Changelog

  • 0df4c76bc3559a180976b3e9ea524a71280dcc37 Add futures annotations int test (#2405)
  • e7b086ce0253c2b909ce884a2997c95e5963aa10 Add support for fast build images in cog run (#2408)
  • 5df702ae08b4a804c373b020df1c578658f8e212 Fix FastAPI deprecation warnings by migrating to lifespan handlers (#2402)
  • 71ad986a1d2916053343c9a4485a1855e863842a Handle badly formatted data URIs in cog predict (#2409)
  • 997e02b61b2f0605f137a247d24a8d83d56ff0bf Handle tags at the end of images (#2401)
  • 0a4932002da0cfa8d203eaea2a60128e00c2ac91 Refactor cog predict to support --json flag (#2404)
  • c95dc88b8430ea3d568dddc8855afc6ecaee6f17 Send explicit error if no token supplied (#2406)

- Go
Published by github-actions[bot] 12 months ago

cog - v0.15.5

Changelog

  • 2c4ab6ce1d9db6bbe257f07bc7a4809b98a42d0c Support pulling to specific folders (#2397)
  • db0ab69f90074213fdf02344f898d23fa0c4f8f3 Use Python 3.13 in generated cog.yaml (#2376)

- Go
Published by github-actions[bot] 12 months ago

cog - v0.15.4

What's Changed

  • Check if token is empty by @8W9aG in https://github.com/replicate/cog/pull/2392
  • Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/replicate/cog/pull/2126
  • Add cog pull by @8W9aG in https://github.com/replicate/cog/pull/2386
  • Add telemetry to pull command by @8W9aG in https://github.com/replicate/cog/pull/2394
  • Create the tarballs directory before pushing by @8W9aG in https://github.com/replicate/cog/pull/2393
  • Add support for pulling draft sources by @8W9aG in https://github.com/replicate/cog/pull/2395

Full Changelog: https://github.com/replicate/cog/compare/v0.15.3...v0.15.4

- Go
Published by aron 12 months ago

cog - v0.15.3

Changelog

  • 70f567fb727dbe15a5051d1d15cb65380c026c63 Add integration test for python 3.13 (#2381)
  • 7426f9bbb3f9898e79397a71f3694291cf6c3d63 Remove CUDA 12.6 ubuntu 24.04 (#2387)
  • 267eaebf751db90e0a74594fcc06da976a111d86 Revert "Remove CUDA 12.6 ubuntu 24.04 (#2387)" (#2390)
  • c754874617b12844fbe9160bd8ab80829eb97065 Support os.PathLike output from models (#2388)

- Go
Published by github-actions[bot] 12 months ago

cog - v0.15.2

Changelog

  • 59dc987b1c85b1d9d667b0a51e5b6e42130753d4 Add checking of pipelines runtime requirements before pushing (#2375)
  • 72fc99da6c7a313620bca14f355ba4a6e1c14368 Another "known failure" error to allow in tests (#2379)
  • 96f6bb14e8c7c506d9bdd9dc4c26e487a11aef2f Bump github.com/google/go-containerregistry from 0.20.3 to 0.20.5 (#2364)
  • f2beead1453af8a7952558891525c98526593f90 Bump github.com/moby/buildkit from 0.21.1 to 0.22.0 (#2362)
  • e16056a5107d5fb59e9d16f7848d892495dcfd7a Bump golang.org/x/crypto from 0.37.0 to 0.38.0 (#2363)
  • 29b3aed9cdbebcc6d8f6225a19a4833cf78ef6c5 Fix flaky registry test (#2374)
  • 2f94961efc29efa43cf61a255e72f217110f7e07 Refactor PostNewPipeline to use Replicate public API (#2378)
  • 3f1e0551b0e0d72b3e821fb5dc485177fd53142d Remove 3.13 from torch 2.5.0 (#2380)

- Go
Published by github-actions[bot] 12 months ago

cog - v0.15.1

Changelog

  • e5c83e711270674f1a439147d3982ed00fb768e9 Add deprecated field to Input (#2360)
  • e22b83cacd619b1bc5d4fd1e7717ab3f5aaf6e03 Add docs for training classes (#2359)
  • d14363f5815cee4cb2f8c1258c9aaf2c692a9989 Add recent torch compatibility matrix (#2369)
  • 5264bb12d345ac735c40f8a6a21739a18bcbbb0d Allow comma separated versions in generate-matrix (#2371)
  • 6d742fb43966b768bfd10bdb02f82ee8ab320446 Fix issue filter valid torch versions (#2372)
  • 7a4a6b90d553a2b24c2eff57e5d30dd8bd5c01cd Generate model dependencies in build (#2358)
  • e28fdf10078809664d3ac7368998481bd28ac3c3 Improve project tooling (#2351)
  • 9cf961b13a34cc8f8207498b82b6f9193463f76e Only overwrite header if it doesn’t exist (#2366)
  • 2969c9cc6d401e92211e05c6217341fee68de661 Pass REPLICATEAPITOKEN to model via context (#2365)
  • 6d46d25a8d7f8005198791a2e98129b8e657e2d8 Test torch 2.7.0 cuda 12.6 works as a base image (#2373)
  • b23f3bd2547906fb25504af601b78079d7a1bdb8 Use libglx-mesa0 instead of libgl1-mesa-glx (#2370)
  • e77f5eea9d9217e4cd56266d49dd48441dbe2106 document input deprecation (#2367)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.15.0

Changelog

  • 63b6246296c0a0b0dbb92d8b7f9f642271f0621e Add integration test for setup run in trainer (#2342)
  • 92cf6a7424dfe828c24bb414a6154648c34f4b6b Add torch 2.5.0 CUDA 12.4.1 to matrix (#2350)
  • 52550a77c94501004dbe19f0b2e7065826c31b55 Annotate nullable values as such in the OpenAPI schema (#2316)
  • 79a6fa89ffcefb5ecf1d3dd29d4cd63edce258d6 Bump github.com/vbauerster/mpb/v8 from 8.9.1 to 8.10.1 (#2346)
  • da6bb15dc5cf35d519e4dddd8d2f6f99b4675e40 Bump golang.org/x/term from 0.31.0 to 0.32.0 (#2347)
  • f844888e601251bbb2bb23ca31ed7d306d73582b Call train function (#2343)
  • 88d8737c85a08d575b3124c2728cd9bbc10c5805 Make all instances of --x-fast use fast:true instead (#2354)
  • 7710952f9a6eefb6f8644fbeba4a6a882a537288 New Docker+Buildkit client (#2327)
  • 33eceaca114f03ed0f8918be91c7ce59ed42c2c5 Remove R8COGLETVERSION from ci (#2349)
  • 895a28f7ce13ce800e22c185d1e9c1b4e1589b6f Revert "Add torch 2.5.0 CUDA 12.4.1 to matrix (#2350)" (#2352)
  • 0f4cf3da809fc01738d551e30f274222b4a7fd7b Support kwargs predictors (#2345)
  • 98b42aeb9952708fa04e776ac7609d72bf8682d2 Support pipeline pushes (#2341)
  • b30b0de97afac6cb997355512e537a0bc16269ce Supporting changes for new docker client (#2344)
  • 499cf3749c53fad8ddd94b312a6d244ac41589b7 Write copy error to debug instead of error (#2348)
  • 37397b958c8ba0495884586eead4812f960c913f create a meta GHA job to assert test results (#2353)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.12

Changelog

  • 24f693ef9394ee0edd01941c49a2952959e77430 Add call_graph tool (#2334)
  • 833932a3c525bbfe4b681a71cdcc81b4f1470e71 Bump golang.org/x/sync from 0.13.0 to 0.14.0 (#2294)
  • 80b0fecbdafa93d4df918b5220b4a16df3987e71 Change stop to -t (#2338)
  • 8736f58ca6abf4d1a051a04ff5eabc81a9e843d9 Remove check for image before pushing (#2339)
  • 6cc97d55e4f93f391448f4f3d14688622debaf0a Stop printing the container ID at the end of cog predict (#2340)
  • 1a54157c814df9805c72eec7c1dd2f3e2096547f Toggle docker client using an env var (#2337)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.11

Changelog

  • 4c8b448264e3d269b286eb810ec77e831544c8ab Add OCI registry client (#2325)
  • f5bb1debedc65ab5a71a982b503a731646dd2c67 Add callout to move users towards fast-boots (#2322)
  • b92a10d1271711d42d11f05cf25cb042b8b10299 Add default CUDA versions to torch in fast boots (#2324)
  • 238012e68bf3edf68a7d46467a62af9b60791548 Bump golang.org/x/sys from 0.32.0 to 0.33.0 (#2296)
  • 63b1cc47fd85a7dfc819f96a52817e5854917989 Disable model checking with fast build (#2333)
  • dadc3352175081b5fb698127723264264c697127 Do not return an empty line (#2321)
  • da5c486e66c38755d7c51d56517f40dd72fd0cc4 Fix build output (#2312)
  • b437f0bcc639763b3de1bcfbb1c72956f82f8fa1 Fix keeping comments in yaml (#2332)
  • 3d5b4aa72667925eace68bf882d62e52ad59c134 Fix tensorflow not appearing for standard builds (#2326)
  • fea081690bdf3585104884383032410e0bf2f545 Introduce the concept of "context" to PredictionRequest (#2330)
  • 1ba7667c6b6999bc77d1b1d8d27729a145cfb3e9 Move container ops to command.Command (#2307)
  • dc7bcd0717273fa66a9cb848606d33cfa6828e8b Revert "Add callout to move users towards fast-boots (#2322)" (#2336)
  • 74cd239a48e7aa01457d84880ba8871c73c4642c add danfairs as a contributor for code (#2314)
  • a5fe8c68ab14fecb5e621426004fc0c014a28b6d enable build.fast in cog init template (#2310)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.10

Changelog

  • 7cdd08daa38e33800091fa217163c8e163e77afa Add environment variable for defining coglet version (#2315)
  • 276d37e98535e01d4ce407b1645c82b1296b88fc Add migrate logging (#2305)
  • 4f4b4e1da51ae50afb3c5c4826653ee7ac507663 Add support for lists of dicts in cog predict (#2317)
  • fa9cf0991e67ed8db261c09bd1f98b60b7771c0e Do not marshal python_requirements if it is empty (#2306)
  • 31421f06ff6458deae40014a9381a0fd2e96fea3 Do not show option to change code if code is equal (#2309)
  • 3f919d75322f66f5c59084e1208b5cd757dde500 Handle comments when migrating yaml (#2308)
  • 889637202e0f71aeb970aa3501b7aae100cd19f3 Send the migration status’s into the log (#2311)
  • 46820859e6811d31e4c2e36d8e9e817e043bcefb Update all integration tests to use the cog_binary fixture (#2304)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.9

Changelog

  • 7b0d5f1982d531a14cc576faacca786ccc291ea7 Add new version log (#2303)
  • e7551cc8754d44d8e5f89fcf5db7977c7379e047 Add other pget run variants to migration script (#2298)
  • bfbdf0dd0832892725b178db4e9c3f41846447a8 Add test for cog migration with GPU (#2301)
  • 07a9d01a226a388569d51a51ec62a1e9c2e7109c Build the image on predict in fast boots (#2300)
  • 642c0eec7051d2cd689fcb3ce76b883419674b31 Environment variables in cog.yaml (#2274)
  • b5eff1955879b8097712e7601e8ef8148d5addfe Pin coglet verison in CI
  • 52180a4ce74eb18eee531350fb8164dba29b0f05 move docker.Build to command.Command (#2293)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.8

Changelog

  • e01c1dcfcb1f529843d35ab05496a461afa00da2 Add .python-version to .dockerignore
  • d5300945755fa96429c4c153931af5d85f7f3ac4 Add cog migrate command (#2290)
  • cbb00e0d7dbec4a66cb0f124102fec5c100627a6 Add —config to allow the user to specify the config (#2291)
  • db4d7f27a458e25801069c62d9fb302c3a2c5993 Bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.74.1 to 1.79.2
  • 4d92f80d83b0bab0cd5d07f93091ba808183304a Bump github.com/go-git/go-git/v5 from 5.12.0 to 5.13.0
  • a814c84748a3a45b84100b6a1fdeeb3d34f03548 Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.2
  • fcc1e5e93a54afad4fbc74f0fbcf713ebcca9e12 Bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2
  • cc937e874c1936ffd3affb2d6db61b62d2f6ad93 Handle cog predict lists (#2272)
  • 9cd3059541497d96822c94d679ee930e1b6727b6 Log cog build/push functions (#2289)
  • 2ce4fed06d28021d56bba988cf8dcdb41b595aaf Prevent pydantic 2 clobbering (#2273)
  • c505da20368ee5bc87bcbd672ee08e755121a971 Propagate context.Context to build logic (#2287)
  • 28411cf709feacb03a6fff0cb8c571399151aa45 Replace docker.Xxx helpers with functions on command.Command (#2288)
  • 5b547d25f92ea49a7e20611a4892f6fa97666bbb Upgrade Go to 1.24 (#2282)
  • 497a8d66c6e88a68a9e5739fd1e040e97038cda1 fix: Requirements format parser (#2292)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.7

Changelog

  • 738ad3d909f3110d6662cf16ca08ebfd1bdc0569 Disable provenance attestations (#2265)
  • b000c7326767854ba7cc240ab0a1d05a4d6a9443 Fix install requires packaging (#2266)
  • d07a4ff879774a8aad96af5612aea84f0716977b Make src bind readwrite (#2268)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.6

Changelog

  • b07ab054e6bfdc4c8153e1e16cb4ffd1c4842d71 Add complex types to cog predict (#2261)
  • 8365f0ee942068bf26186d628238b780c6d229f6 Add python_overrides (#2264)
  • 1ec6297b32189ec11057a2ad4141ec80984df5a7 Fix overwriting /bin (#2262)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.5

Changelog

  • beba0424aba813033c1d03eeb3bae9f3d17a5be7 Add empty namespace package for cog.ext (#2246)
  • 55da7b78783c68587f3db0dfd2c7aa9cc3a31708 Fix installing local whl files in fast push (#2260)
  • 24dde7e1f9857a368a97695a8b7cb093d7c22d4f Fix tar overwriting symlink directories (#2259)
  • bfd7ac96d903b1d4041af9df47fad2c844e05839 Prevent Optional Input Types from being required (#2258)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.4

Changelog

  • a4bac6e88c2f29158c5145358cb9550d241e34b4 Add a config option to enable fast builds (#2222)
  • 05deb6497455c37712be4322f056f1aa54ae002c Add local image flag for fast context loading (#2236)
  • ccd279e06eea2e162e45470659f60557db5d75f5 Add more data to error strings (#2228)
  • 87bfb41155a82cae5d868943db9c25c94811a949 Allow pathlib.Path and descendants as uploadables (#2235)
  • 9636afee1fbc90e474cfcca470691e1ff836c22c Allow fast as a build property in cog.yaml (#2244)
  • 4ce6fb90b3812d46b753413e5dc4b3b689ba5785 Configure uv + misc fixes while setting up a new dev environment (#2233)
  • f325711d79d21f416776cc8779e64236634c5dc1 Create scanner for removing comments and continuations (#2230)
  • ba0c5525a0d8c5de5f5872b2df15484d1b683b66 Disallow Python 3.8 for fast-push
  • 6a846cc503cc3989f7a01a4b183c722486c1c8dc Fix pre-upload call (#2231)
  • f9948744f7558ee8ca328f6ead9dbce7ec05c570 Hit pre-upload route as part of monobeam uploads (#2204)
  • a8aa0115a464971a3b933752d9325aa8a5624745 Remove checks for static schema (#2232)
  • 160ac457fd632bd00d3a3e2e3445668b6e4c4c53 Support UnionTypes in Optional check (#2224)
  • 4787a641f393ab06f88ba26a9e7c637b97da4fe5 update cog init to use requirements.txt (#2242)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.3

Changelog

  • 994b2f3fc83df8be49037e5f347a912648b443f5 Allow cancelation on async models
  • 38d34ece03aec563b87ef13e62a457410cc8618a Support Optional in Input (#2216)
  • f943b684a91fd743276d72a2e3f3901327585bf1 Tweak new concurrency docs (#2205)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.2

Changelog

  • cbb4517402b1ccd61edd4b94fc8380f112efda37 Add documentation for concurrency support
  • 63c62870e6500be4caf84ace032f83a9bacce0b0 Check that dockerignore is compatibile with cog (#2210)
  • 1ccc20b6a736a305b0001b46a8be89aef220c0ab Fix conditional on util package (#2207)
  • e75aee73ec0c9815cab874765c66b2e918bd2200 Remove tests from fast-build cog.yaml (#2202)
  • f8997dc8d8362f2f674a64feb6e8d27f37cc656e Revert "Support Python requirements package[extra,...]==version (#2160)"
  • 06191ce9f3d2c36e986b85a9f54ff6028b7ba59e Skip weights that are ignored in dockerignore (#2213)
  • edd038500be8fdcaaee18691f3a65e620e7320f9 Warn the user when they use deprecated fields (#2203)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.1

Changelog

  • 9a05507f89d40e069ca71b63e3b08e918a6696f0 Make progress bar more pretty (#2198)
  • 955912d1fe2e51e34d4d9136fb9aee94c1e62f0b Support pulling monobase in macOS (#2197)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.14.0

Changelog

  • efad169ea7bc6113cd7d19c3a429ae4f6690b9ac Add a simple explanation for the standard predictor (#2187)
  • 7b97da533e9351e1e4a363c545e30662b145f345 Add fast pusher for fast builds (#2114)
  • 8a6fa4cd9efb57a2793251fb50520a07c38ed4fc Add multi progress bar to uploads (#2134)
  • ecbe1783962a396c784a6fd91d0da73f662a29e0 Add upload and verification to the fast pusher (#2128)
  • 663c37503cdeddd34a53ca23b83ae3621cd9684d Build framework for file challenge (#2175)
  • f99ef7354bbbb7f38544b7f7c56879b1182654d5 Bump github.com/golangci/golangci-lint from 1.62.2 to 1.64.2
  • 6f55fdd8e260c8fc7e9cdabd8f5cf308eb76c626 Call the web when layers have been pushed (#2139)
  • 18a3e90fe4fb4378ddab5d85fff5eb62c3f6f323 Capture standard output when loading the predictor
  • 85658ae1314e558c05aecf15a01b0f818ee6cdae Change ffmpeg int test to 3.12 (#2131)
  • 9fe30d71e3025fffd063307233f4e3ad4a422cb0 Check version formats in fast_generator (#2129)
  • c95774f18b8df6f6a7b841be1900153ca04a57ad Create multipart uploader for fast push (#2135)
  • 59545ccf89db80f9d2cb059191ce4233c83ff2a4 Enforce usage of r8.im image name (#2146)
  • b3713a688fbe95581c8ad5cb87577209cc3e8e03 Fail python_packages on --x-fast (#2162)
  • 552a0cc5f8660941103abd64dfba50336f3d8852 Fast Push Fixes (#2133)
  • 3f0d7c9cb101e63c1d6f6e77d2c16ad42485b386 Fix fast tarball tmp dir (#2194)
  • 0e36b612949619585edbae6abe86982846adc5fd Fix file too long on tmp file create (#2132)
  • 1247b483425ee73ef9dcaa2ba7e861934cb5dbf6 Fix monobeam client not authenticating properly (#2148)
  • 018aca50f9d9d43ff784f1ea239c7cede72dc7c0 Fix path for weights in symlink (#2172)
  • c245552ad1e1904681f77a9dd50f57cfc8b44557 Freeze user layer only for fast builds (#2165)
  • e7e042cfba31ee2701f56c05e98539afe8d61f01 Handle URL Path in cog predict
  • 61d9b8d6b8426f77fad231f735f4ed29309097e3 Handle weights moved to subdir (#2191)
  • e12f2374827d64a3e3b90c96436bddf8963eda58 Include sha256: prefix in generated runtime config files (#2153)
  • 80d2a273050de720afdf03c972f361c62893771c Move fast push test to cog-runtime (#2181)
  • 3ab642a3e9b634a235ba2d95fb36e0305818222a Propagate R8COGVERSION on fast push (#2166)
  • e0e8b6791e368a009c024cafb471670c1756f189 Pull monobase:latest before building fast model
  • 425715c0b71009ce1158de02e7639da67cfd5813 Remove COGEAGERIMPORTS from fast path
  • c417cec53fc4471fbdbe3756bb736029cc744ca3 Remove COGPYENVPATH from fast path
  • 2a0763ac6342513fc40c174e63b0dc37ff562a77 Remove deprecated interfaces Predictor.log and emit_metric
  • 94bd7be1a063db70383cd9f420750fed54ad652c Require a test to be added for fast push (#2149)
  • a0859095f600b691c667b7238e3d09052115bfae Revert "Handle URL Path in cog predict"
  • 0c6c0bed2457f49e684d842f9bc82a16f9b5494c Send push timings to the server (#2152)
  • e27d743a53de166d59c6deb510a21a0d96b7d933 Separate tmp mounts for fast layers (#2182)
  • bc4b95e070b271e06d796d335986791908271fd0 Support Python requirements package[extra,...]==version (#2160)
  • a27eb98f0a748b896db9258b174b8869b12bc81b Tweak fast build cache and file exposure (#2188)
  • cca8874bdf5ca5c6018422d469461ca343ee161f Update API endpoint in accordance with new name (#2151)
  • b49e4057a7698a8c368d1c2eb3425434aa418ea4 Update CDN URL (#2161)
  • 06016884334c9e13fb0d1f43abe5cd2f9dc2e069 Update ruff config so lint works again (#2173)
  • 8cfd9e15e33a5bc2d1d4ab76e7c1ce9fc81edb84 Update training.md
  • aed8fe0c096077a8ec5a17029a2bde580590e402 Use coglet in fast_generator (#2130)
  • d13973b92893c0a141163589ad290db151dc19f0 Validate config by checking the run commands (#2147)
  • 1a1853f1b88d458594ef03671af15356b63ef9fd add llms.txt (#2120)
  • 637614cfb33d498523cb539c1d6973c24e47c1a1 simplify llms.txt generation (#2123)
  • 9f74e7d997d6a4978e8226471aef3f34f13c9bfb update token config in cog init actions workflow template (#2192)

- Go
Published by github-actions[bot] about 1 year ago

cog - v0.13.7

Changelog

  • 6eb2d2ea1a9ba3d96ba1dbe12ff9c3b2b08b388e Add a cog integration test for apt-packages (#2104)
  • 9efb30691947bdcdad734dc5b46e27dcb63616e2 Add fast generator for cog build (#2108)
  • 60017a92ed0e15d8e048fe0552e802bb214827b7 Add test for ffmpeg in base images (#2122)
  • 2f12ead687006d087dd229e354fc8fbe0b9cf574 Avoid warnings
  • 8dac4059ee443bc687c69bc4000fe2f079fff6c6 Be explicit about the Python version we're expecting in tests
  • b7aa7c320ddff8b2cbc247e5d1a367535f76eb4d Fix pydantic2 cog builds (#2115)
  • 97d749f2ff9d3f98ddfbadae37279220daabc52a Increase nofile limit for tests
  • 100784903827cbace7c2142ff378b6b4037d95e3 Move tagvar to Scope
  • cb78a0f0d6c3aabbdb63b61fb1b899085e8fa4d9 Officially mark Cog as supporting Python 3.13
  • ba1d4c2cc8727b07980e66ac4897cd6fc205f47f Only add webp to mimetypes on old Pythons
  • e2ad2a4e1b67e00f976d9229922e86c36d0a2df8 Pin ruff to 0.9.1 and reformat
  • b1c9188036742a27a77ae6ad50e6dc4256754228 Update color of dark mode website
  • a36b42f9ac2d65ab355d1bb8f75e207ef9d18208 Update fastapi requirement from <0.99.0,>=0.75.2 to >=0.75.2,<0.116.0 (#1966)
  • 85b85bfeaec2e71907c3dcb036108c2d5ef60145 chore: fix some comments
  • d04f127b8157eeae389bb5376f2cd420b08c2612 convert Scope to attrs.frozen

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.14.0-alpha1

Support for concurrent predictions

This release introduces support for concurrent processing of predictions through the use of an async predict function.

To enable the feature add the new concurrency.max entry to your cog.yaml file:

concurrency: max: 32

And update your predictor to use the async def predict syntax:

```python class Predictor(BasePredictor): async def setup(self) -> None: print("async setup is also supported...")

async def predict(self) -> str:
    print("async predict");
    return "hello world";

```

Cog will now process up to 32 predictions simultaneously, once at capacity subsequent predictions will return a 409 HTTP response.

Iterators

If your model is currently using Iterator or ConcatenateIterator it will need to be updated to use AsyncIterator or AsyncConcatenateIterator respectively.

```python from cog import AsyncConcatenateIterator, BasePredictor

class Predict(BasePredictor): async def predict(self) -> AsyncConcatenateIterator[str]: for fruit in ["apple", "banana", "orange"]: yield fruit ```

Migrating from 0.10.0a

An earlier fork of cog with concurrency support was published under the 0.10.0a release channel. This is now unsupported and will receive no further updates. There are some breaking changes in the API that will be introduced with the release of the 0.14.0 beta. This alpha release is backwards compatible and you will see deprecation warnings when calling the deprecated functions.

  • emit_metric(name, value) - this has been replaced by current_scope().record_metric(name, value)

[!NOTE] Note that the use of current_scope is still experimental and will output warnings to the console. To suppress these you can ignore the ExperimentalFeatureWarning: python import warnings from cog import ExperimentalFeatureWarning warnings.filterwarnings("ignore", category=ExperimentalFeatureWarning)

Known limitations

  • An async setup method cannot be used without an async predict method. Supported combinations are: sync setup/sync predict, async setup/async predict and sync setup/async predict.
  • File uploads will block the event loop. If your model outputs File or Path types these will currently block the event loop. This may be an issue for large file outputs and will be fixed in a future release.

Other Changes

  • Change torch vision to 0.20.0 for torch 2.5.0 cpu by @8W9aG in https://github.com/replicate/cog/pull/2074
  • Ignore files within a .git directory by @8W9aG in https://github.com/replicate/cog/pull/2087
  • Add fast build flag to cog by @8W9aG in https://github.com/replicate/cog/pull/2086
  • Make dockerfile generators abstract by @8W9aG in https://github.com/replicate/cog/pull/2088
  • Do not run a separate python install stage by @8W9aG in https://github.com/replicate/cog/pull/2094

Full Changelog: https://github.com/replicate/cog/compare/v0.13.6...v0.14.0-alpha1

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.10.0-alpha27

Changelog

  • 32c7408b22592fbb80e0320b3b922498672b0994 fix GHA

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.13.6

Changelog

  • 8e9e53e54af491d28510960a70e64070669d4a31 Remove duplicate 3.10 python version (#2073)
  • 960b0e478d1f7f1f2faafffa3f8883eabf34e5ad Remove python 3.13 from torch compatibility (#2072)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.13.3

This release includes an important bug fix around usage of requests to include explicit connection timeouts. Other changes include tidying related to the removal of python 3.7 support, adding the output of pip freeze as a docker image label, and some groundwork towards supporting concurrent predictions.

Changelog

  • 8e1091fbfdd7501adac1446c5a1528652c2b6582 Add lock to subscribers dictionary
  • 3d9c298e708f3bbaa9be7e371f6a03304c598d3a Add pip freeze to docker label (#2062)
  • 3e56e59ae66693883de1ff64c23627017ce9cf46 Always set timeout on requests (#2064)
  • 746ec5359a82f57a005bfcd8114db683bc666d00 Fix flake on testpathtemporaryfilesare_removed (#2059)
  • 2bc4710d91f8f767348176bbe6fb17adc316f08b Make TestWorkerState aware of prediction tags
  • 425d5a21e9db77cfca81cb4482747ea2ff52ea30 More python 3.7 tidying (#2063)
  • 8630036164c948b5c9bcf0cbdd4ba0415e36f396 PR feedback
  • 9c894d668224dfa87bd136da94f5ba4e5cd388b7 Update Worker to support concurrent predictions
  • cf0f8b26c053b70c59e7253a3b38eb8e543baaac Update python/cog/server/worker.py
  • db1cbef6d1c09643ce94692f0ee97c15fb633b3a make clear why we read the PredictionInput childworker event
  • 5f6a742ee689f46fd2c01c8dd1897c05a644d441 update TestWorkerState to support concurrent subscribers

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.13.2

Changelog

  • d714a7011724acb16ec71ce5c134b634b1a51ce3 Add ability to wait for an environment (#1957)
  • 465afe1379b35fbeeff2bac14bf714a3d3e4bbb1 Add environment variable backed properties to config (#2051)
  • c02a2b3d9556b9500abb25f3139271d3ff847736 Add integration test for multiprocessing usage (#2046)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.13.1

Changelog

  • e46c4f3a97fa68ec5fffe6c8377c58a72fa9c518 Add serve command (#2040)
  • 23aac48f0971e6a36b401073da43f1606e292826 Tag worker events with prediction (#2020)
  • 966af5130d65c4566ba1abfcc320f9350baafd11 Use a scope contextvar to to record metrics during a prediction
  • 5d58a9c1156b1dcee99a2743f82e54147b39a6a4 drop python 3.7 from tox.ini (#2048)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.13.0

Changelog

  • 4de7f61b2051dbf84132dc123bb83131705d4b99 Add Config class (#2042)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.12.1

Changelog

  • 3e0dc7900c9f1db4f8e4fa16cd2e9493ce61f1e8 Add version and more URLs to index document (#2029)
  • 5f815439686fb7a374a8440e017db0ec3f63f3db Tidy up build (#2045)
  • 94b71b8957b6d8f82d7af7de89077e83bc573d6f Use correct mime package in input.go (#2044)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.12.0

Changelog

  • 5e2218fe708a5f22bae63cf9e074225d03db23cd Add Setup Logging (#2018)
  • 5c1908f426786d6bafa9be7fdf077a1d556e1046 Add integration tests around stream redirection (#2027)
  • 2781f5cfc985c1f64b2550191349ecd5b421964e Add local ignore for integration test fixture outputs (#2039)
  • a5759db7b1b5dc5225e3479ba660600e595c08e3 Downgrade typing-extensions to fix conflict with spacy and pydantic (#2033)
  • f8e34613c851619b73152e72507c78e71f182279 Drop python 3.7 from test matrix (#2028)
  • 7a9d6948c713250fe6f1a0554a8dc61352990d8a Manually patch CuDNN in cuda base images index (#2036)
  • 5eb31ff8e3956da4aa72af85937d4dce4b8d476b Support async predictors (✨ again ✨) (#2025)
  • eb04c7b2048b44c00c84d55a8980d909b881b345 Update section in CONTRIBUTING about release tags (#2038)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.11.6

Changelog

  • 8333a832a62902294aa92ae3b9cc9ca9c64e9278 Revert "Support async predictors (#2010)" (#2022)

This reverts a change introduced in v0.11.5 to begin supporting async predict functions. The changes to how output redirection is handled broke a subset of models that started subprocesses during setup which then used stdout and/or stderr at predict time.

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.11.5

Changelog

  • a8e138f585bf2e47f55b700af81d764afa9a25ee Bump version constraint for typing-constraints (#2019)
  • fe9b1f57389997d371509d5a02dc44eb5cf792fa Make cog train call trainings endpoint (#2013)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.11.4

Changelog

  • b62fd84cb71918dc401868b44a5608d7ee29c8e6 Bump goreleaser now we're on 1.23
  • de93023b33f1a6651fec12639bb205ebdbff92ee Fix no COG_WHEEL in Make (#2012)
  • 6190a84a61348fa68180c9d4860ed0e7dc61089e Include all documentation in table of contents
  • 4230d4a8322610b0e35a13a596eda406831ab9d1 Set up Go for lint task
  • a86adcda6d511723bbe55f06555ffce8095fd6ac Support async predictors (#2010)
  • 176e123508275d8788103775ba18e41635ec36d2 Support more cases in code_xforms (#1996)
  • 0d38e9aa55b5f1363aea8e85f59865947d6a5ce2 Upgrade golangci-lint and address new warnings...
  • 2c321022c093c79c0adb90d50eafcaa1dc3640ea Upgrade to Go 1.23
  • 2f139d2c6135f99059827183b2442a8d1ce7203e fix typo
  • c08cc90c394f8ffedfd96250d6f6b0d4f8c1e2c8 fix typos
  • 3c9b06bf5ab315a7da4799ba4e87339b529ca24e fix typos
  • 72d7d50fdc987a601ab617c2910a11af784be6b4 update .all-contributorsrc [skip ci]
  • 88a56e8c7728160908bbb65a423bb7e2325dcf6d update README.md [skip ci]

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.10.0-alpha25

Changelog

  • 426b112452b8000f5732c84b5e7b15f14f4ed4d5 Provide User-Agent and Accept headers in URLFile requests (#2011)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.11.3

What's Changed

  • Explain NAME_UNKNOWN error on failed cog push by @mattt in https://github.com/replicate/cog/pull/1844
  • Fix cog not installing itself over present installation by @8W9aG in https://github.com/replicate/cog/pull/2001

This release fixes a bug in the last few releases of cog (that we mistakenly thought we'd fixed in 0.9.25) which resulted in a broken version of cog built into the images output by cog build.

Full Changelog: https://github.com/replicate/cog/compare/v0.11.1...v0.11.3

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.10.0-alpha24

Changelog

  • a60d1516bddc96c266edf20d7e2fa908518c36b6 Add .envrc for asdf
  • 2dcdf643deae050cf86a28a6a0a11b3bbdfec4ff Add dotenvifexists to .envrc
  • 12d5a4cf84272a2c4e395f23751a80cc49f7eda8 Add support for image/webp to mimetypes package (#2002)
  • 9cb5f3539466c24f50210b66b464d35a923d3d6a Propagate the name attribute of URLFile across serializers (#2000)
  • b710b33e7d4c3763f183eda458ba27745dd3fce1 direnv: use layout python to automatically use venv (#1970)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.10.0-alpha23

Changelog

  • 3805e2e5578ca84e1a5cfd459e6dc0be8558e7ed Support custom filename to be provided to URLFile (#1997)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.10.0-alpha22

Changelog

  • 3edefe40c2b5e6a1329fb8e9199f1e7156b3bf76 Fix type annotations in Input
  • 05a13bfa8a822bff4bd2fad0287822316c12b010 Validate url passed to URLFile conforms to HTTP protocol
  • b29c93c37dea8adadbf77a4f4aaf17124590e84b [async] Support URLFile in the upload_file function (#1987)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.11.1

Changelog

  • 269244795e85d2ac18b7c5f3c2eed48d05eec945 Choices for Str not just list
  • a6219fab5e5f480b5aa5b59a189c2e3c03c2199d Add support for Pydantic 2 (#1858)
  • ed7cc8916c5c9a7f9623b090fcdf3ae7471df718 Fail prediction on unhandled error (#1981)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.11.0-alpha1

Changelog

  • a6219fab5e5f480b5aa5b59a189c2e3c03c2199d Add support for Pydantic 2 (#1858)
  • ed7cc8916c5c9a7f9623b090fcdf3ae7471df718 Fail prediction on unhandled error (#1981)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.9.26

Changelog

  • 20c13d70edeb4137e88df3c8c9bcb404dc9b61b8 Fix deprecated snapshot.name_template
  • 135599f2090a760659113094c8eb254de82d8a2c Prefix server errors with Cog: (#1980)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.9.25

This release includes fixes for running cog build on GitHub Actions, and improvements to the experience if you accidentally paste a Replicate API token (rather than a CLI auth token) into cog login.

~This release also ensures that the correct version of cog is installed into the built image when using Cog base images (the default).~ (This bug wasn't actually fixed in this release, and is finally fixed in v0.11.2.)

Changelog

  • 15b50008468d002381958221cb06c0c3bc89f84f Add dotenvifexists to .envrc
  • be927af411e0917dead6e2cb8ec6ac3397f3c8c0 Don't accept Replicate API tokens for CLI login
  • cfa064a5983cd488f0ddf59c3a7895c3ac54538c Install cog when using base images (#1973)
  • fcb3c3c924d54fd7cabdaa482fbe72894afae614 Look up git metadata via GitHub env vars when available (#1974)
  • 574bdc7bdff1798a870ad29022d9352131db724a direnv: use layout python to automatically use venv (#1970)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.9.24

This release includes a fix for a bug present in v0.9.21 and v0.9.23.

The bug affected models that ran subprocesses, and could cause those subprocesses to fail with a broken pipe. The fix is in #1969.

Changelog

  • f0011cc8c089359abe4c0f673f18a05ff965e795 Add Precompile Build Flag (#1940)
  • 3adf48b15acfefbd5fc7d92af77fd06d811fb177 Add mount caches to pip installs (#1944)
  • dbfa22f62ee6262927965ec379e20490d36d57bb Add timeout flag to predict (#1879)
  • 45d7d2deb4f4845a14acc6cf0f2e32346c3454a4 Don't unwrap and re-wrap streams (#1969)
  • 00881a177441547e5f1b94b2c3bb183e80300d10 Fix generator test (#1964)
  • 6ca089f0f19184c273f3ac08eb6675bf634f2415 Fix memory leak
  • 03b40779acdcd8764b4bacc6d709593272b3a45a Install apt packages before pip packages (#1954)
  • f76e4d570b9f10908cd57255e132cfdd3ebce6ef Revert "Handle predictors with deferred annotations (#1772)" (#1918)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.9.23

[!IMPORTANT]
This release includes changes from the previous tag, v0.9.22, which doesn't have a corresponding release.

What's Changed

  • fix code block in deploy.md by @mguida22 in https://github.com/replicate/cog/pull/1941
  • Add test against -march by @8W9aG in https://github.com/replicate/cog/pull/1938
  • Rebuild ld cache in build by @8W9aG in https://github.com/replicate/cog/pull/1903
  • Fix openapi schema by @philandstuff in https://github.com/replicate/cog/pull/1947

New Contributors

  • @mguida22 made their first contribution in https://github.com/replicate/cog/pull/1941

Full Changelog: https://github.com/replicate/cog/compare/v0.9.21...v0.9.23

Changelog

  • 6da017cf135ffb78a60ae12b57094614b44d19d8 Pin goreleaser to v2.2.0 to avoid pulling in go 1.23 (#1953)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.9.21

Changelog

  • b1a616a0ebec30e02ec18123a4cf5d7ae869a692 Add Cython CFLAGS for package optimizations (#1904)
  • b76869f92250650c066c2c0f579f0f4532715a42 Add Torchvision and Torchaudio to base images (#1897)
  • 227503ef1ba0b7b963190c43fb1ae6866744b86d Add direct link to python in root (#1907)
  • dc0959e01fce1885df4d6a0202feb428615e144c Add findutils to base image (#1909)
  • 9b7adc5d1f39202636c95e38cdddd5413454968a Add new base images for torch 2.4.0 (#1893)
  • 26208388bff2f9a97c1eef18fc3cdb0acd9f8662 Add strip to cog builds (#1902)
  • e7a8f05ec23c9d4bfb4adddc15f3ab44ae64da03 Add zstd to base image packages (#1905)
  • c990866502c2a1e1a630cb847a36eae62ba41411 Allow filtering the generated matrix (#1927)
  • 804720d4e0105339841cc4df0e2d1c728b1378ee Bump github.com/docker/cli (#1930)
  • 506954b0032642829244545f6906ce67daf4203c Bump github.com/google/go-containerregistry from 0.20.1 to 0.20.2 (#1869)
  • e941b2054956579c163d9d38d814a627c4be0a4f Bump golang.org/x/sys from 0.22.0 to 0.25.0 (#1931)
  • 0125bd6cb42fe4d5c1c4622a8eff3e03a97b2866 Bump golang.org/x/term from 0.22.0 to 0.24.0 (#1933)
  • 26093c0ead817747c46a0cca3f94e22046cd3859 Clarify default install directory (#1912)
  • 35893d71ffe07a401ee54c01bc25a190b26db3e1 Deduplicate worker tests
  • 1d1daf663491d4b4dc476484d05d213497e1d597 Fix generating matrix with all CPU torches (#1913)
  • 1be003084c60c6edad254b8609abd41cf4f5d5a9 Fix test build integration test (#1926)
  • 52c8768802a91f641582c3765f4579c7c15ea19c Generate optimized python binaries with pyenv (#1900)
  • 8832fb1d88d892e3fe1eca3188a3cdba3698dea1 Install opencv without python in base images (#1910)
  • 6c776209463b261000d80bc64165c505a635a7b2 Make StreamRedirector a context manager
  • 39b44863a76150f03230e5f56c4be44b94039c4b Make TestWorkerState deterministic
  • 21ad75c14b9e283bf2ae748edeb90fcb57189e38 Make cancelation test less flaky
  • c2c658a92a9c745c25e4c717fa26c7cd99df1b89 Provide child worker directly to worker constructor
  • 9aeb4d950465c6319998b638205c7a0fdd4398c0 Remove -march native cflags (#1935)
  • 39b6d5644080de455548b167b419da14c12d2afd Remove build base images job (#1923)
  • 8c50fea2ffb72e9c7dfe0cb86e11c41e7105fe22 Remove run_prediction
  • 2394064eb41e7ef48be942adc21949fcd12e79f4 Set useCogBaseImage to false in base-image (#1892)
  • b4b028b8b984705913b295ead92442fd57b5ee09 Simplify TestWorkerState
  • ee6fce0bcccff051c1ab7aafb82aba9f44d2be21 Support torch 2.4.1 (#1929)
  • 1a58942c3023087923bce70eeed2eba68ac15d0f Support torch patch base images (#1894)

- Go
Published by github-actions[bot] over 1 year ago

cog - v0.9.20

Changelog

  • 62f6d413a22d6c1b91dfef9179a585715730c906 Add Python 3.7 back to supported versions
  • 8dcd976a5f0c7b52f9478ba4fe2be6a9780b870a Add pytest-timeout and configure a 10s test timeout
  • 6028963c1fafc24c702376a12e21ed677fa1a616 Fallback to regular if cog base image can't be determined and flag is not explicitly set (#1872)
  • 07cd53b6231d57bf97e15a908b511a7a51a9de49 Handle CUDA version modifiers on torch (#1876)
  • 44fb829b2904fdebf848da4e66dd9ed0ef3d4692 Publish on tag push rather than release
  • 2afc58ea3c83c1a904e7c12e8c730d73f8dd5b3a Support Literal in Python 3.7
  • 4ebed5315c2ac85a526a443084a5b93b40fea30e Support removing input files in Python 3.7
  • d3a9c174a950fe2949071033e972da51f3dac629 Use tox to run Python tests

- Go
Published by github-actions[bot] almost 2 years ago

cog - v0.9.19

Changelog

  • b6c852a4a78ee74502b7cf64c79b08bcb934c35a Allow manual trigger for PyPI release
  • f85ec073ced1bc91baef7231f56a11ad1bea0307 Bind optional Futures at init
  • 2726dc7498f71a63b32d1db0cf3f00ade8e0a551 Clarify conditions for public release job
  • 6d7580d611806548cafec40716de951bd5f25f9c Merge create_predict_task into PredictTask.__init__
  • a1213bc03b1b85066784dd9349f5f36bde66dd0e Only send the "start" webhook when we start tracking a prediction

- Go
Published by github-actions[bot] almost 2 years ago

cog - v0.9.18

Changelog

  • 40b61903c67bb74678f36685f1153e8b9f3ef808 Fix goreleaser archive format

- Go
Published by github-actions[bot] almost 2 years ago

cog - v0.9.16

Changelog

  • cf547dd112b21dfe54f90b8033b548552653e27c Bump github.com/getkin/kin-openapi from 0.126.0 to 0.127.0 (#1850)
  • 2a5d7769a5f9e488c5c769c92312e3bee3db6d7b Bump goreleaser/goreleaser-action from 4 to 6 (#1766)
  • 4cbd8ce4ef4ae4787202214daf9045155fc25211 Bump pyright to 1.1.375
  • 66e4f878d59d7ca9558a17bd0ee05b2b53c37329 Check release tag (#1859)
  • 0b48c8fda0f671e9497cab6f09c25b53e715d370 Fix a multithreading bug related to numpy import
  • 01f9b5605d85c0578daba8c4bf171d95207a56b9 Fix async prediction tests
  • 1463d7743ae03a17c748f5ab4cf423aed0a57049 Fix streamredirectorrace_condition test
  • 501d3ecbd8e44f0829edba141737d73b87fbf50a Ignore git files everywhere in .dockerignore (#1861)
  • c889973eb7ee3bcc07df42670f8c067f05a1ddd2 Make Worker interface non-blocking
  • fee960f878b6043b32a06bcf34ab7dc9ed9b25f3 Set ruff's src config option
  • e4f0efde9acf97c760f9fb482f6dabc867b22830 Simplify PredictionRunner

- Go
Published by github-actions[bot] almost 2 years ago

cog - v0.9.15

What's Changed

  • Extract release process into separate workflow by @mattt in https://github.com/replicate/cog/pull/1839
  • Update README with working combination of Python and Torch by @mattt in https://github.com/replicate/cog/pull/1846
  • Revert "Ping the docker daemon to check if it is up (#1838)" by @8W9aG in https://github.com/replicate/cog/pull/1852

Full Changelog: https://github.com/replicate/cog/compare/v0.9.14...v0.9.15

- Go
Published by 8W9aG almost 2 years ago

cog - v0.10.0-alpha21

What's Changed

  • move runner terminate into runner shutdown after waiting for predictions to ocmplete @technillogue in https://github.com/replicate/cog/pull/1843

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha20...v0.10.0-alpha21

- Go
Published by technillogue almost 2 years ago

cog - v0.9.14

What's Changed

  • Make install docker friendly by @8W9aG in https://github.com/replicate/cog/pull/1830
  • Resolve or ignore Ruff and Pylint warnings by @mattt in https://github.com/replicate/cog/pull/1825
  • Fix cog base layer hash by @8W9aG in https://github.com/replicate/cog/pull/1833
  • Print field in the validator error by @8W9aG in https://github.com/replicate/cog/pull/1836
  • Bump github.com/docker/cli from 27.1.0+incompatible to 27.1.1+incompatible by @dependabot in https://github.com/replicate/cog/pull/1835
  • Ping the docker daemon to check if it is up by @8W9aG in https://github.com/replicate/cog/pull/1838
  • Fix Pyright reportUnnecessaryComparison warning by @mattt in https://github.com/replicate/cog/pull/1824
  • Bump github.com/google/go-containerregistry from 0.20.0 to 0.20.1 by @dependabot in https://github.com/replicate/cog/pull/1816
  • Bump github.com/docker/cli from 27.0.3+incompatible to 27.1.0+incompatible by @dependabot in https://github.com/replicate/cog/pull/1818
  • Bump github.com/docker/docker from 27.0.3+incompatible to 27.1.1+incompatible by @dependabot in https://github.com/replicate/cog/pull/1832

New Contributors

  • @8W9aG made their first contribution in https://github.com/replicate/cog/pull/1830

Full Changelog: https://github.com/replicate/cog/compare/v0.9.13...v0.9.14

- Go
Published by mattt almost 2 years ago

cog - v0.10.0-alpha20

This release fixes an error which happens when setup fails that was introduced in alpha18

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha18...v0.10.0-alpha20

- Go
Published by technillogue almost 2 years ago

cog - v0.10.0-alpha19

This release mistakenly included a more significant change in addition to fixing an error which happens when setup fails that was introduced in alpha18

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha18...v0.10.0-alpha19

- Go
Published by technillogue almost 2 years ago

cog - v0.10.0-alpha18

This release attempts to fix cog never exiting if a shutdown is requested during setup. This may not work, but this also adds a lot of logging that should allow us to actually resolve the issue.

What's Changed

  • syl/fix setup shutdown bug by @technillogue in https://github.com/replicate/cog/pull/1819

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha17...v0.10.0-alpha18

- Go
Published by technillogue almost 2 years ago

cog - v0.10.0-alpha17

This release includes a temporary fix for a bug around cancellation.

What's Changed

  • [async] Fix CI branch by @aron in https://github.com/replicate/cog/pull/1797
  • Add fixes for CI ruff issues by @aron in https://github.com/replicate/cog/pull/1799
  • [async] Propagate trace context to webhook and upload requests by @aron in https://github.com/replicate/cog/pull/1787
  • [async] Include prediction id upload request by @aron in https://github.com/replicate/cog/pull/1788
  • patch cancel bug: immediately mark predictions as cancelled by @technillogue in https://github.com/replicate/cog/pull/1798

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha16...v0.10.0-alpha17

- Go
Published by technillogue almost 2 years ago

cog - v0.9.13

What's Changed

  • Enable --use-cog-base-image by default by @mattt in https://github.com/replicate/cog/pull/1778
  • Use github.com/google/go-containerregistry to get latest layer SHA instead of pulling by @mattt in https://github.com/replicate/cog/pull/1779
  • Bump reproducible-containers/buildkit-cache-dance from 3.1.1 to 3.1.2 by @dependabot in https://github.com/replicate/cog/pull/1780
  • Bump github.com/docker/cli from 26.1.4+incompatible to 27.0.3+incompatible by @dependabot in https://github.com/replicate/cog/pull/1781
  • Bump github.com/docker/docker from 27.0.1+incompatible to 27.0.3+incompatible by @dependabot in https://github.com/replicate/cog/pull/1782
  • Secure Prompt for API key by @Shubhamai in https://github.com/replicate/cog/pull/1789
  • don't block logs during iterators by fixing the lock by @technillogue in https://github.com/replicate/cog/pull/1802
  • Bump github.com/google/go-containerregistry from 0.19.2 to 0.20.0 by @dependabot in https://github.com/replicate/cog/pull/1806
  • Bump github.com/getkin/kin-openapi from 0.125.0 to 0.126.0 by @dependabot in https://github.com/replicate/cog/pull/1792
  • Bump golang.org/x/sys from 0.21.0 to 0.22.0 by @dependabot in https://github.com/replicate/cog/pull/1793
  • Bump golang.org/x/tools from 0.22.0 to 0.23.0 by @dependabot in https://github.com/replicate/cog/pull/1791
  • Fix panic in cog predict when predictor with string output type returns None by @mattt in https://github.com/replicate/cog/pull/1809
  • optimize webhook serialization by @technillogue in https://github.com/replicate/cog/pull/1592
  • Make human readable type name function more resilient by @mattt in https://github.com/replicate/cog/pull/1810
  • cog predict: check output path writability before predict/train by @yorickvP in https://github.com/replicate/cog/pull/1389
  • cog train: bring functionality on par with cog predict by @yorickvP in https://github.com/replicate/cog/pull/1391
  • Fix Dockerfile generation regression when --separate-weights is enabled by @mattt in https://github.com/replicate/cog/pull/1811

New Contributors

  • @Shubhamai made their first contribution in https://github.com/replicate/cog/pull/1789

Full Changelog: https://github.com/replicate/cog/compare/v0.9.12...v0.9.13

- Go
Published by mattt almost 2 years ago

cog - v0.10.0-alpha16

Changelog

  • a4b86cd Poison model healthcheck on shutdown

- Go
Published by github-actions[bot] almost 2 years ago

cog - v0.10.0-alpha15

[!IMPORTANT]
This release is identical to v0.10.0-alpha14, except for a change made to fix a test that prevented our CD workflow from completing.

Shutting down the server is supposed to call should_exit for uvicorn to do application shutdown. Fixing this seems to make exiting work more cleanly.

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha13...v0.10.0-alpha15

- Go
Published by technillogue almost 2 years ago

cog - v0.10.0-alpha14

Shutting down the server is supposed to call should_exit for uvicorn to do application shutdown. Fixing this seems to make exiting work more cleanly.

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha13...v0.10.0-alpha14

- Go
Published by technillogue almost 2 years ago

cog - v0.9.12

[!IMPORTANT]
This release is identical to v0.9.11, except for a change made to fix a flakey test that prevented our CI/CD workflow from completing.

What's Changed

  • Allow URLPath files to be missing when cleaning up inputs by @mattt in https://github.com/replicate/cog/pull/1763
  • updated notebook to lab ... by @gschian0 in https://github.com/replicate/cog/pull/846
  • Add test for using Torch & Tensorflow together by @bfirsh in https://github.com/replicate/cog/pull/1023
  • fix: 🐛 a better fix for #1635 by @EduarteXD in https://github.com/replicate/cog/pull/1656
  • Fix integration test deadlocks / timeouts by @mattt in https://github.com/replicate/cog/pull/1767
  • Make cog local runner match /tmp/shm size on Replicate by @nelsonjchen in https://github.com/replicate/cog/pull/1540
  • Restructure CI workflow (again) by @mattt in https://github.com/replicate/cog/pull/1768
  • Add passing test that includes Torch and TensorFlow together by @mattt in https://github.com/replicate/cog/pull/1123
  • add Etelis as a contributor for code by @allcontributors in https://github.com/replicate/cog/pull/1770
  • add gschian0 as a contributor for doc by @allcontributors in https://github.com/replicate/cog/pull/1771
  • Support minor torch version by @andreasjansson in https://github.com/replicate/cog/pull/1769
  • Warn if cog.yaml or predictor are missing by @asingh9530 in https://github.com/replicate/cog/pull/1470
  • Fix possible data corruption due to race condition in StreamRedirector by @mattt in https://github.com/replicate/cog/pull/1773
  • Relax linter requirements for CI workflow, resolve new Ruff warnings by @mattt in https://github.com/replicate/cog/pull/1775
  • Fix cog build --use-cog-base-image with minor and patch versions of Python and Torch by @mattt in https://github.com/replicate/cog/pull/1774
  • Rewrite HTTP API documentation by @mattt in https://github.com/replicate/cog/pull/1761
  • Reduce size of output to reduce likelihood of OOM in unit test by @mattt in https://github.com/replicate/cog/pull/1776
  • Handle predictors with deferred annotations by @mattt in https://github.com/replicate/cog/pull/1772

New Contributors

  • @gschian0 made their first contribution in https://github.com/replicate/cog/pull/846
  • @asingh9530 made their first contribution in https://github.com/replicate/cog/pull/1470

Full Changelog: https://github.com/replicate/cog/compare/v0.9.10...v0.9.12

- Go
Published by mattt almost 2 years ago

cog - v0.9.11

[!IMPORTANT]
The tagged commit was unable to complete its CI/CD workflow due to a flakey test. These changes are available in Cog v0.9.12.

- Go
Published by mattt almost 2 years ago

cog - v0.9.10

What's Changed

  • Set a minimum CUDA version for Tensorflow compatibility by @marcusmartins in https://github.com/replicate/cog/pull/1715
  • Validate minor version for CUDA and Python by @marcusmartins in https://github.com/replicate/cog/pull/1721
  • Document Secret type in Python API docs by @mattt in https://github.com/replicate/cog/pull/1724
  • Update default python version to 3.12 by @marcusmartins in https://github.com/replicate/cog/pull/1722
  • Improve cog base image handling by @marcusmartins in https://github.com/replicate/cog/pull/1699
  • Unhide the use-cog-base-image-flag by @marcusmartins in https://github.com/replicate/cog/pull/1725
  • Update environment variables documentation by @mattt in https://github.com/replicate/cog/pull/1749
  • Modify internal base image struct by @marcusmartins in https://github.com/replicate/cog/pull/1712
  • Set 10 minute timeout for test-integration CI job by @mattt in https://github.com/replicate/cog/pull/1755
  • add necessary headers to curl by @Kettukaa in https://github.com/replicate/cog/pull/1751
  • Change config's type to TypedDict instead of Dict. by @JacekDuszenko in https://github.com/replicate/cog/pull/1527
  • Bump to latest supported python & torch in README.md by @nevillelyh in https://github.com/replicate/cog/pull/1655
  • Use timestamps for tmp build directories by @mattt in https://github.com/replicate/cog/pull/1756
  • Install Script by @chigozienri in https://github.com/replicate/cog/pull/1558
  • Update install script instructions by @mattt in https://github.com/replicate/cog/pull/1757
  • Document how Cog raises CancelationException in predict when a prediction is canceled by @mattt in https://github.com/replicate/cog/pull/1754
  • Implement pre-build repository check for Replicate images by @Etelis in https://github.com/replicate/cog/pull/1733
  • Improve CUDA compatibility checks by @nevillelyh in https://github.com/replicate/cog/pull/1690
  • Add label for base image's last layer's diff id to cog image by @jessie-young in https://github.com/replicate/cog/pull/1747
  • Reduce unnecessary work in CI workflow by @mattt in https://github.com/replicate/cog/pull/1760
  • Update HTTP server to make host configurable by @mattt in https://github.com/replicate/cog/pull/1748
  • Document --host option by @mattt in https://github.com/replicate/cog/pull/1762

New Contributors

  • @Kettukaa made their first contribution in https://github.com/replicate/cog/pull/1751
  • @nevillelyh made their first contribution in https://github.com/replicate/cog/pull/1655
  • @chigozienri made their first contribution in https://github.com/replicate/cog/pull/1558
  • @Etelis made their first contribution in https://github.com/replicate/cog/pull/1733
  • @jessie-young made their first contribution in https://github.com/replicate/cog/pull/1747

Full Changelog: https://github.com/replicate/cog/compare/v0.9.9...v0.9.10

- Go
Published by mattt almost 2 years ago

cog - v0.10.0-alpha13

What's Changed

  • add batch_size metric by @technillogue in https://github.com/replicate/cog/pull/1750

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha12...v0.10.0-alpha13

- Go
Published by technillogue almost 2 years ago

cog - v0.10.0-alpha12

What's Changed

  • log traceback and set error properly by @technillogue in https://github.com/replicate/cog/pull/1734

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha11...v0.10.0-alpha12

- Go
Published by technillogue almost 2 years ago

cog - v0.10.0-alpha11

What's Changed

  • Fix upload logging by @mattt in https://github.com/replicate/cog/pull/1707
  • fix upload redirect handling by @technillogue in https://github.com/replicate/cog/pull/1714

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha10...v0.10.0-alpha11

- Go
Published by mattt almost 2 years ago

cog - v0.9.9

What's Changed

  • Include prediction id upload request by @aron in https://github.com/replicate/cog/pull/1667
  • update cog init to include a GitHub Actions workflow file by @zeke in https://github.com/replicate/cog/pull/1671
  • document how cog.yaml image works with cog push by @zeke in https://github.com/replicate/cog/pull/1679
  • Fix linter errors by @mattt in https://github.com/replicate/cog/pull/1691
  • fixing install logic to reenable no cuda base image by @daanelson in https://github.com/replicate/cog/pull/1688
  • Increase Hypothesis test deadlines by @marcusmartins in https://github.com/replicate/cog/pull/1700
  • Quick fix for Apple Silicon M1 support in run by @timfallmk in https://github.com/replicate/cog/pull/1704
  • Set missing Env argument in call to NewPredictor on retry by @mattt in https://github.com/replicate/cog/pull/1709
  • Add top-level concurrency setting to cog.yaml schema by @mattt in https://github.com/replicate/cog/pull/1703
  • Add --env/-e flags to cog train subcommand by @mattt in https://github.com/replicate/cog/pull/1710
  • Propagate trace context to webhook and upload requests by @aron in https://github.com/replicate/cog/pull/1698

New Contributors

  • @aron made their first contribution in https://github.com/replicate/cog/pull/1667
  • @daanelson made their first contribution in https://github.com/replicate/cog/pull/1688
  • @marcusmartins made their first contribution in https://github.com/replicate/cog/pull/1700
  • @timfallmk made their first contribution in https://github.com/replicate/cog/pull/1704

Full Changelog: https://github.com/replicate/cog/compare/v0.9.8...v0.9.9

- Go
Published by mattt almost 2 years ago

cog - v0.10.0-alpha10

What's Changed

  • Backport Secret type to async branch by @mattt in https://github.com/replicate/cog/pull/1706

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha9...v0.10.0-alpha10

- Go
Published by mattt about 2 years ago

cog - v0.10.0-alpha9

This release fixes being able to push concurrent models with cog.

- Go
Published by technillogue about 2 years ago

cog - v0.9.9-alpha2

What's Changed

  • update cog init to include a GitHub Actions workflow file by @zeke in https://github.com/replicate/cog/pull/1671
  • document how cog.yaml image works with cog push by @zeke in https://github.com/replicate/cog/pull/1679
  • Fix linter errors by @mattt in https://github.com/replicate/cog/pull/1691
  • fixing install logic to reenable no cuda base image by @daanelson in https://github.com/replicate/cog/pull/1688

New Contributors

  • @daanelson made their first contribution in https://github.com/replicate/cog/pull/1688

Full Changelog: https://github.com/replicate/cog/compare/v0.9.9-alpha...v0.9.9-alpha2

- Go
Published by mattt about 2 years ago

cog - v0.10.0-alpha8

What's Changed

  • predicttimeshare needs to be set before sending the completed webhook by @technillogue in https://github.com/replicate/cog/pull/1683
  • drop default_target by @technillogue in https://github.com/replicate/cog/pull/1685
  • COGDISABLETIMESHAREMETRIC

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha7...v0.10.0-alpha8

- Go
Published by technillogue about 2 years ago

cog - v0.9.9-alpha

Changelog

  • 36c7ece Include prediction id upload request (#1667)

- Go
Published by github-actions[bot] about 2 years ago

cog - v0.10.0-alpha7

This release adds cog.emit_metric, a predict_time_share metric, and provisional support for setting target concurrency. It also properly records the changes that were already in prod.

What's Changed

  • replace requests with httpx and factor out clients by @technillogue in https://github.com/replicate/cog/pull/1574
  • implement mp.Connection with async streams by @technillogue in https://github.com/replicate/cog/pull/1640
  • omnibus actual concurrency and major refactor by @technillogue in https://github.com/replicate/cog/pull/1530
  • fix flaky runner test by @technillogue in https://github.com/replicate/cog/pull/1669
  • predicttimeshare metric by @technillogue in https://github.com/replicate/cog/pull/1643
  • function to emit metrics by @technillogue in https://github.com/replicate/cog/pull/1649
  • allow setting both max and target concurrency in cog.yaml by @technillogue in https://github.com/replicate/cog/pull/1672

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha6...v0.10.0-alpha7

- Go
Published by technillogue about 2 years ago

cog - v0.9.8

This release fixes an issue No output specified with docker-container driver for users of Docker buildx.

Thanks to @mattt and @EduarteXD for the fixes.

Changelog

  • 2d0fe2a Run go generate ./... (#1657)
  • 5308966 document pinning python package installations to commit SHAs

- Go
Published by github-actions[bot] about 2 years ago

cog - v0.9.8-alpha

What's Changed

  • Bump github.com/docker/docker from 26.0.2+incompatible to 26.1.1+incompatible by @dependabot in https://github.com/replicate/cog/pull/1646
  • Bump golang.org/x/tools from 0.20.0 to 0.21.0 by @dependabot in https://github.com/replicate/cog/pull/1644
  • Fix Getting Started Link returns 404 by @tempusfrangit in https://github.com/replicate/cog/pull/1639
  • Bump github.com/docker/cli from 26.0.0+incompatible to 26.1.1+incompatible by @dependabot in https://github.com/replicate/cog/pull/1645
  • fix: 🐛 Failed to Load Docker Image Metadata in Github Action by @EduarteXD in https://github.com/replicate/cog/pull/1638

New Contributors

  • @EduarteXD made their first contribution in https://github.com/replicate/cog/pull/1638

Full Changelog: https://github.com/replicate/cog/compare/v0.9.7...v0.9.8-alpha

- Go
Published by github-actions[bot] about 2 years ago

cog - v0.9.7

The main changes in this release is the Secret type and always passing the --load flag to docker buildx build. Enjoy!

What's Changed

  • Bump github.com/docker/docker from 25.0.3+incompatible to 26.0.0+incompatible by @dependabot in https://github.com/replicate/cog/pull/1596
  • Bump actions/cache from 2 to 4 by @dependabot in https://github.com/replicate/cog/pull/1604
  • Increase timeout of flakey test to 1.5s by @technillogue in https://github.com/replicate/cog/pull/1575
  • Include options for compatgen targets in Usage help by @jd7h in https://github.com/replicate/cog/pull/1581
  • Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 by @dependabot in https://github.com/replicate/cog/pull/1577
  • Bump github.com/docker/cli from 25.0.3+incompatible to 26.0.0+incompatible by @dependabot in https://github.com/replicate/cog/pull/1595
  • Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by @dependabot in https://github.com/replicate/cog/pull/1556
  • Bump golang.org/x/tools from 0.18.0 to 0.19.0 by @dependabot in https://github.com/replicate/cog/pull/1569
  • Remove base-image building workflow by @tempusfrangit in https://github.com/replicate/cog/pull/1606
  • Define Secret type by @mattt in https://github.com/replicate/cog/pull/1546
  • Cog base images by @andreasjansson in https://github.com/replicate/cog/pull/1605
  • Always pass --load flag to docker buildx build command by @mattt in https://github.com/replicate/cog/pull/1621
  • deprecate cog.File in docs by @zeke in https://github.com/replicate/cog/pull/1613
  • Bump github.com/docker/docker from 26.0.0+incompatible to 26.0.2+incompatible by @dependabot in https://github.com/replicate/cog/pull/1626
  • Bump golang.org/x/net from 0.22.0 to 0.23.0 by @dependabot in https://github.com/replicate/cog/pull/1628
  • Bump docker/metadata-action from 4 to 5 by @dependabot in https://github.com/replicate/cog/pull/1619
  • Bump golang.org/x/tools from 0.19.0 to 0.20.0 by @dependabot in https://github.com/replicate/cog/pull/1608

Full Changelog: https://github.com/replicate/cog/compare/v0.9.6...v0.9.7

- Go
Published by technillogue about 2 years ago

cog - v0.9.6

Changelog

  • 1999f43 Fix go-runtime setup for base-build workflow
  • 175e3e5 Implement base-building workflow
  • c138db2 feat: deprecate python 3.7 #2 (#1582)
  • fae2ac3 feat: new approach for fast validation - fast cold boot (#1553)
  • 1289b6f feat: support for list in inputs (#1561)
  • d1d3fc4 fix: invalid components: schema "Output": extra sibling fields: title
  • cffd61b update compatibility matrices: support torch 2.2 (#1580)

- Go
Published by github-actions[bot] about 2 years ago

cog - v0.9.5

What's Changed

Highlights in this release are deprecating python 3.7 and allowing a str in addition to Path and File for setup() weights argument. If you download weights with pget, we highly recommend switching to str instead of Path so that cog doesn't also try to download your weights.

  • Document how to download/store weights by @cuuupid in https://github.com/replicate/cog/pull/1479
  • Bump github.com/docker/cli from 24.0.6+incompatible to 25.0.3+incompatible by @dependabot in https://github.com/replicate/cog/pull/1521
  • Bump github.com/docker/docker from 24.0.6+incompatible to 25.0.3+incompatible by @dependabot in https://github.com/replicate/cog/pull/1520
  • Update deprecated list type usage by @iamargentum in https://github.com/replicate/cog/pull/1327
  • remove unstable git archival config by @zeke in https://github.com/replicate/cog/pull/1522
  • Bump golang.org/x/sys from 0.16.0 to 0.17.0 by @dependabot in https://github.com/replicate/cog/pull/1529
  • Fix a formatting typo in yaml.md by @JacekDuszenko in https://github.com/replicate/cog/pull/1526
  • Bump github.com/getkin/kin-openapi from 0.120.0 to 0.123.0 by @dependabot in https://github.com/replicate/cog/pull/1506
  • Upgrade to Go 1.21 by @yorickvP in https://github.com/replicate/cog/pull/1537
  • Bump github.com/golangci/golangci-lint from 1.55.2 to 1.56.2 by @dependabot in https://github.com/replicate/cog/pull/1536
  • feat: eliminate redundant loads of predict.py and train.py in early setup of cog predict by @dkhokhlov in https://github.com/replicate/cog/pull/1503
  • fix: disable fast validation for now - it breaks complex types by @dkhokhlov in https://github.com/replicate/cog/pull/1548
  • feat: deprecate python 3.7 by @dkhokhlov in https://github.com/replicate/cog/pull/1550
  • a new version of ruff has appeared by @technillogue in https://github.com/replicate/cog/pull/1565
  • Remove deprecated labels by @bfirsh in https://github.com/replicate/cog/pull/1572
  • Better formatting for pget instructions in setup() docs for Python by @cuuupid in https://github.com/replicate/cog/pull/1576
  • use shorter cog.run URLs in cog init templates by @zeke in https://github.com/replicate/cog/pull/1578
  • allow setup(self, weights: str) by @technillogue in https://github.com/replicate/cog/pull/1559

New Contributors

  • @cuuupid made their first contribution in https://github.com/replicate/cog/pull/1479
  • @JacekDuszenko made their first contribution in https://github.com/replicate/cog/pull/1526

Full Changelog: https://github.com/replicate/cog/compare/v0.9.4...v0.9.5

- Go
Published by technillogue about 2 years ago

cog - v0.10.0-alpha5

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha3...v0.10.0-alpha4

Scary temporary commit for a hemorrhaging-edge release. This adds concurrency to the config and significantly changes the behavior of cog.Path, does something unsavory to upload very large files, and actually enables concurrency.

  • add concurrency to config
  • this basically works!
  • more descriptive names for predict functions
  • maybe pass through prediction id and try to make cancelation do both?
  • don't cancel from signal handler if a loop is running. expose worker busy state to runner
  • move handleeventstream to PredictionEventHandler
  • make setup and canceling work
  • drop some checks around cancelation
  • try out eagerpredictstate_change
  • keep track of multiple runner prediction tasks to make idempotent endpoint return the same result and fix tests somewhat
  • fix idempotent tests
  • fix remaining errors?
  • worker predict_generator shouldn't be eager
  • wip: make the stuff that handles events and sends webhooks etc async
  • drop Runner._result
  • drop comments
  • inline client code
  • get started
  • inline webhooks
  • move clients into runner, switch to httpx, move createeventhandler into runner
  • add some comments
  • more notes
  • rip out webhooks and most of files and put them in a new ClientManager that handles most of everything. inline upload_files for that
  • move createeventhandler into PredictionEventHandler.init
  • fix one test
  • break out Path.validate into valuetopath and inline get_filename and File.validate
  • split out URLPath into BackwardsCompatibleDataURLTempFilePath and URLThatCanBeConvertedToPath with the download part of URLFile inlined
  • let's make DataURLTempFilePath also use convert and move valuetopath back to Path.validate
  • use httpx for downloading input urls and follow redirects
  • take get_filename back out for tests
  • don't upload in http and delete cog/files.py
  • drop should_cancel
  • prediction->request
  • split up predict/inner/predictionctx into enterpredict/exitpredict/predictionctx/innerasyncpredict/predict/good_predict as one way to do it. however, exposing all of those for runner predict enter/coro exit still sucks, but this is still an improvement
  • bigish change: inline predictandhandle_errors
  • inline makeerrorhandler into setup
  • move runner.setup into runner.Runner.setup
  • add concurrency to config in go
  • try explicitly using predictionctx _enter__ and exit
  • make runner setup more correct and marginally better
  • fix a few tests
  • notes
  • wip ClientManager.convert
  • relax setup argument requirement to str
  • glom worker into runner
  • add logging message
  • fix prediction retry and improve logging
  • split out handle_event
  • use CURLCABUNDLE for file upload
  • clean up comments
  • dubious upload fix
  • small fixes
  • attempt to add context logging?
  • tweak names
  • fix error for predictionOutputType(multi=False)
  • improve comments
  • fix lints
  • add a note about this release

- Go
Published by technillogue over 2 years ago

cog - v0.10.0-alpha4

Full Changelog: https://github.com/replicate/cog/compare/v0.10.0-alpha3...v0.10.0-alpha4

Scary temporary commit for a hemorrhaging-edge release. This adds concurrency to the config and significantly changes the behavior of cog.Path, does something unsavory to upload very large files, and actually enables concurrency.

  • add concurrency to config
  • this basically works!
  • more descriptive names for predict functions
  • maybe pass through prediction id and try to make cancelation do both?
  • don't cancel from signal handler if a loop is running. expose worker busy state to runner
  • move handleeventstream to PredictionEventHandler
  • make setup and canceling work
  • drop some checks around cancelation
  • try out eagerpredictstate_change
  • keep track of multiple runner prediction tasks to make idempotent endpoint return the same result and fix tests somewhat
  • fix idempotent tests
  • fix remaining errors?
  • worker predict_generator shouldn't be eager
  • wip: make the stuff that handles events and sends webhooks etc async
  • drop Runner._result
  • drop comments
  • inline client code
  • get started
  • inline webhooks
  • move clients into runner, switch to httpx, move createeventhandler into runner
  • add some comments
  • more notes
  • rip out webhooks and most of files and put them in a new ClientManager that handles most of everything. inline upload_files for that
  • move createeventhandler into PredictionEventHandler.init
  • fix one test
  • break out Path.validate into valuetopath and inline get_filename and File.validate
  • split out URLPath into BackwardsCompatibleDataURLTempFilePath and URLThatCanBeConvertedToPath with the download part of URLFile inlined
  • let's make DataURLTempFilePath also use convert and move valuetopath back to Path.validate
  • use httpx for downloading input urls and follow redirects
  • take get_filename back out for tests
  • don't upload in http and delete cog/files.py
  • drop should_cancel
  • prediction->request
  • split up predict/inner/predictionctx into enterpredict/exitpredict/predictionctx/innerasyncpredict/predict/good_predict as one way to do it. however, exposing all of those for runner predict enter/coro exit still sucks, but this is still an improvement
  • bigish change: inline predictandhandle_errors
  • inline makeerrorhandler into setup
  • move runner.setup into runner.Runner.setup
  • add concurrency to config in go
  • try explicitly using predictionctx _enter__ and exit
  • make runner setup more correct and marginally better
  • fix a few tests
  • notes
  • wip ClientManager.convert
  • relax setup argument requirement to str
  • glom worker into runner
  • add logging message
  • fix prediction retry and improve logging
  • split out handle_event
  • use CURLCABUNDLE for file upload
  • clean up comments
  • dubious upload fix
  • small fixes
  • attempt to add context logging?
  • tweak names
  • fix error for predictionOutputType(multi=False)
  • improve comments
  • fix lints
  • add a note about this release

- Go
Published by technillogue over 2 years ago

cog - v0.9.4

Changelog

  • d255445 fix: ignore "train" part of schema errors during predict runs in production for backward compatibility (#1496)

- Go
Published by github-actions[bot] over 2 years ago

cog - v0.10.0-alpha3

Changelog

  • 513e837 Revert "Revert PR "async runner" (#1352)"
  • db88489 Revert "Revert PR "create event loop before predictor setup" (#1366)"
  • 3444169 lints
  • 73a6de9 minimal async worker (#1410)
  • 0df9b82 run CI for this branch the same way as for main

- Go
Published by github-actions[bot] over 2 years ago

cog - v0.10.0-alpha2

Changelog

  • a953911 Revert "Revert PR "async runner" (#1352)"
  • 8859609 Revert "Revert PR "create event loop before predictor setup" (#1366)"
  • 40149de lints
  • d6a6f1a run CI for this branch the same way as for main

- Go
Published by github-actions[bot] over 2 years ago

cog - v0.9.3

Changelog

  • 4f2d690 fix: add handling of early setup exceptions on "train" path in cog predict/build (#1490)
  • 2e57549 fix: added log message and error exit code when setup fails in cog predict (#1487)

- Go
Published by github-actions[bot] over 2 years ago

cog - v0.10.0-alpha1

Full Changelog: https://github.com/replicate/cog/compare/v0.9.0+async.1...v0.10.0-alpha1

- Go
Published by technillogue over 2 years ago

cog - v0.9.2

What's Changed

  • tweak schema file console message by @technillogue in https://github.com/replicate/cog/pull/1371
  • Add ENV NVIDIADRIVERCAPABILITIES=all to permit Video SDK transcoding, 3D rendering, and X11 OpenGL Display by @nelsonjchen in https://github.com/replicate/cog/pull/1288
  • Makefile: don't hardcode bash path and use the one from PATH instead by @yorickvP in https://github.com/replicate/cog/pull/1387
  • cog predict: specific hint if image name contains '=' by @yorickvP in https://github.com/replicate/cog/pull/1388
  • Fix types, run typechecker in CI by @yorickvP in https://github.com/replicate/cog/pull/1393
  • create /var/run if it doesn't exist by @technillogue in https://github.com/replicate/cog/pull/1402
  • update compatibility matrices: support cuda 12.2 by @technillogue in https://github.com/replicate/cog/pull/1396
  • Fix FastAPI state hack, freeze pyright version by @yorickvP in https://github.com/replicate/cog/pull/1415
  • Stricter image cleanup by @nickstenning in https://github.com/replicate/cog/pull/1412
  • fix(python_test): added "slow" hypothesis profile in python worker test by @dkhokhlov in https://github.com/replicate/cog/pull/1416
  • fix(test): 'docker' 'rmi' failed in python integration tests by @dkhokhlov in https://github.com/replicate/cog/pull/1417
  • fix: linting in python code by @dkhokhlov in https://github.com/replicate/cog/pull/1419
  • run linters in CI by @technillogue in https://github.com/replicate/cog/pull/1418
  • fix: make target for python dev env setup by @dkhokhlov in https://github.com/replicate/cog/pull/1421
  • Don't return a PredictionResponse from PredictionRunner.setup by @nickstenning in https://github.com/replicate/cog/pull/1433
  • make a website for the docs by @zeke in https://github.com/replicate/cog/pull/1435
  • Set a reasonable default parallelism on non-Linux platforms by @nickstenning in https://github.com/replicate/cog/pull/1436
  • fix: handle early exceptions in model setup by @dkhokhlov in https://github.com/replicate/cog/pull/1428
  • check if setup_result is None by @technillogue in https://github.com/replicate/cog/pull/1443
  • Add note for naming Output class by @iamargentum in https://github.com/replicate/cog/pull/1444
  • fix: update the version typing_extensions to use latest version by @mbukeRepo in https://github.com/replicate/cog/pull/1439
  • document how to install git-hosted python packages by @zeke in https://github.com/replicate/cog/pull/1383
  • add upgrade instructions to README by @zeke in https://github.com/replicate/cog/pull/1445
  • build: fix goreleaser configuration by @caarlos0 in https://github.com/replicate/cog/pull/1466
  • fix: test fixture does not remove docker image by @dkhokhlov in https://github.com/replicate/cog/pull/1451
  • Capitalize OS name in release artifacts by @zeke in https://github.com/replicate/cog/pull/1467
  • remove upgrade anchor from readme by @zeke in https://github.com/replicate/cog/pull/1468
  • Add training schemas and operations to OpenAPI schema, when available by @mattt in https://githu

New Contributors

  • @nelsonjchen made their first contribution in https://github.com/replicate/cog/pull/1288
  • @yorickvP made their first contribution in https://github.com/replicate/cog/pull/1387
  • @dkhokhlov made their first contribution in https://github.com/replicate/cog/pull/1416
  • @iamargentum made their first contribution in https://github.com/replicate/cog/pull/1444
  • @mbukeRepo made their first contribution in https://github.com/replicate/cog/pull/1439
  • @caarlos0 made their first contribution in https://github.com/replicate/cog/pull/1466

Full Changelog: https://github.com/replicate/cog/compare/v0.9.0-beta10...v0.9.0

- Go
Published by technillogue over 2 years ago

cog - v0.9.1

What's Changed

  • tweak schema file console message by @technillogue in https://github.com/replicate/cog/pull/1371
  • Add ENV NVIDIADRIVERCAPABILITIES=all to permit Video SDK transcoding, 3D rendering, and X11 OpenGL Display by @nelsonjchen in https://github.com/replicate/cog/pull/1288
  • Makefile: don't hardcode bash path and use the one from PATH instead by @yorickvP in https://github.com/replicate/cog/pull/1387
  • cog predict: specific hint if image name contains '=' by @yorickvP in https://github.com/replicate/cog/pull/1388
  • Fix types, run typechecker in CI by @yorickvP in https://github.com/replicate/cog/pull/1393
  • create /var/run if it doesn't exist by @technillogue in https://github.com/replicate/cog/pull/1402
  • update compatibility matrices: support cuda 12.2 by @technillogue in https://github.com/replicate/cog/pull/1396
  • Fix FastAPI state hack, freeze pyright version by @yorickvP in https://github.com/replicate/cog/pull/1415
  • Stricter image cleanup by @nickstenning in https://github.com/replicate/cog/pull/1412
  • fix(python_test): added "slow" hypothesis profile in python worker test by @dkhokhlov in https://github.com/replicate/cog/pull/1416
  • fix(test): 'docker' 'rmi' failed in python integration tests by @dkhokhlov in https://github.com/replicate/cog/pull/1417
  • fix: linting in python code by @dkhokhlov in https://github.com/replicate/cog/pull/1419
  • run linters in CI by @technillogue in https://github.com/replicate/cog/pull/1418
  • fix: make target for python dev env setup by @dkhokhlov in https://github.com/replicate/cog/pull/1421
  • Don't return a PredictionResponse from PredictionRunner.setup by @nickstenning in https://github.com/replicate/cog/pull/1433
  • make a website for the docs by @zeke in https://github.com/replicate/cog/pull/1435
  • Set a reasonable default parallelism on non-Linux platforms by @nickstenning in https://github.com/replicate/cog/pull/1436
  • fix: handle early exceptions in model setup by @dkhokhlov in https://github.com/replicate/cog/pull/1428
  • check if setup_result is None by @technillogue in https://github.com/replicate/cog/pull/1443
  • Add note for naming Output class by @iamargentum in https://github.com/replicate/cog/pull/1444
  • fix: update the version typing_extensions to use latest version by @mbukeRepo in https://github.com/replicate/cog/pull/1439
  • document how to install git-hosted python packages by @zeke in https://github.com/replicate/cog/pull/1383
  • add upgrade instructions to README by @zeke in https://github.com/replicate/cog/pull/1445
  • build: fix goreleaser configuration by @caarlos0 in https://github.com/replicate/cog/pull/1466
  • fix: test fixture does not remove docker image by @dkhokhlov in https://github.com/replicate/cog/pull/1451
  • Capitalize OS name in release artifacts by @zeke in https://github.com/replicate/cog/pull/1467
  • remove upgrade anchor from readme by @zeke in https://github.com/replicate/cog/pull/1468
  • Add training schemas and operations to OpenAPI schema, when available by @mattt in https://githu

New Contributors

  • @nelsonjchen made their first contribution in https://github.com/replicate/cog/pull/1288
  • @yorickvP made their first contribution in https://github.com/replicate/cog/pull/1387
  • @dkhokhlov made their first contribution in https://github.com/replicate/cog/pull/1416
  • @iamargentum made their first contribution in https://github.com/replicate/cog/pull/1444
  • @mbukeRepo made their first contribution in https://github.com/replicate/cog/pull/1439
  • @caarlos0 made their first contribution in https://github.com/replicate/cog/pull/1466

Full Changelog: https://github.com/replicate/cog/compare/v0.9.0-beta10...v0.9.0

- Go
Published by technillogue over 2 years ago

cog - v0.9.0

What's Changed

  • tweak schema file console message by @technillogue in https://github.com/replicate/cog/pull/1371
  • Add ENV NVIDIADRIVERCAPABILITIES=all to permit Video SDK transcoding, 3D rendering, and X11 OpenGL Display by @nelsonjchen in https://github.com/replicate/cog/pull/1288
  • Makefile: don't hardcode bash path and use the one from PATH instead by @yorickvP in https://github.com/replicate/cog/pull/1387
  • cog predict: specific hint if image name contains '=' by @yorickvP in https://github.com/replicate/cog/pull/1388
  • Fix types, run typechecker in CI by @yorickvP in https://github.com/replicate/cog/pull/1393
  • create /var/run if it doesn't exist by @technillogue in https://github.com/replicate/cog/pull/1402
  • update compatibility matrices: support cuda 12.2 by @technillogue in https://github.com/replicate/cog/pull/1396
  • Fix FastAPI state hack, freeze pyright version by @yorickvP in https://github.com/replicate/cog/pull/1415
  • Stricter image cleanup by @nickstenning in https://github.com/replicate/cog/pull/1412
  • fix(python_test): added "slow" hypothesis profile in python worker test by @dkhokhlov in https://github.com/replicate/cog/pull/1416
  • fix(test): 'docker' 'rmi' failed in python integration tests by @dkhokhlov in https://github.com/replicate/cog/pull/1417
  • fix: linting in python code by @dkhokhlov in https://github.com/replicate/cog/pull/1419
  • run linters in CI by @technillogue in https://github.com/replicate/cog/pull/1418
  • fix: make target for python dev env setup by @dkhokhlov in https://github.com/replicate/cog/pull/1421
  • Don't return a PredictionResponse from PredictionRunner.setup by @nickstenning in https://github.com/replicate/cog/pull/1433
  • make a website for the docs by @zeke in https://github.com/replicate/cog/pull/1435
  • Set a reasonable default parallelism on non-Linux platforms by @nickstenning in https://github.com/replicate/cog/pull/1436
  • fix: handle early exceptions in model setup by @dkhokhlov in https://github.com/replicate/cog/pull/1428
  • check if setup_result is None by @technillogue in https://github.com/replicate/cog/pull/1443
  • Add note for naming Output class by @iamargentum in https://github.com/replicate/cog/pull/1444
  • fix: update the version typing_extensions to use latest version by @mbukeRepo in https://github.com/replicate/cog/pull/1439
  • document how to install git-hosted python packages by @zeke in https://github.com/replicate/cog/pull/1383
  • add upgrade instructions to README by @zeke in https://github.com/replicate/cog/pull/1445
  • build: fix goreleaser configuration by @caarlos0 in https://github.com/replicate/cog/pull/1466
  • fix: test fixture does not remove docker image by @dkhokhlov in https://github.com/replicate/cog/pull/1451
  • Capitalize OS name in release artifacts by @zeke in https://github.com/replicate/cog/pull/1467
  • remove upgrade anchor from readme by @zeke in https://github.com/replicate/cog/pull/1468
  • Add training schemas and operations to OpenAPI schema, when available by @mattt in https://githu

New Contributors

  • @nelsonjchen made their first contribution in https://github.com/replicate/cog/pull/1288
  • @yorickvP made their first contribution in https://github.com/replicate/cog/pull/1387
  • @dkhokhlov made their first contribution in https://github.com/replicate/cog/pull/1416
  • @iamargentum made their first contribution in https://github.com/replicate/cog/pull/1444
  • @mbukeRepo made their first contribution in https://github.com/replicate/cog/pull/1439
  • @caarlos0 made their first contribution in https://github.com/replicate/cog/pull/1466

Full Changelog: https://github.com/replicate/cog/compare/v0.9.0-beta10...v0.9.0

- Go
Published by technillogue over 2 years ago

cog - v0.9.0+async.1

What's Changed

  • un-revert async runner
  • un-revert async predict

Full Changelog: https://github.com/replicate/cog/compare/v0.9.0-rc1...v0.9.0+async.1

- Go
Published by technillogue over 2 years ago