Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
fix(loader): clarify UnsupportedFileType
Browse files Browse the repository at this point in the history
  • Loading branch information
philpax committed Jul 2, 2023
1 parent f0ad6a3 commit d68e0ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/llm-base/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ pub enum LoadError {
#[error("invalid integer conversion")]
/// One of the integers encountered could not be converted to a more appropriate type.
InvalidIntegerConversion(#[from] std::num::TryFromIntError),
#[error("unsupported f16_: {0}")]
/// The `f16_` hyperparameter had an invalid value.
#[error("unsupported ftype: {0}")]
/// The `ftype` hyperparameter had an invalid value. This usually means that the format used
/// by this file is unrecognized by this version of `llm`.
UnsupportedFileType(i32),
#[error("invalid magic number {magic:#x} for {path:?}")]
/// An invalid magic number was encountered during the loading process.
Expand Down

0 comments on commit d68e0ab

Please sign in to comment.