Skip to content

Commit

Permalink
chore: Dry run embedding (#67)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <[email protected]>
  • Loading branch information
gaocegege authored Jun 6, 2023
1 parent f6fabdc commit d7e98aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modelz_llm/falcon_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ async def on_post(self, req: Request, resp: Response, engine: str = ""):
def build_falcon_app(args: argparse.Namespace):
if args.dry_run:
snapshot_download(repo_id=args.model)
snapshot_download(repo_id=args.emb_model)
return
llm = LLM(args.model, args.device)
embeddings = Embeddings(args.emb_model, args.device)
Expand Down

0 comments on commit d7e98aa

Please sign in to comment.