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

Set model_origin when creating chains #972

Merged
merged 8 commits into from
Jun 17, 2024
Merged

Conversation

squidarth
Copy link
Collaborator

@squidarth squidarth commented Jun 12, 2024

🚀 What

As a follow-up to https://github.com/basetenlabs/baseten/pull/8584, actually want to start setting the model origin so that chains models are excluded from the main models view

💻 How

🔬 Testing

Ran:

$ poetry run truss chains deploy --remote baseten-staging --publish

Ensured that the model origin was set on the deployed models.

@squidarth squidarth changed the base branch from main to sshanker/wire-up-cli June 12, 2024 20:40
@squidarth squidarth marked this pull request as draft June 12, 2024 20:40
Base automatically changed from sshanker/wire-up-cli to main June 13, 2024 23:16
@squidarth squidarth changed the title Sshanker/use model origin Set model_origin when creating chains Jun 14, 2024
@squidarth squidarth requested a review from marius-baseten June 14, 2024 17:07
@squidarth squidarth marked this pull request as ready for review June 14, 2024 17:10
) {{
id,
name,
version_id
}}
}}
"""

print(query_string)
Copy link
Contributor

Choose a reason for hiding this comment

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

Forgotten?

@@ -251,6 +253,7 @@ def deploy_remotely(
chainlet_name_to_url[chainlet_descriptor.name] = "http://dummy"

if isinstance(options, definitions.DeploymentOptionsBaseten):

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you find these blank lines make the file more readable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was an accident

) -> BasetenService:
print(f"IN push: {origin} ")
Copy link
Contributor

Choose a reason for hiding this comment

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

Forgotten?

@squidarth squidarth merged commit 540ec5f into main Jun 17, 2024
3 checks passed
@squidarth squidarth deleted the sshanker/use-model-origin branch June 17, 2024 14:42
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