-
Notifications
You must be signed in to change notification settings - Fork 791
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
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1489bf4
update onnx installation in README
Davidqian123 7ab42db
update tsinghua mirror
Davidqian123 5ace4a0
add new models
Davidqian123 cf3d068
Merge branch 'main' of https://github.com/NexaAI/nexaai-sdk-cpp into …
Davidqian123 2515ebe
add pull flux model logic
Davidqian123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. supress logging print |
||
self.disable = disable | ||
|
||
# Oddly enough this works better than the contextlib version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1488,10 +1488,10 @@ def llama_model_decoder_start_token(model: llama_model_p, /) -> int: | |
|
||
# // Returns true if the model is recurrent (like Mamba, RWKV, etc.) | ||
# LLAMA_API bool llama_model_is_recurrent(const struct llama_model * model); | ||
@ctypes_function("llama_model_is_recurrent", [llama_model_p_ctypes], ctypes.c_bool) | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. temporarily comment this to avoid vlm_inference crash |
||
# def llama_model_is_recurrent(model: llama_model_p, /) -> bool: | ||
# """Returns true if the model is recurrent (like Mamba, RWKV, etc.)""" | ||
# ... | ||
|
||
|
||
# // Returns 0 on success | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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