Skip to content

Conversation

C-K-Loan
Copy link
Member

Improvements to Docker integration

Instead of providing a nlu model reference for deploying a model, users have now 2 options

1) Deploy Pipeline via Name, Language and Bucket

nlp.build_image(pipeline_name=pipe_name,  pipeline_language=pipe_lang,  pipeline_bucket=pipe_bucket)

2.1) Deploy custom pipeline by providing a fitted pipeline object

custom_pipe = nlp.Pipeline(stages=[...]).fit(df)
nlp.build_image(custom_pipe=custom_pipe)

2.2) Deploy NLU pipelines as container

Any nlu pipeline can still be deployed as a custom pipe

# Load Model
pipe = nlp.load(model_nlu_ref)  
# Predict so that under the hood pipeline is fitted and vanilla_transformer_pipe attribute is avaiable
pipe.predict('')  
# Now we can just handle it like a custom pipeline
nlp.build_image(custom_pipe=pipe.vanilla_transformer_pipe)

Improvements to Snowflake integration

Since the Snowflake integration uses the Docker, all of the changes for the docker utilities are reflected into Snowflake as well.

Instead of providing a nlu model reference for deploying a model, users have now 2 options

Deploy Pipeline via Name, Language and Bucket

nlp.build_image(pipeline_name=pipe_name,  pipeline_language=pipe_lang,  pipeline_bucket=pipe_bucket)

Deploy custom pipeline by providing a fitted pipeline object

custom_pipe = nlp.Pipeline(stages=[...]).fit(df)
nlp.build_image(custom_pipe=custom_pipe)

Deploy NLU pipelines as container
Any nlu pipeline can still be deployed

# Load Model
pipe = nlp.load(model_nlu_ref)  
# Predict so that under the hood pipeline is fitted and vanilla_transformer_pipe attribute is avaiable
pipe.predict('')  
# Now we can just handle it like a custom pipeline
nlp.build_image(custom_pipe=pipe.vanilla_transformer_pipe)

@C-K-Loan C-K-Loan changed the base branch from main to release/603 June 27, 2025 20:24
@C-K-Loan C-K-Loan merged commit 1d1c757 into release/603 Jun 27, 2025
1 check was pending
C-K-Loan added a commit that referenced this pull request Jun 27, 2025
* Bump versions

* Add missing DB attributes for lic and dbfs info path to settings

* support custom pipelines and deprecate nlu reference for docker and snowflake utils (#1869)
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.

1 participant