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

[lmi] always configure lmi model instead of just when engine is missing #1727

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

siddvenk
Copy link
Contributor

@siddvenk siddvenk commented Apr 3, 2024

Description

This PR refactors the LMI infer engine into a more general LMI configure method that should run for all LMI models, not just when the engine isn't specified.

The goal of this PR is to serve as the single area where we can:

  • set MPI mode
  • recommend rolling batch/backend depending on the model architecture
  • set entry point
  • set tp degree
  • maybe more configs

@@ -92,25 +93,18 @@ private static void setRollingBatch(
lmiProperties.setProperty("option.rolling_batch", rollingBatch);
}

private static void setEngine(
private static void setMPIMode(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
private static void setMPIMode(
private static void setMpiMode(

@@ -92,25 +93,18 @@ private static void setRollingBatch(
lmiProperties.setProperty("option.rolling_batch", rollingBatch);
}

private static void setEngine(
private static void setMPIMode(
Copy link
Contributor

Choose a reason for hiding this comment

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

@siddvenk siddvenk marked this pull request as ready for review April 15, 2024 17:54
@siddvenk siddvenk requested review from zachgk and a team as code owners April 15, 2024 17:54
@siddvenk
Copy link
Contributor Author

Not really sure what's going on with the windows test, i'll look into it

@siddvenk siddvenk merged commit 55911c3 into deepjavalibrary:master Apr 15, 2024
7 checks passed
@siddvenk siddvenk deleted the lmi-configure branch April 15, 2024 18:49
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