Skip to content

Commit

Permalink
Add model file name (#594)
Browse files Browse the repository at this point in the history
* add model_file_name

* Allow developers to configure  model_file_name (only works for decoder-only models for now)

* remove prettier formatting

* merge with 2.15.1

* add model_file_name

* Apply suggestions from code review

---------

Co-authored-by: Joshua Lochner <admin@xenova.com>
  • Loading branch information
NawarA and xenova committed May 23, 2024
1 parent db9250b commit 250fcd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pipelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -3178,6 +3178,7 @@ export async function pipeline(
cache_dir = null,
local_files_only = false,
revision = 'main',
model_file_name = null,
} = {}
) {
// Helper method to construct pipeline
Expand Down Expand Up @@ -3205,6 +3206,7 @@ export async function pipeline(
cache_dir,
local_files_only,
revision,
model_file_name,
}

const classes = new Map([
Expand Down

0 comments on commit 250fcd7

Please sign in to comment.