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

Add pull flux model logic #82

Merged
merged 5 commits into from
Sep 12, 2024
Merged

Add pull flux model logic #82

merged 5 commits into from
Sep 12, 2024

Conversation

Davidqian123
Copy link
Collaborator

No description provided.

def llama_model_is_recurrent(model: llama_model_p, /) -> bool:
"""Returns true if the model is recurrent (like Mamba, RWKV, etc.)"""
...
# @ctypes_function("llama_model_is_recurrent", [llama_model_p_ctypes], ctypes.c_bool)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

temporarily comment this to avoid vlm_inference crash

if self.ae_path:
self.ae_downloaded_path, _ = pull_model(self.ae_path)
if self.clip_l_path:
self.clip_l_downloaded_path, _ = pull_model(self.clip_l_path)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

now nexa run FLUX.1-schnell:q4_0 can pull base, t5xxl, ae, clip models

@@ -17,7 +17,7 @@ class suppress_stdout_stderr(object):
sys = sys
os = os

def __init__(self, disable: bool = True):
def __init__(self, disable: bool = False):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

supress logging print

}


def get_run_type_from_model_path(model_path):
model_name, model_version = model_path.split(":")
return NEXA_OFFICIAL_MODELS_TYPE.get(model_name, "UNKNOWN")
return NEXA_OFFICIAL_MODELS_TYPE.get(model_name, ModelType.NLP).value
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fix conflicts due to adding enum in constants

@zhiyuan8 zhiyuan8 merged commit 2f7fe07 into main Sep 12, 2024
2 checks passed
@zhiyuan8 zhiyuan8 changed the title David/bugfix Add pull flux model logic Sep 12, 2024
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