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

chore: SimpleModelPaths should be renamed to LocalModelPaths #331

Merged
merged 1 commit into from
May 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mistralrs-core/src/pipeline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,21 @@
pub use self::cache_manager::{Cache, CacheManager, LayerCaches};

/// `ModelPaths` abstracts the mechanism to get all necessary files for running a model. For
/// example `SimpleModelPaths` implements `ModelPaths` when all files are in the local file system.
/// example `LocalModelPaths` implements `ModelPaths` when all files are in the local file system.
pub trait ModelPaths {
/// Model weights files (multiple files supported).
fn get_weight_filenames(&self) -> &[PathBuf];

/// Retrieve the PretrainedConfig file.
/// See: https://huggingface.co/docs/transformers/v4.40.2/en/main_classes/configuration#transformers.PretrainedConfig

Check warning on line 65 in mistralrs-core/src/pipeline/mod.rs

View workflow job for this annotation

GitHub Actions / Docs

this URL is not a hyperlink
fn get_config_filename(&self) -> &PathBuf;

/// A serialised `tokenizers.Tokenizer` HuggingFace object.
/// See: https://huggingface.co/docs/transformers/v4.40.2/en/main_classes/tokenizer

Check warning on line 69 in mistralrs-core/src/pipeline/mod.rs

View workflow job for this annotation

GitHub Actions / Docs

this URL is not a hyperlink
fn get_tokenizer_filename(&self) -> &PathBuf;

/// Jinja format chat templating for chat completion.
/// See: https://huggingface.co/docs/transformers/chat_templating

Check warning on line 73 in mistralrs-core/src/pipeline/mod.rs

View workflow job for this annotation

GitHub Actions / Docs

this URL is not a hyperlink
fn get_template_filename(&self) -> &PathBuf;

/// Optional adapter files. `(String, PathBuf)` is of the form `(id name, path)`.
Expand Down
Loading