-
Notifications
You must be signed in to change notification settings - Fork 788
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
Conversation
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
No description provided.