Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call the web when layers have been pushed #2139

Merged
merged 13 commits into from
Feb 10, 2025

Conversation

8W9aG
Copy link
Contributor

@8W9aG 8W9aG commented Feb 7, 2025

  • Creates an http client that decorates requests with user agent and authentication.
  • Adds a monobeam client
  • Adds a web client
  • Adds a manifest function to the command
  • Looks up the manifest from the image and fills in the necessary variables to send to web on
    version push

* Creates an http client that decorates requests
with user agent and authentication.
* Adds a monobeam client
* Adds a web client
* Adds a manifest function to the command
* Looks up the manifest from the image and fills
in the necessary variables to send to web on
version push
@8W9aG 8W9aG marked this pull request as draft February 7, 2025 14:58
@8W9aG 8W9aG marked this pull request as ready for review February 7, 2025 21:37
@8W9aG 8W9aG requested review from meatballhat, NikhilSinha1 and a team February 7, 2025 21:37
Copy link
Contributor

@meatballhat meatballhat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite a big lift! 🎉 Very nicely done!

}

func NewMonobaseMatrix(client *http.Client) (*MonobaseMatrix, error) {
resp, err := client.Get("https://raw.githubusercontent.com/replicate/monobase/refs/heads/main/matrix.json")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we publish this file to a location we control?

Copy link
Contributor Author

@8W9aG 8W9aG Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future we should, this was a separation of the monobase matrix concern from the fast generator concern so not a new detail from this PR specifically

if err != nil {
return nil, err
}
trainCode, err := stripCodeFromStub(cogConfig, false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are predictCode and trainCode supposed to be the same value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They can be if the train code is in the same file as the predict code, but in general they should be treated as separate values

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oohhhhh I see why I was confused 😅 I was only looking at the function name stripCodeFromStub and didn't read through the implementation with the second positional boolean arg

@8W9aG 8W9aG requested a review from meatballhat February 10, 2025 06:34
@8W9aG 8W9aG merged commit 6f55fdd into main Feb 10, 2025
21 checks passed
@8W9aG 8W9aG deleted the sackfield/call-web-on-version-post branch February 10, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants