Skip to content

Commit

Permalink
allow absoulte model and tokenizer paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed May 10, 2024
1 parent 0064baa commit ae7fd27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/aici_native/src/bintokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ pub fn find_tokenizer(mut name: &str) -> Result<ByteTokenizer> {

log::info!("loading tokenizer: {}", name);

let loaded = if name.starts_with(".") {
let loaded = if name.starts_with(".") || name.starts_with("/") {
Tokenizer::from_file(name)
} else {
let mut name2 = name.to_string();
Expand Down
2 changes: 1 addition & 1 deletion rllm/rllm-base/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ pub async fn server_main<ME: ModelExec>(
args.revision = Some(rev);
}

if args.model.starts_with(".") {
if args.model.starts_with(".") || args.model.starts_with("/") {
args.local_weights = Some(args.model.clone());
}

Expand Down

0 comments on commit ae7fd27

Please sign in to comment.