-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Valid selected models against supported models on store create. And set max_token_size for models * update aiproxy runner in python tests * use value delimited to accept supported models * WIP: create model enum for ai * swap out aimodelmanager trait with model enum * Create seperate methods for max_token and max_image_dim * Add subcommand to display supported models and info on supported models * add termcolor for output * use strum to iter over supportedmodel variants
- Loading branch information
1 parent
5b6c50f
commit 71140ee
Showing
12 changed files
with
388 additions
and
96 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
mod models; | ||
use ahnlich_types::keyval::{StoreInput, StoreKey}; | ||
use models::ModelInfo; | ||
use std::num::NonZeroUsize; | ||
|
||
pub trait AIModelManager { | ||
fn embedding_size(&self) -> NonZeroUsize; | ||
fn model_ndarray(&self, storeinput: &StoreInput) -> StoreKey; | ||
fn model_info(&self) -> ModelInfo; | ||
} | ||
pub mod models; |
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
Oops, something went wrong.